Last active
February 6, 2017 22:05
-
-
Save dranney-sugarcrm/5b44180c779509ec3c12797f165dd2a7 to your computer and use it in GitHub Desktop.
Make three calls to display three charts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
({ | |
... | |
renderChart: function () { | |
if (!this.isChartReady()) { | |
return; | |
} | |
d3.select(this.el).select('#example-chart1 svg') | |
.datum(this.bluered) | |
.transition().duration(500) | |
.call(this.chart); | |
d3.select(this.el).select('#example-chart2 svg') | |
.datum(this.purpleteal) | |
.transition().duration(500) | |
.call(this.chart); | |
d3.select(this.el).select('#example-chart3 svg') | |
.datum(this.yellowgray) | |
.transition().duration(500) | |
.call(this.chart); | |
this.chart_loaded = _.isFunction(this.chart.update); | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment