Skip to content

Data type for dashStyle in LineChart #1723

@kum-deepak

Description

@kum-deepak

Currently, the API documentation (http://dc-js.github.io/dc.js/docs/html/LineChart.html#dashStyle__anchor) suggests it to be an array of numbers. However, the see also link https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-dasharray suggests it to be a string. It currently works because when setting a non-string value (https://developer.mozilla.org/en-US/docs/Web/API/Element/setAttribute), it is converted to a string.

We should update this library to use string with backward compatibility.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions