HumbleSoftware/envisionjs

Multichart

svieujot opened this issue · 5 comments

I am trying to create a chart similar to the financial one ( http://www.humblesoftware.com/envision/demos/finance ), with several lines ( like this : http://www.humblesoftware.com/flotr2/index#!basic ) in the top chart.

The Flotr adapter seems to be hard wired to take only one serie of data.
Is there a way to do this easily ?

I am trying to do a custom adapter derived from the Flotr adapter, but it is a hard learning curve.

Any advice ?

Here's an example with multiple lines:
http://jsfiddle.net/cesutherland/LurmY/49/ WIth this one again, you may
want to skipPreprocess, if the x-values for the two series are not the same.

We'll want to be able to downsample with large series that don't share an
x-axis but right now this isn't tested.

-c

On Tue, Aug 21, 2012 at 11:58 AM, Sylvain Vieujot
notifications@github.comwrote:

I am trying to create a chart similar to the financial one (
http://www.humblesoftware.com/envision/demos/finance ), with several
lines ( like this : http://www.humblesoftware.com/flotr2/index#!basic )
in the top chart.

The Flotr adapter seems to be hard wired to take only one serie of data.
Is there a way to do this easily ?

I am trying to do a custom adapter derived from the Flotr adapter, but it
is a hard learning curve.

Any advice ?


Reply to this email directly or view it on GitHubhttps://github.com//issues/15.

So far my series share rhe same x values.
My problem is that they have different styles : one is candles, the other is a line.
I did not find a way to pass this to the Flotr adapter.
Is there a way to do this ?
For example in your multiline, example, how could you use bars for the green line ?

Thank you.

Here you are:

http://jsfiddle.net/LurmY/75/

Each series is configurable also as an object with a data attribute.

On Tue, Aug 21, 2012 at 3:16 PM, Sylvain Vieujot
notifications@github.comwrote:

So far my series share rhe same x values.
My problem is that they have different styles : one is candles, the other
is a line.
I did not find a way to pass this to the Flotr adapter.
Is there a way to do this ?
For example in your multiline, example, how could you use bars for the
green line ?

Thank you.


Reply to this email directly or view it on GitHubhttps://github.com//issues/15#issuecomment-7912616.

Great !

Thank you very much for your help.

A few more things on the multigraph :

I am trying to use the right most y axis (y2axis) for the labels, but it does not seem to work.

I am also trying to display the labels.
It works fine for the "sub-series", but not for the first one.

Any clue on this ?

Thank you !