Skip to content

last object in data array is not rendered #39

Closed
jnav opened this Issue Apr 19, 2012 · 3 comments

4 participants

@jnav
jnav commented Apr 19, 2012

Hi, I am using Scatterplot example which works well. It shows 5 values correctly. The problem begin when i change the renderer to 'bar' - then i can see only 4 values - it doesn't render last object in the data array

URL: http://code.shutterstock.com/rickshaw/guide/scatterplot-1.html

original:

var graph = new Rickshaw.Graph( {
    element: document.querySelector("#chart"),
    width: 235,
    height: 85,
    renderer: 'scatterplot',
    stroke: true,
    series: [ {
        data: [ { x: 0, y: 40 }, { x: 1, y: 49 }, { x: 2, y: 38 }, { x: 3, y: 30 }, { x: 4, y: 32 } ],
        color: 'steelblue'
    } ]
} );
graph.render();

modified code which shoud display 5 bars, but only 4 are visible

var graph = new Rickshaw.Graph( {
    element: document.querySelector("#chart"),
    width: 235,
    height: 85,
    renderer: 'bar',
    stroke: true,
    series: [ {
        data: [ { x: 0, y: 40 }, { x: 1, y: 49 }, { x: 2, y: 38 }, { x: 3, y: 30 }, { x: 4, y: 32 } ],
        color: 'steelblue'
    } ]
} );
graph.render();
@radekstepan

This can be seen on the project's own Examples page http://code.shutterstock.com/rickshaw/

@dchester

This is fixed with b3444ac.

@dchester dchester closed this Apr 28, 2012
@manpreetssethi

This apparently has not been fixed, I'm facing the issue even with the latest copy of Rickshaw. Could you please look into it again? Thanks.
For reference, check here: http://hope.dev-digined.com/labs/rickshaw-master/examples/multi.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.