Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Dynamically set the value title in smart gwt column chart

$
0
0
I want to set the Y axis label dynamically in SmartGWT column chart type.

Added the code to redraw the chart after setting the setValueTitle() method. But it doesn't work. Is it possible ??

Code:

FacetChart chart = new FacetChart();
chart.setFacets(new Facet("MyId", "My Text"));
chart.setValueTitle("Value Title1");

Need to change the value title of the chart from a ChangedHandler of a dropbox.

When a change the title using the following code it generates an error.
Code:

chart.setValueTitle("Value Title2");
chart.redraw();

Cannot change configuration property 'valueTitle' to 'Value Title2' now that component isc_FacetChart_4 has been created.

I'm using version - gwt-2.4.0

Viewing all articles
Browse latest Browse all 4756

Trending Articles