I am using LiveCharts 0.9.7 and 1.2.9 Geared Version on WPF to show population data on ColumnSeries.
Here is my scenario: At the beginning, I am filling Columns with Blue. I want to change the colour of a single Column's Value on runtime.
I tried to reach a single value with SeriesCollection[0].Values[0]
but, there no Fill or Colour option, it is just Double
.
I also tried to cast SeriesCollection[0] to ColumnSeries
but, I couldn't achieve the result. Is it possible to update a single value's colour on runtime?
public SeriesCollection SeriesCollection { get; set; } = new SeriesCollection
{
new ColumnSeries
{
Title = "Population of Bodrum",
Values = new ChartValues<double> { 1500, 2500, 3700, 2000, 1000},
Fill = Brushes.Blue
}
};