-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
moving a multi-series chart from one component to another crush the browser #937
Comments
We have a dashboard that contains 2 different layouts. And need to switch all the charts between those 2 layout. We do not have the problem in Vaadin 8. |
Might be related to vaadin/web-components#227 |
Toggling between stacked / non-stacked for a chart with large series also extremely slow. Seems all related to the link above. Loops with series. |
Is there an estimated date that this issue will be fixed? We need this in our production systems. |
Similar approach to the one in vaadin/web-components#2348 using redraw false in the calls from |
Hello @MingjieZhu! I'm here to inform you that we have improved the chart performance in vaadin/vaadin-charts#584. Please, update your application to the Vaadin 14.7.3 and confirm that the problem has been solved. |
Created the following test view, trying to reproduce the issue as described: @Route(value = "chart")
public class ChartView extends Div {
private Chart chart = new Chart(ChartType.COLUMN);
private Div parentDiv = new Div();
private Div anotherDiv = new Div();
public ChartView() {
add(new Button("Move chart under the other div", e -> {
parentDiv.remove(chart);
anotherDiv.add(chart);
}));
add(new H2("parentDiv"), parentDiv);
add(new H2("anotherDiv"), anotherDiv);
Configuration conf = chart.getConfiguration();
conf.setTitle("Title");
conf.setSubTitle("Subtitle");
for (int i = 0; i < 30; i++) {
ListSeries series = new ListSeries("Series " + i);
for (int j = 0; j < 8; j++) {
series.addData(Math.round(Math.random() * 10000));
}
conf.addSeries(series);
}
parentDiv.add(chart);
}
} Ran it in a Vaadin 14.8.2 application without any hiccups so I assume the issue has been fixed (by vaadin/vaadin-charts#584) move-charts.mp4Please let us know if the issue is still there and preferably attach a minimal example with which it can be reproduced. Closing for now. |
Running Vaadin 14.5.3, with vaadin chart 18.0.3 (tested in Column chart and Bar chart)
single series chart do not have the problem.
chart with 5 series takes 1 seconds to load will take 8 seconds to move from one component to another.
The text was updated successfully, but these errors were encountered: