shutterstock/rickshaw — pull request #169 by bozdoz (2012-12-19 16:57:45+00:00)
Title: 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: '#222'
}]