Articles in this section

How to customize the line strokes in a chart axis?

The line strokes in a chart axis can be customized using the LineStroke property of ChartAxis tag.

The following code is used to change the line stroke's thickness, brush, dash style, etc.

<syncfusion:ChartArea GridBackground="White" Background="Transparent" BorderBrush="Transparent">   <syncfusion:ChartArea.PrimaryAxis>
    <syncfusion:ChartAxis >
      <syncfusion:ChartAxis.LineStroke>
         <Pen Brush="#C6C6C6" Thickness="1">
          <Pen.DashStyle>
            <DashStyle Dashes="1,2"/>
           </Pen.DashStyle>
        </Pen>
      </syncfusion:ChartAxis.LineStroke>
    </syncfusion:ChartAxis >
  </syncfusion:ChartArea.PrimaryAxis>
</syncfusion:ChartArea>

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied