Martin-Gleiss / smartvisu

smartVISU is a framework to create a visualisation for a knx-installation with simple html-pages. To read and write group-telegramms special tags are used.
http://www.smartvisu.de
GNU General Public License v3.0
101 stars 103 forks source link

plot.period : multiple y-axis zero-line #165

Closed lgb-this closed 7 years ago

lgb-this commented 7 years ago

Current delevop of Smartvisu with SmarthomeNG (dev) on a raspberry Pi3.

{{ plot.period('',['Energie.NetzLieferung.Aktuell','Energie.Verbraucher.Geschirr'],'max','6h','',[0,'False'],[10000,'True'],'',['Einspeisen','Geschirr'],['#FF0000','#0000FF'],['spline','stair'],['','Watt','Status'],'1h',[1,2],[0,1],['#FF0000','#0000FF'],['linear','boolean']) }}

grafik

How can i adjust the 2 y-axis on the same zero-line ?

smaiLee commented 7 years ago

There is no zero line on boolean axes. Boolean axes have the high state (true) in the middle of top half and the low state (false) in the middle of bottom half. If you want the low state on bottom line use a numerical axis. But then you hardly see the line. That's the reason why I introduced the boolean axis type.

lgb-this commented 7 years ago

Thanks for the additional information. Case closed for me.