How to create a dotted line in legacy WPF C1 Chart

Posted by: terry.stringer on 15 July 2022, 10:00 am EST

    • Post Options:
    • Link

    Posted 15 July 2022, 10:00 am EST

    How do I specify a dotted line for a C1 Line Chart? For example, to specify a Line thickness I would do this, ConnectionStrokeThickness = 3. What is the code for a dotted line?

    Thanks!

  • Posted 17 July 2022, 2:34 pm EST

    Hi,

    In order to achieve your requirement, you need to set ConnectionStrokeDashes property as:

    
    <c1:DataSeries Label="Series 1" RenderMode="Default" Values="20 22 19 24 25" ConnectionStrokeThickness="3" ConnectionStrokeDashes="1,1"/>
    
    

    JFYI, You can set ConnectionStrokeDashes array according to your requirement. It is used to set dash pattern like a dotted line.

    Please refer the attached sample for the same : ChartDemo.zip

    Best Regards, Nitin.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels