We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

SfChart Component question

Hi, I have a question about the chart component.

This is my primary axis:

<Syncfusion:SfChart x:Name="Trend">
                        <Syncfusion:SfChart.PrimaryAxis>
                            <Syncfusion:DateTimeAxis
                                EnableScrollBar="True"
                                PlotOffset="120"
                                LabelFormat="MMM-dd-yyyy"
                                FontSize="15"  
                                LabelRotationAngle="75"/>
                        </Syncfusion:SfChart.PrimaryAxis>
                        <Syncfusion:SfChart.SecondaryAxis>
                            <Syncfusion:NumericalAxis/>
                        </Syncfusion:SfChart.SecondaryAxis>
                        <Syncfusion:AreaSeries
                                    ItemsSource="{Binding Items}"
                                    XBindingPath="Date"
                                    YBindingPath="Value">
                        </Syncfusion:AreaSeries>
                    </Syncfusion:SfChart>

The question is:

Is it possible to show (for the primary axis) just the label of the points in the collection?

I want to give you an example to be more clear.

This is my collection

{ (3.9;17/04/2009), (17;20/12/2013), (18;23/12/2013),(18;24/12/2013),(19;25/12/2013) }


but on the horizontal axis I see more value  than the collection.

So, Is it possible to use any parameter to have just the value in the collection?

I need to have just the date in the collection.

Thanks in advanced,

Daniele







                               



chart_f3c84d95.zip

2 Replies

KV Karthikeyan V Syncfusion Team December 31, 2013 10:09 AM UTC

Hi Daniele,

Thanks for using Syncfusion Products.

We are analysed your requirement. You can achieve your requirement by changing the primary axis as CategoryAxis.

Code Snippet [XAML]:

<Syncfusion:SfChart.PrimaryAxis>

< Syncfusion:CategoryAxis
                                EnableScrollBar="True"
                                PlotOffset="120"
                                LabelFormat="MMM-dd-yyyy"
                                FontSize="15"  
                                LabelRotationAngle="75"/>

</ Syncfusion:SfChart.PrimaryAxis>

Please let us know, if you have any concerns.

Regards,

Karthikeyan V.



DA Daniele January 7, 2014 04:39 PM UTC

Thanks,

Following your suggestion I solved the problem.


Bye

Daniele


Loader.
Live Chat Icon For mobile
Up arrow icon