Color individual bars in a basic bar chart

I have a basic bar chart in my project

Chart chart = new Chart(ChartType.BAR);

How could I get the 10th or 20th bar in my chart and set the color of that individual bar?

Is this functionality in vaadin’s capacity?

Hi William,

Individual bars of one data series cannot have a color different from other bars belonging to the same series, but if you can divide up the data into different series, you can specify different colors for the different series. So splitting up your data set into two series, where one contains all data points, except the ones you want to color, and another, which contains every 10th or 20th data point, which should be colored differently.

HTH,
/Jonatan