How to plot points on the same spot on the x axis on scatter plot

Hello,


I have a scatter chart. The y axis is numerical, the x axis is categorical. If I have 2 points with different numerical values but the same category, they show up as different x values. How can I make these show up on the same x value so that they are vertical of each other.


The xaml code and a picture of what I have currently is attached. I also attached what I found in the documentation of what I want.


Thanks,

David


Attachment: Chart_Issue_f337fc71.zip

1 Reply

YP Yuvaraj Palanisamy Syncfusion Team August 9, 2021 07:08 AM UTC

Hi David Bauer, 

Greetings from Syncfusion. 

We would like to let know that the requirement “Plot scatter segment with same Category value for different datapoint” has been achieved with the help of ArrangeByIndex property in Category axis. Please find the code example below. 

CodeSnippet: 
<chart:SfChart.PrimaryAxis> 
    <chart:CategoryAxis ArrangeByIndex="False"
        <chart:CategoryAxis.Title> 
            <chart:ChartAxisTitle Text="CategoryAxis"/> 
        </chart:CategoryAxis.Title> 
    </chart:CategoryAxis> 
</chart:SfChart.PrimaryAxis> 


Also, we have attached the sample for your reference. Please find the sample from the below  link. 

  
Output
 

For more details, please refer the below link 

Regards, 
Yuvaraj. 


Loader.
Up arrow icon