Hi
Some time after creating my chart I want to do an update.
First I call removeAllSeries() on the chart.
Then I set up the new Series (using the Number[][] format for points) and set it on the chart - ok.
Then I say new ChartTitle(),setText("new title") and call setChartTitle on the chart - no change.
I've tried reordering the steps, nulling out the title first, redrawing etc without any results.
Is this broken or am I doing it wrong. Seems like it should work.
Thanks for any advice.
regards/jj
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi! I have the exact same problem! Not only with the title, but with the YAxis title as well. Only in this case, it won't clear the old title, it'll stack up title after title as I update them. Some insight would be greatly appreciated.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi!
I also have problems with setting a new Title on an existing chart. I cannot, however, reproduce the Problem with the Y axis. After setting the Axis title with the commands:
I had the same problem with updating the title using both setChartTitleText and setChartTitle. YAxis update (getYAxis().setAxisTitleText()) works fine for me.
A work around for the title update is to use native JavaScript.
Hi
Some time after creating my chart I want to do an update.
First I call removeAllSeries() on the chart.
Then I set up the new Series (using the Number[][] format for points) and set it on the chart - ok.
Then I say new ChartTitle(),setText("new title") and call setChartTitle on the chart - no change.
I've tried reordering the steps, nulling out the title first, redrawing etc without any results.
Is this broken or am I doing it wrong. Seems like it should work.
Thanks for any advice.
regards/jj
Hi! I have the exact same problem! Not only with the title, but with the YAxis title as well. Only in this case, it won't clear the old title, it'll stack up title after title as I update them. Some insight would be greatly appreciated.
Hi!
I also have problems with setting a new Title on an existing chart. I cannot, however, reproduce the Problem with the Y axis. After setting the Axis title with the commands:
chart.getYAxis().setAxisTitleText("newTitle");
chart.redraw();
it updates as it should. The Commands
chart.setChartTitleText("newTitle");
chart.redraw();
do not change the Title of the Chart UNTIL I change the to another vLayout and then change back to the vLayout with the chart on.
I had the same problem with updating the title using both setChartTitleText and setChartTitle. YAxis update (getYAxis().setAxisTitleText()) works fine for me.
A work around for the title update is to use native JavaScript.
Create the following native method:
To update the title call the native method like this:
This works for me. Hope that helps.
Thank You!!
This workaround works for me :)