This is a migrated thread and some comments may be shown as answers.

Set width to ScatterLineSeries and set font legend items

4 Answers 156 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Nancy
Top achievements
Rank 1
Nancy asked on 23 May 2013, 11:16 AM
Hi,
I am new to RadChartView.

I have two questions:
 -how can I set width of the line to ScatterLineSeries?
- how can I set font to legend items?

Thanks for your attention.

4 Answers, 1 is accepted

Sort by
0
Ivan Petrov
Telerik team
answered on 28 May 2013, 11:54 AM
Hi Nancy,

Thank you for writing.

You can control the width of the ScatterLineSeries through the BorderWidth property:
ScatterLineSeries scatterLine = new ScatterLineSeries();
scatterLine.BorderWidth = 5;

To change the font of the legend elements you can iterate them and change their font using the following code:
Font font = new Font("Arail", 16, FontStyle.Strikeout);
 
foreach (LegendItemElement item in this.radChartView1.ChartElement.LegendElement.StackElement.Children)
{
    item.Font = font;
}

I hope this is useful. Should you have further questions, I would be glad to help.

Regards,
Ivan Petrov
Telerik
RadChart for WinForms is obsolete. Now what?
0
Nancy
Top achievements
Rank 1
answered on 28 May 2013, 03:43 PM
Hi Ivan,
thank you for your reply, it works.

I have another question about radchartview: is it possible to zoom an area by dragging the cursor?

Thanks
Nancy
0
Travis
Top achievements
Rank 1
answered on 29 May 2013, 04:46 PM
A little off topic, but I second the vote re: lasso-zoom in or out.
0
Ivan Petrov
Telerik team
answered on 31 May 2013, 03:33 PM
Hello Nancy and Michael,

Thank you both for writing.

Please, find attached an example project with a basic implementation of a lasso zoom-in controller for RadChartView. This being an example might not be perfect and working in all cases so I would appreciate your feedback and ideas on how it can improved.

I hope this will be useful. Feel free to write back with further questions.

Regards,
Ivan Petrov
Telerik
RadChart for WinForms is obsolete. Now what?
Tags
ChartView
Asked by
Nancy
Top achievements
Rank 1
Answers by
Ivan Petrov
Telerik team
Nancy
Top achievements
Rank 1
Travis
Top achievements
Rank 1
Share this question
or