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 ?

 

Parents
  • 28496
    Offline posted

     i think it is a bug too.  i entered it into our bug tracking system (#13415), so it should be resolved in a future hotfix.  to inquire about the status of this bug, please contact Infragistics Developer Support at http://infragistics.com/gethelp

    you can work around the problem by specifying an axis range for Y like this:

                <igCA:XamChart.Axes>
                    <igCA:Axis AxisType="PrimaryY" AutoRange="False" Minimum="1.0E19" Maximum="1.2E19" Unit="0.1E19" />
                </igCA:XamChart.Axes>

Reply Children