My multiple line Line chart is not scaling correctly

« 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

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

Address of the actual graph :

Address of the code inserted on the website is right here

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:

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

Posted by Vaupell on 25th December 2015
Yes, you are absolutely right.

This is amazing ;)

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

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


Add a reply

« Back to message list