Announcement
Collapse
No announcement yet.
X
-
Hi Isomorphic,
Thanks for your confirmation.
As per my understanding "setShowDataValues" property will display the values during "On mouse over" event.
But our requirement is, the value should be displayed permanent for all bars at the same time.
>> please see the Adding Extra Elements chart sample.
As per my understanding, you mean the following sample.
https://www.smartclient.com/smartgwt...ingNewElements
To display the value for each bar (say if I have some 100 bars displayed), it requires to add more controls over the graph & calculation for position is required.
Is it correct ?
Thank you.Last edited by vnathank; 27 Sep 2018, 04:52.
Comment
-
Originally posted by vnathank View PostHi Isomorphic,
Thanks for your confirmation.
As per my understanding "setShowDataValues" property will display the values during "On mouse over" event.
If you rebuild the Simple Chart sample with the getViewPanel() replaced with the below version, you'll see what the built-in support for this feature looks like.
Code:public Canvas getViewPanel() { final FacetChart chart = new FacetChart(); chart.setHeight(600); chart.setShowDataValues(true); chart.setStacked(false); chart.setData(SimpleChartData.getData()); chart.setFacets(new Facet("region", "Region"), new Facet("product", "Product")); chart.setValueProperty("sales"); chart.setChartType(ChartType.BAR); chart.setTitle("Sales by Product and Region"); return chart; }
Comment
Comment