|
|
@ -90,6 +90,9 @@ window.nv.tooltip.* also has various helper methods.
|
|
|
|
function convertViewBoxRatio() {
|
|
|
|
function convertViewBoxRatio() {
|
|
|
|
if (chartContainer) {
|
|
|
|
if (chartContainer) {
|
|
|
|
var svg = d3.select(chartContainer);
|
|
|
|
var svg = d3.select(chartContainer);
|
|
|
|
|
|
|
|
if (svg.node().tagName !== "svg") {
|
|
|
|
|
|
|
|
svg = svg.select("svg");
|
|
|
|
|
|
|
|
}
|
|
|
|
var viewBox = (svg.node()) ? svg.attr('viewBox') : null;
|
|
|
|
var viewBox = (svg.node()) ? svg.attr('viewBox') : null;
|
|
|
|
if (viewBox) {
|
|
|
|
if (viewBox) {
|
|
|
|
viewBox = viewBox.split(' ');
|
|
|
|
viewBox = viewBox.split(' ');
|
|
|
|