Hi,
I am using XamDataChart v12.1.
I want certain functionalities in XamDatachart.
1) According to the image attached and marked as 1, I want to display the CategoryXAxis label as in image. For this, I have changed CategoryXAxis label Angle to -45 and Extent = 100 but it displays the label over the plotarea and not according to the image.
2) According to the image attached and marked as 2, I want to have a small line to show the value associated with this axis value.
3) According to the image attached and marked as 3, I want to have dotted lines for gridlines of plotarea.
Please help me in having these functionalities implemented.
Thans,
VJ
Hello Varun,
Thank you for you post. I have been looking into it and have created a small sample for you. For your first requirement I set the label in a DataTemplate. Since the XamDataChart does not implement a functionality for TickMarks at this point, for you second requirement I modified the label itself to show a little dash - after the text for the first NumericYAxis and before the text for the second NumericYAxis. For your third requirement I set the MajorStrokeDashArray property for the first NumericYAxis. In order to hide the MajorStroke of the second NumericYAxis I set the MajorStrokeThickness to zero. Please find the attached sample and feel free to let me know if you require any further assistance on the matter.
I am just checking your progress on the issue. If you require any further assistance please do not hesitate to ask.
I checked out your sample. It was great.
Just a small issue is that my Axis Labels are not displaying properly in case there are large no. of DataPoints.
In few datapoints, it's working fine.
Hello,
I have been looking into your issues.
Varun, I can suggest you to set the Interval property of the CategoryXAxis to zero. This way all of the labels for your data points should appear.
Arun, I was not able to reproduce your issue. Would you please modify the previous sample I have attached with your functionality, in order to be able to identify what might be causing this behavior and provide you with better support. I am looking forward to your post.
I am just checking your progress on the issues. If you require any further assistance please do not hesitate to ask.
Hi Gergana,
I used your given sample which is working fine but the problem is only that its cutting XAxis Label when there are large number of DataPoints. For full clearification I have modified your given sample according to my requirment. Please find the attached sample. For more clearification kindly see my previously image post.
Hello Arun,
The labels on the second image are displayed like this, because there are labels for every data point shown by the chart. Setting the Extent property displays the labels on two levels, in order the labels to be shown properly. You can set the Interval property of the CategoryXAxix to 2. This way a label would be shown for every second data point. On other possible solution is to set Width for the Grid and wrap it with a ScrollbarViewer. Atfer wripping the grid inside the viewer you have to set the visibility for the two scrollbars as follows: HorizontalScrollBarVisibility="Auto" and VerticalScrollBarVisibility="Auto". Please let me know if you have any further questions.
Hello Gergana,
Thank you very much for your quick response. Please find attached image in which i have added two DataCharts, below one is produced by the given sample and upper one i required.
I have been investigating your issue. After the investigation I have modified the sample you have sent. In the sample I have changed the value of the CenterX and CenterY properties in the template for the label. I have set the Extent property for the AxisLabelSettings. Please refer to the modified sample and feel free to let me know if you require any further assistance on the mater.