Hello, Jimmy,
You can add a
ScatterLineSeries and a
LineSeries to the same
RadChartView control. You can also specify the desired axis before adding the series to the RadChartView.
Series collection. Please refer to the following help articles demonstrating how to add multiple axes:
https://docs.telerik.com/devtools/winforms/controls/chartview/axes/datetime
https://docs.telerik.com/devtools/winforms/controls/chartview/axes/multiple-axes
The code snippet below shows how to achieve the result illustrated
in the screenshot:
ScatterLineSeries scatterSeries =
new
ScatterLineSeries();
scatterSeries.DataPoints.Add(
new
ScatterDataPoint(15, 19));
scatterSeries.DataPoints.Add(
new
ScatterDataPoint(18, 10));
scatterSeries.DataPoints.Add(
new
ScatterDataPoint(13, 15));
scatterSeries.DataPoints.Add(
new
ScatterDataPoint(10, 8));
scatterSeries.DataPoints.Add(
new
ScatterDataPoint(5, 2));
scatterSeries.PointSize =
new
SizeF(8, 8);
this
.radChartView1.Series.Add(scatterSeries);
LineSeries series =
new
LineSeries();
series.DataPoints.Add(
new
CategoricalDataPoint(6, DateTime.Now));
series.DataPoints.Add(
new
CategoricalDataPoint(4, DateTime.Now.AddDays(1)));
series.DataPoints.Add(
new
CategoricalDataPoint(7, DateTime.Now.AddDays(2)));
series.DataPoints.Add(
new
CategoricalDataPoint(5, DateTime.Now.AddDays(3)));
DateTimeCategoricalAxis categoricalAxis =
new
DateTimeCategoricalAxis();
categoricalAxis.DateTimeComponent = DateTimeComponent.Day;
categoricalAxis.PlotMode = AxisPlotMode.BetweenTicks;
categoricalAxis.LabelFormat =
"{0:m}"
;
series.HorizontalAxis = categoricalAxis;
radChartView1.Series.Add(series);
I hope this information helps. If you need any further assistance please don't hesitate to contact me.
Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
Get
quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers.
Learn More.