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
20
Change Axis Label's Font
posted

I tried the WPF 2007 vol2, but could not find a way to change axis label's font for stack column chart.

Is there any to do that?

Parents
No Data
Reply
  • 739
    posted

    Hi,

    The following sample shows how to set font for axis labels:

    <igCA:XamChart Name="Chart1" Margin="8,8,8,8">
       <igCA:XamChart.Series>
        <igCA:Series ChartType="StackedColumn">
         <igCA:Series.DataPoints>
          <igCA:DataPoint Value="2"/>
          <igCA:DataPoint Value="8"/>
          <igCA:DataPoint Value="6"/>
          <igCA:DataPoint Value="7"/>
         </igCA:Series.DataPoints>
        </igCA:Series>
        <igCA:Series ChartType="StackedColumn">
         <igCA:Series.DataPoints>
          <igCA:DataPoint Value="4"/>
          <igCA:DataPoint Value="7"/>
          <igCA:DataPoint Value="2"/>
          <igCA:DataPoint Value="9"/>
         </igCA:Series.DataPoints>
        </igCA:Series>
       </igCA:XamChart.Series>
       <igCA:XamChart.Axes>
        <igCA:Axis>
         <igCA:Axis.Label>
          <igCA:Label FontFamily="Algerian" FontSize="30"/>
         </igCA:Axis.Label>
        </igCA:Axis>
       </igCA:XamChart.Axes>
      </igCA:XamChart>

    Thanks,

    GoranS

Children