WPF Charting Documentation - SciChart WPF Charts SDK v5.x
Axis Alignment - Setting Axis Alignment

XAxis on the Top/Bottom

SciChart supports unlimited XAxis on the top or bottom of the chart. To set the alignment of an axis, simply set the AxisBase.AxisAlignment property.

XAxis on the Top/Bottom
Copy Code
<s:SciChartSurface>
   <s:SciChartSurface.YAxis>
      <s:NumericAxis AxisAlignment="Right" AxisTitle="YAxis"/>
   </s:SciChartSurface.YAxis>

   <s:SciChartSurface.XAxes>
      <s:NumericAxis AxisAlignment="Top" AxisTitle="XAxis 0"/>
      <s:NumericAxis Id="SecondaryXAxis" AxisAlignment="Bottom" AxisTitle="XAxis 1"/>
      <s:NumericAxis Id="TeriaryXAxis" AxisAlignment="Bottom" AxisTitle="XAxis 2"/>
   </s:SciChartSurface.XAxes>
</s:SciChartSurface>

Results in

YAxis on the Left/Right

SciChart supports unlimited YAxis on the left or right of the chart. To set the alignment of an axis, simply set the AxisBase.AxisAlignment property.

YAxis on the Left/Right
Copy Code
<s:SciChartSurface>
   <s:SciChartSurface.XAxis>
      <s:NumericAxis AxisAlignment="Bottom" AxisTitle="XAxis"/>
   </s:SciChartSurface.XAxis>

   <s:SciChartSurface.YAxes>
      <s:NumericAxis AxisAlignment="Left" AxisTitle="YAxis 0"/>
      <s:NumericAxis Id="SecondaryYAxis" AxisAlignment="Right" AxisTitle="YAxis 1"/>
      <s:NumericAxis Id="TeriaryYAxis" AxisAlignment="Right" AxisTitle="YAxis 2"/>
   </s:SciChartSurface.YAxes>
</s:SciChartSurface>

Results in

See Also

 

 


SCICHART ® is a Registered Trademark in the UK, US and EEC. Copyright SciChart Ltd 2011-2018.

Email us to give feedback!