Browse by category:
|| | ||
How can I select all points of my dataset in a JSF application ?
The series selection is usually made by setting the chart select interactor picking mode to "NEAREST_ITEM" (as described in the
Sample code :
The way to render the selection depends whether you use CSS or not.
1) If you use CSS, you need to :
* define a rendering rule for the selected series, for instance :
marker : "DIAMOND" ;
* modify the
pointSelected(ValueChangeEvent evt) so that it adds or removes the "selected" pseudo class on the selected dataset.
2) If you do not use CSS, you need to add a marker annotation to the chart renderer for each point of the dataset.
You can download the attached sample, based on codefragment15 of JViews Chart, that illustrates both approaches. In particular, look at the following methods
ChartBean.makeDatasetSelectedWithoutCSS(...) for details.
|JSFSelectSingleDataset.zip (90 kb)|
|Also listed in|
|Visualizations -> JViews -> Enterprise|
|Making a diagram's background transparent to show the HTML...||Changing the Equipment component layers policy|