Changed core.js so that nv.utils checks for existing utils object.

master v1.1.12-beta
Robin Hu 11 years ago
parent ebd429e1e2
commit f1a1b34e11

@ -9,7 +9,7 @@ nv.dev = true //set false when in production
window.nv = nv;
nv.tooltip = {}; // For the tooltip system
nv.utils = {}; // Utility subsystem
nv.utils = nv.utils || {}; // Utility subsystem
nv.models = {}; //stores all the possible models/components
nv.charts = {}; //stores all the ready to use charts
nv.graphs = []; //stores all the graphs currently on the page
@ -476,12 +476,16 @@ window.nv.tooltip.* also has various helper methods.
.classed("value",true)
.html(function(p,i) { return valueFormatter(p.value,i) });
trowEnter.selectAll("td").each(function(p) {
if (p.highlight)
if (p.highlight) {
var opacityScale = d3.scale.linear().domain([0,1]).range(["#fff",p.color]);
var opacity = 0.6;
d3.select(this)
.style("border-bottom-color", p.color)
.style("border-top-color", p.color)
.style("border-bottom-color", opacityScale(opacity))
.style("border-top-color", opacityScale(opacity))
;
}
});
var html = table.node().outerHTML;

12
nv.d3.min.js vendored

File diff suppressed because one or more lines are too long

@ -8,7 +8,7 @@ nv.dev = true //set false when in production
window.nv = nv;
nv.tooltip = {}; // For the tooltip system
nv.utils = {}; // Utility subsystem
nv.utils = nv.utils || {}; // Utility subsystem
nv.models = {}; //stores all the possible models/components
nv.charts = {}; //stores all the ready to use charts
nv.graphs = []; //stores all the graphs currently on the page

Loading…
Cancel
Save