Skip to content

Instantly share code, notes, and snippets.

@dranney-sugarcrm
Last active February 6, 2017 22:05
Show Gist options
  • Save dranney-sugarcrm/5b44180c779509ec3c12797f165dd2a7 to your computer and use it in GitHub Desktop.
Save dranney-sugarcrm/5b44180c779509ec3c12797f165dd2a7 to your computer and use it in GitHub Desktop.
Make three calls to display three charts
({
...
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