P1124
(P h)
June 4, 2015, 11:27am
1
Hi everybody,
is there a way to reload the dataseries of a dcharts piechart?
When i change the dateseries values after creating the chart, the chart isn´t visible.
thanks for your help
SeriesDefaults seriesDefaults = new SeriesDefaults().setRenderer(
SeriesRenderers.PIE).setRendererOptions(
new PieRenderer().setShowDataLabels(true));
Legend legend = new Legend().setShow(true);
Highlighter highlighter = new Highlighter().setShow(true)
.setShowTooltip(true).setTooltipAlwaysVisible(true)
.setKeepTooltipInsideChart(true);
Options options = new Options().setSeriesDefaults(seriesDefaults)
.setLegend(legend).setHighlighter(highlighter);
pieChart = new DCharts().setDataSeries(pieChartDataSeries)
.setOptions(options).show();
pieChartDataSeries.add("WARN", 23).add("ERROR", 0);
return pieChart;
Risto
(Risto Yrjänä)
June 4, 2015, 2:25pm
2
I don’t know what DCharts is, but have you tried calling
pieChart.drawChart()
?
P1124
(P h)
June 4, 2015, 6:26pm
3
Here is the link to the dcharts addon site: https://vaadin.com/directory#!addon/dcharts-widget
there is no piechart.drawChart() - method
Risto
(Risto Yrjänä)
June 5, 2015, 5:07am
4
Ah, sorry I missed that part. In DChart there seems to be a replot call? You could also try contacting the addon author.
P1124
(P h)
June 8, 2015, 8:05am
5
unfortunately i´ve already tried the replot method. but without any sucess.
i think i had to contact the author
Andrej6
(Andrej Wittmann)
January 20, 2016, 11:54am
6
Hi,
im using also dCharts-Addon and pie chart for displaying data, but if i want to change the dataseries, the chart disappears.
Is there already a knowing solution?
Thanks!
Teodor3
(Teodor Voiculescu)
January 27, 2016, 10:13am
7
Hello,
I am also using the dCharts-Addon using barCharts with EnhancedLegend :
http://vaadin.dussan.org/dchartsdemo/#barCharts/withEnhancedLegend
I am also in need of a working solution for this. I am creating 2 BarCharts in my application but after changing the " view " , one of the charts isn’t redrawn.
i have tried everything on it , replot(true,true), markAsDirty() setImmediate(true).
The chart is there , but it isn’t displayed.
If anyone is facing the same problem please post a reply. Thank you!