Page 1 of 1

Graphing problem

Posted: Sun Feb 12, 2012 6:57 am
by oliverb
I am having problems getting a graph to work. I want to show Gas use from my gas meter sensor and outdoor temperature.
I use the following definition.

timeframe=365D #last 365 days
res=DAY1 #SHOWS WHOLE DAY DATA
zoom=1M # select actual day

gtitle=Gas_Use_Daily # name of graph
gheight=600 # height in pixels of graph
gwidth=900 # width in pixels of graph
glunit=kWh # unit of left y-axis
grunit=°C # unit of right y-axis
gtype=line # type of graph
gtrim=0

sid0=data2 sname0=Total ssel0=suminc sfill0=20 sfactor0=0.00121 scolor0=FF0000
sid1=th0 sname1=Temp°C ssel1=temp scolor1=0000FF # sensor 0, temperature

I can't get the units to show on the right of the y axis and also the temperature is showing as kWh not °C on the top of the graph.

I have tried setting grunit on other graphs with no problem at all.

Re: Graphing problem

Posted: Sun Feb 12, 2012 6:38 pm
by admin
There is a statement missing for sensor #1, that it should plot against right y-axis. Please add: "syaxis1=r"

Re: Graphing problem

Posted: Sun Feb 12, 2012 8:19 pm
by oliverb
Thanks for that.

Re: Graphing problem

Posted: Wed Mar 14, 2012 11:29 am
by Anne
I was also having the same issue. It's good that I read about this topic here & was able to resolved it, awesome!