-
Notifications
You must be signed in to change notification settings - Fork 35
Cannot update text in plots #59
Comments
Hi, automatic reloading of the chart is not supported. You can try to reload the chart by calling
This example might be of use: http://vaadin-demos.qqjtxeeuih.eu-central-1.elasticbeanstalk.com:5600/#!pie-chart-refresh-data BR, Michael |
Unfortunately, I haven't tested this very thoroughly, but I also have issues switching animation on or off after the chart has been created; so I guess that's the same thing, then. |
Hey hi everybody, I faced the same stuff here while trying to use Locale on my Charts in order to translate the labels displayed, so the thing that I did (following up SeawaterIce suggestion) is to: 1 . Add the ChartJs object (previously configurated) to a "wrapper" element, in this case a VerticalLayout:
So honestly I am not an expert here with Vaadin (just one month developing with it), but it works for me and I hope it can work for you too. Regards (and any feedback from the masters its really welcome), |
Hi, I am having some issues with updating text in plots. The code below renders a graph with the title and y axis labels both set to "Label 4", like it should. However, clicking the button has no effect on the graph, even though calling the function that the button calls has an effect when done directly in the code (inside the BasicPlot class constructor; before the chart is drawn?).
The code below can be run by inserting
into MyUI.java.
The text was updated successfully, but these errors were encountered: