Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi-chart slider and colors for individual bars #169

Closed
wants to merge 1 commit into from
Closed

Multi-chart slider and colors for individual bars #169

wants to merge 1 commit into from

Commits on Dec 19, 2012

  1. 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'
      }]
    bozdoz committed Dec 19, 2012
    Configuration menu
    Copy the full SHA
    d0a692d View commit details
    Browse the repository at this point in the history