Articles in this section
Category / Section

How to customize the line strokes in a chart axis?

1 min read

 

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)
Please sign in to leave a comment
Access denied
Access denied