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

Major and Minor step lines for scatter line chart

3 Answers 68 Views
Chart - Xamarin.Android
This is a migrated thread and some comments may be shown as answers.
Ckcw
Top achievements
Rank 1
Ckcw asked on 07 Jul 2017, 07:55 PM

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;
 
 
 
 
}

3 Answers, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 12 Jul 2017, 02:27 PM
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
0
Ckcw
Top achievements
Rank 1
answered on 12 Jul 2017, 05:03 PM

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.

 

0
Nikolay
Telerik team
answered on 17 Jul 2017, 07:55 AM
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 .

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
Tags
Chart - Xamarin.Android
Asked by
Ckcw
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Ckcw
Top achievements
Rank 1
Share this question
or