First of all, big thank you for such a great GWT wrapper.
I'm struggling with the way setColorByPoint works. I'd want to create 2 categories with each cat associated with 3 different colors. In short, every time I plot a point, I'd want to provide the color.
I set categories this way :
chart.getXAxis().setCategories("firstBar","secondBar")
and plot point this way
chart.addSeries(chart.createSeries()
.setColorByPoint(true).
.setName("myname")
.addPoint(new Point(1).setColor(myColor)))
But I don't understand where the link between the series and categories is configured ? If I write this code, all the addPoint()
go to the same category (firstBar).
Thanks for you precious help
Sami
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
First of all, big thank you for such a great GWT wrapper.
I'm struggling with the way setColorByPoint works. I'd want to create 2 categories with each cat associated with 3 different colors. In short, every time I plot a point, I'd want to provide the color.
I set categories this way :
chart.getXAxis().setCategories("firstBar","secondBar")
and plot point this way
chart.addSeries(chart.createSeries()
.setColorByPoint(true).
.setName("myname")
.addPoint(new Point(1).setColor(myColor)))
But I don't understand where the link between the series and categories is configured ? If I write this code, all the addPoint()
go to the same category (firstBar).
Thanks for you precious help
Sami