google charts vAxis max Value

32 views
Skip to first unread message

Atru via

unread,
Jan 22, 2024, 4:21:47 PMJan 22
to Google Chart API
Hi,
i use google chart in "Tasmota Software":

I would like to assign a maximum value to the Y-axis (vertical). Unfortunately it doesn't do that; as soon as a larger value comes, the axis increases.  What am I doing wrong?


; 4h power chart - new value every 30s
$<div id="chart1" style="text-align:center;width:400px"></div>
$gc(lt s4h "wr" "Leistung [W]" cstr2)
$var options = {
$chartArea:{left:60,width:'83%%'},
$legend:'none',
$vAxis:{format:'# W',minValue:0,maxValue:300},
$explorer:{actions:['dragToZoom', 'rightClickToReset']},
$series: {0: {type: 'area'}},              
$title:'Verbrauch 4 Stunden [Watt]'
$};
$gc(e)
Reply all
Reply to author
Forward
0 new messages