NPellet / visualizer

Other
42 stars 24 forks source link

spectra displayer: 2 Y axis #676

Open stropitek opened 9 years ago

stropitek commented 9 years ago

For the solar decathlon project, I would like to be able to display two series that have different units and scale on the same graph. I would thus need a left Y axis and a right Y axis. From what I see it does not seem possible. Does it exist in jsgraph and would it be easy / possible to implement it for the spectra displayer?

thegodone commented 9 years ago

It's possible on x i don't Know for y

Envoyé de mon iPhone

Le 18 août 2015 à 17:29, Daniel Kostro notifications@github.com a écrit :

For the solar decathlon project, I would like to be able to display two series that have different units and scale on the same graph. I would thus need a left Y axis and a right Y axis. From what I see it does not seem possible. Does it exist in jsgraph and would it be easy / possible to implement it for the spectra displayer?

— Reply to this email directly or view it on GitHub.

targos commented 9 years ago

My first guess is that we need to develop the general jsgraph module to support this (see https://github.com/NPellet/visualizer/issues/358), it would add to much complexity to the spectra displayer.

NPellet commented 9 years ago

Exists in jsGraph.

If axis2 depends directly on axis1 and has no serie associated to it, then you need to use the slaveAxis option (http://jsgraph.org/examples/axis/slaveaxis.js/). You can feed any function to convert axis1 -> slaveAxis

If your axis should have a serie associate to it, then sure: http://jsgraph.org/examples/axis/2axis.js/

NPellet commented 9 years ago

Let me know if you need anything more specific to your needs.

stropitek commented 9 years ago

Thanks @NPellet ! Your example is what I need

thegodone commented 8 years ago

Bonjour NPellet/visualizer, guillaume godin vous a laissé un message sur IQ Elite Cliquez ici a.iqelite.com/j/2vBDJ3/uem/?hg=p56Oz74nV8 pour lire votre message

L'équipe d'IQ Elite


Ce message est destiné à reply@reply.github.com. Si vous ne souhaitez pas recevoir d'autres messages de la part de IQ Elite, veuillez cliquer sur ce lien : a.iqelite.com/common/unsubscribe/?code=bb38480d&email=reply@reply.github.com.&hg=p56Oz74nV8

IQ Elite est un service de IQ Elite S.L., dont le siège se trouve à : C/ Gran De Gràcia 15, 1a 1a, 08012 Barcelone, Espagne.