|
<chart:SfChart.Series>
<chart:LineSeries ItemsSource="{Binding Data}"
XBindingPath="XValue"
YBindingPath="YValue"/>
<chart:ScatterSeries ItemsSource="{Binding ScatterData}"
ScatterHeight="20"
ScatterWidth="20"
Opacity="1"
Color="Blue"
XBindingPath="XValue"
YBindingPath="YValue"/>
</chart:SfChart.Series> |
|
<chart:SfChart.PrimaryAxis>
<chart:CategoryAxis ArrangeByIndex="False"
PlotOffsetEnd="30"/>
</chart:SfChart.PrimaryAxis> |
Hello Yuvaraj,
Many months pass and I realizenow that there is no any sample in your last answer. Could you please reattach it? Thanks in advance
Good morning Yuvaraj,
I tried to set that property , "ArrangeByIndex", with False but one error occurs.
I am using on behind code the method OnSizeAllocated (Inherited from Page) and when I set ArrangeByIndex with False and run app it throws an exception (I leave you a screenshot of exception below).
Is it mean that I cannot use ScatterSeries with a CategoryAxis to make a end circle in chart if I am using OnSizeAllocated on behind code?
Exception details:
| Value | Type | |
|---|---|---|
| $exception | {System.ArgumentNullException: Value cannot be null.
Parameter name: source
at System.Linq.Enumerable.Select[TSource,TResult] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] selector) [0x00003] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Linq/src/System/Linq/Select.cs:18
at Com.Syncfusion.Charts.CategoryAxis.GroupData (System.Collections.ObjectModel.ObservableCollection`1[T] visibleSeries) [0x00070] in | System.ArgumentNullException |
Hi Yuvaraj,
I was trying some cases and I realize that it throws an exception because when ScatterSeries load first time and ItemSource is an empty list crash. But if you put just one single data in list and after first time load you delete it dont crash. Maybe is a bug of initialitation?
Anyway is solved!
Thanks for everything,
Lolo.