c3 icon indicating copy to clipboard operation
c3 copied to clipboard

show hide default grids in Js

Open samskrithib opened this issue 9 years ago • 4 comments

Hi,

Is there a way to show default gridlines onload. I dont have any custom gridlines. I want to show default grids that appear with code below onload the chart. grid :{ y: { show : true, } }

Many thanks in advance.

samskrithib avatar Apr 04 '17 09:04 samskrithib

refer this set datapoints for which you want to show grid lines

venkatasandeepd avatar Apr 05 '17 07:04 venkatasandeepd

Thanks for your response but that does not work for me. I have to load different charts on every click and should provide an button to show hide grid lines. I solved it using d3 to show: d3.selectAll('.c3-grid line') .style('visibility', 'visible')

to hide d3.selectAll('.c3-grid line') .style('visibility', 'hidden')

But it would be better If i have that option in c3

samskrithib avatar Apr 05 '17 12:04 samskrithib

can you post the fiddle here, i'll try that

venkatasandeepd avatar Apr 05 '17 12:04 venkatasandeepd

no response from submitter

panthony avatar Jul 16 '18 10:07 panthony