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
210
Hide grid lines
posted

 Hello,

 How can I hide the grid lines of a XamChart?

 Thanks,

Jens 

Parents
  • 739
    posted

     Hello,

    To disable Gridlines the Visible property of the Mark has to be set to False. Please, use the following sample:

    <igCA:XamChart View3D="False" x:Name="chart" >
                <igCA:XamChart.Series>
                    <igCA:Series ChartType="Column">
                    <igCA:Series.DataPoints>
                        <igCA:DataPoint Value="3" Fill="#FFD70005" Label="Italy"/>
                        <igCA:DataPoint Value="5" Fill="#FF6CA224" Label="Spain"/>
                        <igCA:DataPoint Value="4" Fill="#FF076CB0" Label="France"/>
                        <igCA:DataPoint Value="7" Fill="#FFE6BE02" Label="China"/>
                        <igCA:DataPoint Value="5" Fill="#FF543792" Label="Portugal">
                        </igCA:DataPoint>
                    </igCA:Series.DataPoints>
                        </igCA:Series>             
                </igCA:XamChart.Series>
       <igCA:XamChart.Legend>
        <igCA:Legend/>
       </igCA:XamChart.Legend>
       <igCA:XamChart.Axes>
        <igCA:Axis AxisType="PrimaryY">
         <igCA:Axis.MajorGridline>
          <igCA:Mark Visible="False"/>
         </igCA:Axis.MajorGridline>
        </igCA:Axis>
       </igCA:XamChart.Axes>
       <igCA:XamChart.Scene>
        <igCA:Scene>
         <igCA:Scene.GridArea>
          <igCA:GridArea BorderBrush="#FF000000"/>
         </igCA:Scene.GridArea>
        </igCA:Scene>
       </igCA:XamChart.Scene>
      </igCA:XamChart>

    Thanks,

    GoranS

Reply Children