UNPKG

dimple-js

Version:

Dimple is an object-oriented API allowing you to create flexible axis-based charts using [d3.js](http://d3js.org "d3.js").

15 lines (14 loc) 759 B
// Copyright: 2015 AlignAlytics // License: "https://github.com/PMSI-AlignAlytics/dimple/blob/master/MIT-LICENSE.txt" // Source: /src/objects/chart/methods/setStoryboard.js // Help: http://github.com/PMSI-AlignAlytics/dimple/wiki/dimple.chart#wiki-setStoryboard this.setStoryboard = function (categoryFields, tickHandler) { // Create and assign the storyboard this.storyboard = new dimple.storyboard(this, categoryFields); // Set the event handler if (tickHandler !== null && tickHandler !== undefined) { this.storyboard.onTick = tickHandler; } // Return the storyboard return this.storyboard; };