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
415
Empty chart?
posted

I have a custom panel that I need to add some gridlines to.  Since I am an infragistics customer, I thought it would be cool to use an empty XamChart and just set the X axis to the min and max that I have.

But so far, the xamchart always shows some default data.  Is it possible to just display the X axis gridline?

Parents
  • 28496
    Suggested Answer
    Offline posted

    this is possible, but you need to fake the chart out by adding an empty series to it.

    <igChart:XamChart>
                <igChart:XamChart.Series>
                    <igChart:Series ChartType="Bar" />
                </igChart:XamChart.Series>
                <igChart:XamChart.Axes>
                    <igChart:Axis AxisType="PrimaryY" Visible="False" />
                    <igChart:Axis AxisType="PrimaryX" Visible="False" />
                </igChart:XamChart.Axes>
                <igChart:XamChart.Legend>
                    <igChart:Legend Visible="False" />
                </igChart:XamChart.Legend>
            </igChart:XamChart>

Reply Children