-
Notifications
You must be signed in to change notification settings - Fork 370
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
Cannot get line chart to reload data (checked other posts too) #147
Comments
@AthanB
|
Thanks for the reply. This implementation does work but is it not possible to have the same data array but with changing data within it being attached to the chart? So instead of having a "seriesData" array and a "data" array, have a single "data" array that has changing data based on user input? This is what I'm having trouble implementing. After that array changes I do Thanks |
Can you check this out and understand why the chart is remaining unchanged. Whatever the first radiobutton was checked, the chart remains with that data. Clicking another radiobutton using the other data array remains it unchanged.
data, data2 and data3 all will change their data depending on user input beforehand. Yet even when using seperate arrays and assigning them seperately to the chart. The chart still remains with the first set of data. |
@AthanB Here is the code to apply new data:
|
I tried and it doesn't work |
@gabriel-TheCode |
The only difference between the wiki guide and my code is the Runnable |
To whoever is looking to refresh. The comment @Shestac92 is suggesting is working. Just make sure to use a delay for |
Hi,
I am having trouble getting the cortasian line chart to update data based on new values inputed into the array.
This code works fine first time but when the "data" array changes the chart does not change even though the data array has changed. I am calling this method each time I change the data. I have tried adding
APIlib.getInstance().setActiveAnyChartView(cartesian);
but get an error: "setActiveAnyChartView (com.anychart.AnyChartView) in APIlib cannot be applied to (com.anychart.charts.Cartesian)"I see from previous posts that I shouldn't recreate the chart each time the data is updated but that makes no difference to the problem.
The text was updated successfully, but these errors were encountered: