Search code examples
javascriptjquerycssangularjsdygraphs

Is there any way to increase gap between graph and range selector in dygraph?


enter image description here

Is there any method exists to increase the gap between graph and range selector in dygraph? x- axis label is strike out by the range selector.


Solution

  • You can do this without CSS hacking by setting the xAxisHeight option:

    new Dygraph(div, data, {
      showRangeSelector: true,
      xAxisHeight: 50
    });
    

    See full example.