Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Facet chart line colors

    Hi,
    I'm using SmartGWT pro 4.0p-20140318.
    I've a use case in which I need to assign color to time series lines based on the retrieved data for e.g. if some data is not present color is RED otherwise GREEN. I tried setting setDataColors() but it gives me IllegalStateException - this property cannot be changed after the component has been created.

    Is there any way I can set the data colors after the chart is created? If not, is there any other option?

    Thanks.

    #2
    At the moment, you'd need to either:

    1. re-create the chart. Note this isn't very different from the complete redraw (legend, data elements, everything) that the chart would need to do if you could in fact change data colors on the fly

    OR

    2. superimpose your own line or data shape or other way of emphasizing the particular data series you are trying to highlight. This would be an extension of the technique shown here - we basically give you all the information you need to know where the chart has drawn a line

    Comment

    Working...
    X