Made state.disabled always set on charts that keep state

master-patched
Bob Monteverde 11 years ago
parent 859b97a9d3
commit a52eddf761

@ -1863,7 +1863,8 @@ nv.models.cumulativeLineChart = function() {
chart.update = function() { chart(selection) };
chart.container = this;
//set state.disabled
state.disabled = data.map(function(d) { return !!d.disabled });
var indexDrag = d3.behavior.drag()
.on('dragstart', dragStart)
@ -4007,6 +4008,9 @@ nv.models.lineChart = function() {
chart.update = function() { chart(selection) };
chart.container = this;
//set state.disabled
state.disabled = data.map(function(d) { return !!d.disabled });
//------------------------------------------------------------
// Display noData message if there's nothing to show.
@ -4369,6 +4373,9 @@ nv.models.linePlusBarChart = function() {
chart.update = function() { chart(selection) };
chart.container = this;
//set state.disabled
state.disabled = data.map(function(d) { return !!d.disabled });
//------------------------------------------------------------
// Display No Data message if there's nothing to show.
@ -5760,6 +5767,9 @@ nv.models.multiBarChart = function() {
chart.update = function() { selection.transition().call(chart) };
chart.container = this;
//set state.disabled
state.disabled = data.map(function(d) { return !!d.disabled });
//------------------------------------------------------------
// Display noData message if there's nothing to show.
@ -6624,6 +6634,9 @@ nv.models.multiBarHorizontalChart = function() {
chart.update = function() { selection.transition().call(chart) };
chart.container = this;
//set state.disabled
state.disabled = data.map(function(d) { return !!d.disabled });
//------------------------------------------------------------
// Display No Data message if there's nothing to show.
@ -8174,6 +8187,8 @@ nv.models.pieChart = function() {
chart.update = function() { chart(selection); };
chart.container = this;
//set state.disabled
state.disabled = data[0].map(function(d) { return !!d.disabled });
//------------------------------------------------------------
// Display No Data message if there's nothing to show.
@ -9131,6 +9146,9 @@ nv.models.scatterChart = function() {
chart.update = function() { chart(selection) };
chart.container = this;
//set state.disabled
state.disabled = data.map(function(d) { return !!d.disabled });
//------------------------------------------------------------
// Display noData message if there's nothing to show.
@ -9705,6 +9723,9 @@ nv.models.scatterPlusLineChart = function() {
chart.update = function() { chart(selection) };
chart.container = this;
//set state.disabled
state.disabled = data.map(function(d) { return !!d.disabled });
//------------------------------------------------------------
// Display noData message if there's nothing to show.
@ -11062,6 +11083,10 @@ nv.models.stackedAreaChart = function() {
chart.update = function() { chart(selection) };
chart.container = this;
//set state.disabled
state.disabled = data.map(function(d) { return !!d.disabled });
//------------------------------------------------------------
// Display No Data message if there's nothing to show.

10
nv.d3.min.js vendored

File diff suppressed because one or more lines are too long

@ -105,7 +105,8 @@ nv.models.cumulativeLineChart = function() {
chart.update = function() { chart(selection) };
chart.container = this;
//set state.disabled
state.disabled = data.map(function(d) { return !!d.disabled });
var indexDrag = d3.behavior.drag()
.on('dragstart', dragStart)

@ -84,6 +84,9 @@ nv.models.lineChart = function() {
chart.update = function() { chart(selection) };
chart.container = this;
//set state.disabled
state.disabled = data.map(function(d) { return !!d.disabled });
//------------------------------------------------------------
// Display noData message if there's nothing to show.

@ -87,6 +87,9 @@ nv.models.linePlusBarChart = function() {
chart.update = function() { chart(selection) };
chart.container = this;
//set state.disabled
state.disabled = data.map(function(d) { return !!d.disabled });
//------------------------------------------------------------
// Display No Data message if there's nothing to show.

@ -80,6 +80,9 @@ nv.models.multiBarChart = function() {
chart.update = function() { selection.transition().call(chart) };
chart.container = this;
//set state.disabled
state.disabled = data.map(function(d) { return !!d.disabled });
//------------------------------------------------------------
// Display noData message if there's nothing to show.

@ -79,6 +79,9 @@ nv.models.multiBarHorizontalChart = function() {
chart.update = function() { selection.transition().call(chart) };
chart.container = this;
//set state.disabled
state.disabled = data.map(function(d) { return !!d.disabled });
//------------------------------------------------------------
// Display No Data message if there's nothing to show.

@ -56,6 +56,8 @@ nv.models.pieChart = function() {
chart.update = function() { chart(selection); };
chart.container = this;
//set state.disabled
state.disabled = data[0].map(function(d) { return !!d.disabled });
//------------------------------------------------------------
// Display No Data message if there's nothing to show.

@ -106,6 +106,9 @@ nv.models.scatterChart = function() {
chart.update = function() { chart(selection) };
chart.container = this;
//set state.disabled
state.disabled = data.map(function(d) { return !!d.disabled });
//------------------------------------------------------------
// Display noData message if there's nothing to show.

@ -105,6 +105,9 @@ nv.models.scatterPlusLineChart = function() {
chart.update = function() { chart(selection) };
chart.container = this;
//set state.disabled
state.disabled = data.map(function(d) { return !!d.disabled });
//------------------------------------------------------------
// Display noData message if there's nothing to show.

@ -79,6 +79,10 @@ nv.models.stackedAreaChart = function() {
chart.update = function() { chart(selection) };
chart.container = this;
//set state.disabled
state.disabled = data.map(function(d) { return !!d.disabled });
//------------------------------------------------------------
// Display No Data message if there's nothing to show.

Loading…
Cancel
Save