How to change Dimple js gridlines styles

59 views Asked by At

I want to change the style of Yaxis grid lines to dashlines. Could anyone help me on this. Thanks..

1

There are 1 answers

0
Number1 Dad On

I know this is old but this might help someone looking to change the gridline color.
The example dimplejs website gives does not work as you pointed out.
This is because the stroke attribute will be overridden by the line STYLE.
This is from the dimplejs webpage and does change the stroke but does not display the new color.

myAxis.gridlineShapes.selectAll("line").attr("stroke", "#FF0000");

Change the style instead of the stroke attribute like this.

myAxis.gridlineShapes.selectAll("line").style("stroke", "#FF0000");