In my chart I only have one serie, and I would like -according to the value- to set a different color for the bar. For exemple :
1. How do I set a color to a single Bar ?
2. How do I apply that to my chart ?
You'll need to create your own subclass of BarRenderer and override getItemPaint(). Instead of choosing a color based on column, choose it based on your value. Here's an outline to show how the existing BarRenderer works.
底下範例將 Bar Chart 定義下面的數值範圍使用不同的顏色顯示: