Open stropitek opened 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.
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.
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/
Let me know if you need anything more specific to your needs.
Thanks @NPellet ! Your example is what I need
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
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?