.net7.0 console project,
Steema.TeeChart.NET.Pro (4.2023.12.14)
Hi,
First problem: When the bar value exceeds the upper range of the chart axis, an unnecessary line is drawn at the top of the chart.
Second problem: When we add two series of bars, so that one is connected to the left axis and the other to the right axis, they unexpectedly stack up.
var mChart = new TChart();
mChart.Aspect.View3D = false;
mChart.Header.Visible = false;
mChart.Legend.Visible = false;
mChart.Axes.Left.AutomaticMinimum = false;
mChart.Axes.Left.Minimum = 0;
mChart.Axes.Left.AutomaticMaximum = false;
mChart.Axes.Left.Maximum = 100;
mChart.Axes.Right.AutomaticMinimum = false;
mChart.Axes.Right.Minimum = 0;
mChart.Axes.Right.AutomaticMaximum = false;
mChart.Axes.Right.Maximum = 100;
Bar bar = new Bar(mChart.Chart);
bar.Add(0, 60);
bar.Add(20, 140);
bar.Add(40, 60);
bar.Add(80, 80);
bar.Add(100, 160);
bar.MultiBar = MultiBars.Side;
Bar bar2 = new Bar(mChart.Chart);
bar2.Add(0, 20);
bar2.Add(20, 30);
bar2.Add(40, 40);
bar2.Add(80, 10);
bar2.Add(100, 50);
bar2.MultiBar = MultiBars.Side;
bar2.CustomVertAxis = mChart.Axes.Right;
mChart.Export.Image.PNG.Width = 800;
mChart.Export.Image.PNG.Height = 400;
mChart.Export.Image.PNG.Save($"D:\\TeeChartTest\\chart_7.png");