Thanks for contacting Syncfusion Support.
We can achieve your requirement (displaying Line series with two colors) by setting Palette as Custom and custom brushes to the ColorModel property of the chart series as shown in the below code,
MainWindow.xaml:
<chart:StepLineSeries ItemsSource="{Binding Collection}" Palette="Custom" XBindingPath="XValue" YBindingPath="YValue">
<chart:StepLineSeries.ColorModel>
<chart:ChartColorModel>
<chart:ChartColorModel.CustomBrushes>
<SolidColorBrush Color="Blue"/>
<SolidColorBrush Color="DeepPink"/>
</chart:ChartColorModel.CustomBrushes>
</chart:ChartColorModel>
</chart:StepLineSeries.ColorModel>
</chart:StepLineSeries> |
Please find the output screenshot below,
You can refer our UG Documentation link to know more about this property,
We have prepared the sample for your reference and please find the sample from below link,
Regards,
Durgadevi S