Set width to ScatterLineSeries and set font legend items

5 posts, 0 answers
  1. Nancy
    Nancy avatar
    2 posts
    Member since:
    May 2013

    Posted 23 May 2013 Link to this post

    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.
  2. Ivan Petrov
    Admin
    Ivan Petrov avatar
    701 posts

    Posted 28 May 2013 Link to this post

    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?
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Nancy
    Nancy avatar
    2 posts
    Member since:
    May 2013

    Posted 28 May 2013 Link to this post

    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
  5. Travis
    Travis avatar
    49 posts
    Member since:
    Dec 2012

    Posted 29 May 2013 Link to this post

    A little off topic, but I second the vote re: lasso-zoom in or out.
  6. Ivan Petrov
    Admin
    Ivan Petrov avatar
    701 posts

    Posted 31 May 2013 Link to this post

    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?
Back to Top
UI for WinForms is Visual Studio 2017 Ready