LegendScrollbar is broken in newer versions
Posted: Mon Apr 02, 2012 6:48 am
Hello,
till last week we used TeeChart 3.5 (3.5.3105.20151) for over 4 years now but finally we upgraded to version 4.1 (4.1.2011.6283). In one of my first tests i found an issue with the LegendScrollBar tool. The size of the legend does not fit anymore and i have not found a usefull way to fix the problem for my own. In the attachment you can find an illustration of what i mean.
I used the following code for each TeeChart version:
The issue occure if you resize the form. The initially size of the legend is correct but after resizing it is wrong.
Did you have a fix or a workaround for this behaviour?
Thanks!
till last week we used TeeChart 3.5 (3.5.3105.20151) for over 4 years now but finally we upgraded to version 4.1 (4.1.2011.6283). In one of my first tests i found an issue with the LegendScrollBar tool. The size of the legend does not fit anymore and i have not found a usefull way to fix the problem for my own. In the attachment you can find an illustration of what i mean.
I used the following code for each TeeChart version:
Code: Select all
readonly TChart chart;
public Form1()
{
InitializeComponent();
this.Width = 1024;
this.Height = 368;
chart = new TChart { Dock = DockStyle.Fill };
chart.Aspect.View3D = false;
chart.Header.Text += " " + typeof(TChart).Assembly.GetName().Version;
this.Controls.Add(chart);
InitializeChart();
}
private void InitializeChart()
{
var legendScrollBar = new LegendScrollBar();
chart.Tools.Add(legendScrollBar);
for (int i = 0; i < 25; i++)
{
var series = new Bar(chart.Chart) { Marks = { Visible = false } };
series.FillSampleValues(10);
}
}
Did you have a fix or a workaround for this behaviour?
Thanks!