Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
425
XamChart failed to display chart that contains datapoints with equal large ValueY
posted

Hi,

My XamChart instead of chart displays warning message.

"XamChart Warning: Axis interval cannot be negative value or zero.

Parameter name: interval"

I think that the problem is that this chart contains datapoints with equal large ValueY.

Example code:

<igCA:XamChart Name="xamChart1" Background="White" BorderBrush="Green" BorderThickness="2">

<igCA:XamChart.Series>

<igCA:Series Fill="Green" Label="Test Data" ChartType="ScatterLine">

<igCA:Series.DataPoints>

<igCA:DataPoint>

<igCA:DataPoint.ChartParameters>

<igCA:ChartParameter Type="ValueX" Value="1.4" />

<igCA:ChartParameter Type="ValueY" Value="1.1E+19" />

</igCA:DataPoint.ChartParameters>

</igCA:DataPoint>

<igCA:DataPoint>

<igCA:DataPoint.ChartParameters>

<igCA:ChartParameter Type="ValueX" Value="1.6" />

<igCA:ChartParameter Type="ValueY" Value="1.1E+19" />

</igCA:DataPoint.ChartParameters>

</igCA:DataPoint>

<igCA:DataPoint>

<igCA:DataPoint.ChartParameters>

<igCA:ChartParameter Type="ValueX" Value="2" />

<igCA:ChartParameter Type="ValueY" Value="1.1E+19" />

</igCA:DataPoint.ChartParameters>

</igCA:DataPoint>

</igCA:Series.DataPoints>

</igCA:Series>

</igCA:XamChart.Series>

</igCA:XamChart>

When I change ValueY of any of DataPoint to another value, for example 1.2E+18  - chart displayed well.

I think that this is XamChart bug.

Any ideas ?