Multiple lines not scaling correctly

Share RGraph:   To help my Google visibility (it can't get much worse!), if you like and use RGraph I'd appreciate it if you could link to me

« Back to message list

Enter your email address to get email updates on this topic. You can stop receiving updates by clicking the link in the update email messages.

Posted by Vaupell on 25th December 2015
I'm doing a DIY project, where i log various kinds of data with a Arduino to a online sql data base.

And are trying out different ways to illustrate the data
rather than just using tables.

I tried using the example "curvy line" with SQL data.
but it's not scaling correctly vertical.

See the screenshot imgur.com/5LPU6rX

that blue line in the top also has a green one under it.
the blurry text below is just date labels, just ignore those.

link to the actual graph : tech.mv-teknik.dk/ESP/sensorBar.php

Link to the code inserted on the website is right here
pastebin.com/LstT84KD

plus these are placed in the head
     <script src="libraries/RGraph.common.core.js"></script>
     <script src="libraries/RGraph.common.dynamic.js"></script>
     <script src="libraries/RGraph.common.tooltips.js"></script>
     <script src="libraries/RGraph.common.effects.js"></script>
     <script src="libraries/RGraph.line.js"></script>


So I'm wondering it's it even possible to show 3 very different lines, like im attempting to ?
Posted by Richard on 25th December 2015
Hi there,

I think something like this would work for you:

www.rgraph.net/demos/line-multiple-y-axes.html

It's a fair amount of code but it does allow you to see all of the lines on the same chart.





Richard
If RGraph has helped you - please share the website and give your feedback - thanks:

www.rgraph.net/testimonials
Posted by Vaupell on 25th December 2015
Yes, you are absolutely right.

This is amazing ;)

tech.mv-teknik.dk/ESP/sensorBar.php


Thank you for your quick reply.
Posted by Richard on 26th December 2015
Hi,

Looks like you could do with specifying the scaleDecimals option on your blue axis. Set it to 1 or 2 initially.




Richard

Add a reply




« Back to message list