Major and Minor step lines for scatter line chart

4 posts, 0 answers
  1. Ckcw
    Ckcw avatar
    3 posts
    Member since:
    Jul 2017

    Posted 07 Jul Link to this post

    Hello,

     

    I am currently implementing the ScatterLineSeries for a RadCartesianChartView.

    What I am unable to get working is the Major and Minor Step lines for the graph.

    Any input would be helpful, thank you.

    private void createChart()
    {
     
     
        scatterPointSeries.StrokeColor = Color.Green;
        scatterPointSeries.XValueBinding = new XValueBinding();
        scatterPointSeries.YValueBinding = new YValueBinding();
     
        LinearAxis verticalAxis = new LinearAxis();
        verticalAxis.LabelValueToStringConverter = new YLabelValueConverter();
        verticalAxis.Maximum = 4;
        verticalAxis.Minimum = 0;
     
        LinearAxis horizontalAxis = new LinearAxis();
        horizontalAxis.LabelValueToStringConverter = new XLabelValueConverter();
        horizontalAxis.Maximum = 24;
        horizontalAxis.Minimum = 0;
        horizontalAxis.MajorStep = 1;
     
     
     
        scatterPointSeries.VerticalAxis = verticalAxis;
        scatterPointSeries.HorizontalAxis = horizontalAxis;
     
        //Bind series to data
        scatterPointSeries.Data = this.getData();
     
        //Add series to chart
        chart.Series.Add(scatterPointSeries);
     
     
        CartesianChartGrid grid = new CartesianChartGrid();
        grid.MajorYLinesRenderMode = GridLineRenderMode.All;
        grid.LineThickness = 1;
        grid.LineColor = Color.Black;
        grid.MajorLinesVisibility = GridLineVisibility.Y;
        chart.Grid = grid;
     
     
     
     
    }
  2. Nikolay
    Admin
    Nikolay avatar
    16 posts

    Posted 12 Jul Link to this post

    Hello Colin,

    Thank you for contacting us.

    As far as I understand you cannot see the grid lines at all. If that is the case can you please try to set the VerticalAxis and HorizontalAxis properties to the chart instead to the series? Here is a simple code snipped with the correct setup of the chart horizontal and vertical axis:

    chart.VerticalAxis = verticalAxis;
    chart.HorizontalAxis = horizontalAxis;

    Let me know if that solution works for you.

    Regards,
    Nikolay
    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. Ckcw
    Ckcw avatar
    3 posts
    Member since:
    Jul 2017

    Posted 12 Jul in reply to Nikolay Link to this post

    Nikolay,

    Thank you for your response. Adding the vertical and horizontal axis to the chart will show the major steps.

    With that being said what I am still struggling to figure out is how to display minor lines as in the Kendo version.

     

  4. Nikolay
    Admin
    Nikolay avatar
    16 posts

    Posted 17 Jul Link to this post

    Hello Colin,

    As my colleague has explained in the other thread, the feature is currently not supported so you can log this as a feature request in our Feedback portal.

    Here is a link to the thread with the original answer of your question - link.

    Regards,
    Nikolay
    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top