Strip Line

Hello
i know i can draw a strip line , but i want the text to be outside the chart,at the end of the strip line (the strip line is all the axis long)

thank you


1 Reply

J. J.Nagarajan Syncfusion Team June 17, 2008 12:41 PM UTC

Hi Ravit ,

The text of the Strip line should not be rendered out side of the chart region. You can align the text with in the chart region by using TextAlignment property. Please refer to the following code snippet.

ChartStripLine stripLine = new ChartStripLine();
stripLine.Vertical = false;
stripLine.Text =" ChartStripLine";
stripLine.TextAlignment = ContentAlignment.TopCenter;
this.chartControl1.PrimaryXAxis.StripLines.Add(stripLine);

Please let me know if this helps.

Thanks,
Nagaraj


Loader.
Up arrow icon