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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

SfChart Component question

Thread ID:

Created:

Updated:

Platform:

Replies:

115127 Dec 27,2013 03:58 AM Jan 7,2014 11:39 AM WinRT 2
loading
Tags: General
Daniele
Asked On December 27, 2013 03:58 AM

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

Karthikeyan V [Syncfusion]
Replied On December 31, 2013 05:09 AM

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.


Daniele
Replied On January 7, 2014 11:39 AM

Thanks,

Following your suggestion I solved the problem.


Bye

Daniele


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;