Posted 3 August 2022, 8:04 pm EST
Apologize for misunderstanding your scenario.
As we observed, that you want to change color of bar according to a condition i.e., conditional formatting.
JFYI, You can handle SymbolRendering event for a particular series to achieve conditional formatting on series symbol. SymbolRendering event fires for every symbol when it’s rendering on FleChart.
As your requirement, We’ve modified the sample to change the color of Column bar according to previous value.
- If previous value is greater than current, then fill Red color.
- If previous value is smaller than current, then fill Blue color.
- Otherwise(if previous value is same as current), then fill Gray color.
private void Symbol_Rendering(object sender, C1.WPF.Chart.RenderSymbolEventArgs e)
var data = (e.Item as Product).Sales;
if (prevValue < data)
else if (prevValue > data)
prevValue = data;
Please refer the attached modified sample for the same: FlexChartSample_Mod.zip