shutterstock / rickshaw

JavaScript toolkit for creating interactive real-time graphs

Home Page:https://shutterstock.github.io/rickshaw

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

pstanton opened this issue · comments

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");

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) ?