Stream area in multi renderer #392

Open
ShimiSun opened this Issue Feb 12, 2014 · 0 comments

Projects

None yet

1 participant

@ShimiSun

Hi,

I'm tring to render a stream area (which is an area with specific bottom border, and not the x-axis as a border) with a multi renderer .
Is it possible to use stream of area in a multi renderer?

for example, with this code I can render a stream of area with bottom border that isn't the X - axis (http://jsfiddle.net/xDZZJ/):
var data = [
{
data: [ {"x":1363950000,"y":0},{"x":1364238745,"y":1},...]
}, {
data: [ {"x":1363950000,"y":0},{"x":1364238745,"y":0},{"x":1364527491,"y":0},... ]
}
];

var graph = new Rickshaw.Graph( {
element: document.getElementById("chart"),
renderer: 'area',
offset: 'wiggle',
height: 100,
width: 500,
series: data
} );

graph.render();

But when I try to use a multi renderer, it is failing:

var graph = new Rickshaw.Graph( {
element: document.getElementById("chart"),
renderer: 'multi',
height: 100,
width: 500,

series: [
    {
        renderer: 'area',
        offset: 'wiggle',
        data: data
    } 
         ]

} );

graph.render();

Any advices or workarounds?

Thanks!!
Shimi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment