I have a line chart with series marks that contain 2 lines of text. When the first line is longer then the second one, the series marks are not resized correctly. This means that there is no space between the letters and the border of the series marks and sometimes the text even goes outside of the border.
If the second line is longer then the first one, everything works fine.
Is it possible to resize this properly?
My code is the following:
Code: Select all
void lineSeries_GetSeriesMark(Steema.TeeChart.Styles.Series series, Steema.TeeChart.Styles.GetSeriesMarkEventArgs e)
{
e.MarkText = "Mark text string \n value: " + e.ValueIndex;
}
public Form1()
{
InitializeComponent();
tChart1.Aspect.View3D = false;
Steema.TeeChart.Styles.Line line = new Steema.TeeChart.Styles.Line(tChart1.Chart);
Steema.TeeChart.Styles.SeriesMarks marks = new Steema.TeeChart.Styles.SeriesMarks();
line.GetSeriesMark += new Steema.TeeChart.Styles.Series.GetSeriesMarkEventHandler(lineSeries_GetSeriesMark);
for (int i = 0; i < 10; i++)
{
line.Add(i*i);
}
}