When i create chart with negative value, this negative value don't have color.
And when i try to set color (ForegroundColor and BackgrounrColor) or uncheck SwapColorsOnNegative it's don't work
- Code: Select all
var chart = sheet.Charts.Add();
var series = chart.Series.Add();
series.EnteredDirectlyValues = new object[] { -1, 1 };
series.DataFormat.AreaProperties.SwapColorsOnNegative = false;
series.DataFormat.AreaProperties.ForegroundColor = Color.Blue;
Do you have a workaround ?
Thanks.