I have a datasource with Date and String as column datatypes. I have the axis as follows
<igChart:Axis AxisType="PrimaryX" AutoRange="True" />
<
igChart:Axis
AxisType
=
"PrimaryX"
AutoRange
"True"
/>
The datasource is generated dynamically so I have to bind it programatically. Whenever I set the datasource and try to draw the graph,
why is it that I see numbers instead of text or datetime on the X axis?
Also, how do I view labels for each of the data points on the chart?
Hi SilverDev,
Can you please send me the entire XAML of your xamWebChart. This will help me better answer your questions.
Thank you,
Marisa
Hi there,
You can achieve the functionality you are looking for by simply changing your DataMapping string in the code behind. If you change it to:
seriesChart.DataMapping = "Label=Name;Value=UnitPrice";
This should give you the desired effect of the Name column in your data showing as the axis labels and items in the legend. You will probably have to adjust the size of your DataChart to keep the axis labels from colliding.
Hope this helps!
-Marisa
Attached is the solution. If you observe, I see numbers on the X axis labels and items as legend. I wanted to view the values of column 'Name' on the axis. Please help.