BoldDeskWe are launching BoldDesk on Product Hunt soon. Learn more & follow us.
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
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.
Thanks,
Following your suggestion I solved the problem.
Bye
Daniele