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
100
start Line Chart from 0
posted

Hi

 It´s possible to start the linechart from 0

Parents
No Data
Reply
  • 28496
    Offline posted

     there isn't a good way to do this right now. however, it can be achieved if you create a Secondary axis for the line series, set AutoRange=False on the Axis and set its Minimum to 1.

            <igCA:XamChart>
                <igCA:XamChart.Series>
                    <igCA:Series ChartType="Column">
                        <igCA:Series.DataPoints>
                            <igCA:DataPoint Value="1" />
                            <igCA:DataPoint Value="1" />
                            <igCA:DataPoint Value="1" />
                        </igCA:Series.DataPoints>
                    </igCA:Series>
                    <igCA:Series ChartType="Line" AxisX="x2">
                        <igCA:Series.DataPoints>
                            <igCA:DataPoint Value="1" />
                            <igCA:DataPoint Value="1" />
                            <igCA:DataPoint Value="1" />
                        </igCA:Series.DataPoints>
                    </igCA:Series>
                </igCA:XamChart.Series>
                <igCA:XamChart.Axes>
                    <igCA:Axis Name="x2" AxisType="SecondaryX" AutoRange="False" Minimum="1" Maximum="3" Unit="1" />
                </igCA:XamChart.Axes>
            </igCA:XamChart>

Children
No Data