forked from shutterstock/rickshaw
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Multi-chart slider and colors for individual bars
RangeSlider now works with multiple charts and a single slider, by using an array with the graph variables: var slider_three = new Rickshaw.Graph.RangeSlider({ element: document.querySelector('#slider-range'), graph: [graph_one, graph_two, graph_three] }); The bar chart renderer now looks for a proposed color for each individual bar, it will default to the chart-specific color if no color is declared: var data = [{ data: [{ x: -1893456000, y: 29389330}, { x: -1577923200, y: 33125803}, { x: -1262304000, y: 37857633, color:'#06f'}, { x: -946771200, y: 41665901, color:'#0cf'} ], color: 'shutterstock#222' }]
- Loading branch information
Showing
2 changed files
with
83 additions
and
31 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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