Home Forums Feature Requests & Feedback Striplines – Create data tag for custom data Reply To: Striplines – Create data tag for custom data

#60896

@siwatec,

You can pass any custom property within striplines, which can then be accessed programmatically. For instance, you might include a custom property like “data” in your stripline object and this won’t be displayed, but it will be available for use in your code.

stripLines:[
    {                
        value: 1940,
        label: "In the 40s",
        data: "my stripline"
    }
]

The property can later be accessed through the chart options as chart.options.axisX.stripLines[0].data.


Ananya Deka
Team CanvasJS

  • This reply was modified 5 days, 20 hours ago by Ananya.