Unable to display ColorBand
Posted: Mon Oct 03, 2022 10:57 am
Hi,
I'm using TeeChart for Xamarin.Forms to create charts with a line plot and a reference area behind that line, using the TeeChart ColorBand. Recently I updated the version of TeeChart from 4.2018.5.16 to 4.2022.1.20. However, since the update, the ColorBand is no longer displayed, even though no other changes have been made to the code.
I tried to reproduce the issue using Steemas XamControls sample app from GitHub (https://github.com/Steema/TeeChart-NET- ... amControls). I added a ColorBand to the LineChart adding the following code in LineChart.cs. After updating the TeeChart version from 4.2020.5.28 to 4.2022.1.20, the ColorBand is no longer displayed in the line chart.
Do you know if there are any known issues with the ColorBand in the new TeeChart version(s)? Is there anything that needs to be changed to make it work again? Thank you in advance!
I'm using TeeChart for Xamarin.Forms to create charts with a line plot and a reference area behind that line, using the TeeChart ColorBand. Recently I updated the version of TeeChart from 4.2018.5.16 to 4.2022.1.20. However, since the update, the ColorBand is no longer displayed, even though no other changes have been made to the code.
I tried to reproduce the issue using Steemas XamControls sample app from GitHub (https://github.com/Steema/TeeChart-NET- ... amControls). I added a ColorBand to the LineChart adding the following code in LineChart.cs. After updating the TeeChart version from 4.2020.5.28 to 4.2022.1.20, the ColorBand is no longer displayed in the line chart.
Code: Select all
LineChart(ChartView BaseChart)
{
...
ColorBand colorBand = new ColorBand(BaseChart.Chart);
colorBand.Axis = BaseChart.Chart.Axes.Left;
colorBand.Color = Color.Red;
colorBand.Start = 200;
colorBand.End = 210;
...
}