Hi,
I am using xamchart control to display the Column chart.
When all Datapoint values are 0 then Y-Axis display the range (0.0, 0.3, 0.6, 0.9, 1.2).
<igCA:Axis AxisType="PrimaryY" Logarithmic="False" >
When Datapoint has values its range is adjusted aumatically.
I used AutoRange="True" Maximum="5" Minimum="0" Unit="1" in Y axis but its giving warning messages for large values "xamchart warning:Axis unit value too small".
I want to display Y-Axis range (0, 1, 2, 3, 4, 5) when all Datapoint values are 0.
Thanks,
Tarique
One more question.
Is there any way to Set dynamically Unit value based on Maximum/Minimum range?
Hi starique,
Try setting the AutoRange property to False. This property indicate whether the Minimum, Maximum and Unit are automatically calculated. To create manual range AutoRange property has to be set to false and Minimum, Maximum and Unit have to be set. e.g.
<igChart:XamChart Name="chart1" > <igChart:XamChart.Axes> <igChart:Axis AxisType="PrimaryY" Logarithmic="False" AutoRange="False" Maximum="5" Minimum="0" Unit="1" /> </igChart:XamChart.Axes> <igChart:XamChart.Series> <igChart:Series ChartType="Column"> <igChart:Series.DataPoints> <igChart:DataPoint Value="0" /> <igChart:DataPoint Value="0" /> <igChart:DataPoint Value="0" /> <igChart:DataPoint Value="0" /> </igChart:Series.DataPoints> </igChart:Series> </igChart:XamChart.Series></igChart:XamChart>
Which will produce:
The Unit property can be set through the Axes collection. For example:
chart1.Axes[0].Unit = 5;
Best regards, Ivan Kotev