visualizer icon indicating copy to clipboard operation
visualizer copied to clipboard

spectra displayer: 2 Y axis

Open stropitek opened this issue 10 years ago • 6 comments

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?

stropitek avatar Aug 18 '15 15:08 stropitek

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

Envoyé de mon iPhone

Le 18 août 2015 à 17:29, Daniel Kostro [email protected] 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.

thegodone avatar Aug 18 '15 15:08 thegodone

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.

targos avatar Aug 18 '15 15:08 targos

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 avatar Aug 19 '15 22:08 NPellet

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

NPellet avatar Aug 19 '15 22:08 NPellet

Thanks @NPellet ! Your example is what I need

stropitek avatar Aug 19 '15 23:08 stropitek

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é à [email protected]. 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 protected].&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.

thegodone avatar Jan 25 '16 09:01 thegodone