Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Vaadin dCharts-Addon - reload dataseries
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;
I don't know what DCharts is, but have you tried calling
pieChart.drawChart()
?
Here is the link to the dcharts addon site: https://vaadin.com/directory#!addon/dcharts-widget
there is no piechart.drawChart() - method :/
Ah, sorry I missed that part. In DChart there seems to be a replot call? You could also try contacting the addon author.
unfortunately i´ve already tried the replot method. but without any sucess.
i think i had to contact the author :/
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!
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!