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

ScatterLine chart doesn't render some ChartSeriesStyle properties

3 Answers 114 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Ivan
Top achievements
Rank 3
Iron
Iron
Iron
Ivan asked on 19 Sep 2020, 08:56 AM

Hello!
Have a problem:

I can's set ChartSeriesStyle.Step for ScatterLine chart
Here is sample (taken from your public sample)

 <ChartSeries Type="ChartSeriesType.ScatterLine"
                     Style="ChartSeriesStyle.Step"
                     Data="@Series1Data"
                     Name="0.8C"
                     XField="@nameof(ModelData.X)"
                     YField="@nameof(ModelData.Y)">
</ChartSeries>

But chart ingore Step style and rendering as normal style
Also, i can't set width for series line.
Trying like:

 <ChartSeries Type="ChartSeriesType.ScatterLine"
                     Style="ChartSeriesStyle.Step"
                     Data="@Series1Data"
                     Name="0.8C"
                     XField="@nameof(ModelData.X)"
                     YField="@nameof(ModelData.Y)">

<ChartSeriesLine Width="20" />
</ChartSeries>


3 Answers, 1 is accepted

Sort by
0
Accepted
Marin Bratanov
Telerik team
answered on 21 Sep 2020, 11:14 AM

Hi Ivan,

The Step appearance is supported only for categorical lines - the "standard" Line series and it can also be set for the line of an Area series (link). I've updated the docs with this information (commit link). Thank you for bringing this up.

 

Regards,
Marin Bratanov
Progress Telerik

Five days of Blazor, Angular, React, and Xamarin experts live-coding on twitch.tv/CodeItLive, special prizes, and more, for FREE?! Register now for DevReach 2.0(20).

0
Ivan
Top achievements
Rank 3
Iron
Iron
Iron
answered on 21 Sep 2020, 04:43 PM
Thanks for your reply!
And what about settings for line's width?
0
Accepted
Marin Bratanov
Telerik team
answered on 22 Sep 2020, 05:38 AM

Hello Ivan,

The ChartSeriesLine inner tag settings apply only to an Area series. For categorical Line series the main series tag can be used, and a scatter-line series does not expose such configuration.

 

Regards,
Marin Bratanov
Progress Telerik

Five days of Blazor, Angular, React, and Xamarin experts live-coding on twitch.tv/CodeItLive, special prizes, and more, for FREE?! Register now for DevReach 2.0(20).

Tags
Charts
Asked by
Ivan
Top achievements
Rank 3
Iron
Iron
Iron
Answers by
Marin Bratanov
Telerik team
Ivan
Top achievements
Rank 3
Iron
Iron
Iron
Share this question
or