shutterstock / rickshaw

JavaScript toolkit for creating interactive real-time graphs
https://shutterstock.github.io/rickshaw
MIT License
6.53k stars 941 forks source link

RangeSlider.Preview doesn't resize SVG element based on graph size #578

Open pstanton opened 7 years ago

pstanton commented 7 years ago

while the micro-graph and frame do resize, the containing SVG element does not.

changing the in render code to the following resolves the issue:

        this.svg.enter()
            .append("svg")
            .classed("rickshaw_range_slider_preview", true)
            .style("position", "absolute")
            .style("top", 0);

        this.svg.style("height", this.config.height + "px")
            .style("width", this.config.width + "px");
pstanton commented 7 years ago

i created a patch, but i left a line in that is not correct https://github.com/pstanton/rickshaw/commit/d3d3febb441d2846da4268c8f4db7e688b6b4b7c how do i remove the line (last line in change which includes jquery code) ?