google Chart options not work with c=columnchart #22067
Unanswered
NikLuy
asked this question in
Support request
Replies: 2 comments
-
$gc(c eMonth elaMonth "wr" "Aktuell" "Letzter" "cnt0" "Tagesverbrauch") should be |
Beta Was this translation helpful? Give feedback.
0 replies
-
no issue |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
PROBLEM DESCRIPTION
A clear and concise description of what the problem is.
<script language="JavaScript">function drawChart(){var cssc={'headerRow':'hRow','rowNumberCell':'hCol','tableCell':'tCell'};var data=google.visualization.arrayToDataTable([['wr','Aktuell','Letzter'],['0',1651.00,1411.00],['1',2368.00,464.00],['2',978.00,1390.00],['3',2316.00,1398.00],['4',2139.00,974.00],['5',770.00,1304.00],['6',0.00,2158.00],['7',0.00,1221.00],['8',0.00,1042.00],['9',0.00,1487.00],['10',0.00,2062.00],['11',0.00,288.00],['12',0.00,1982.00],['13',0.00,1208.00],['14',0.00,761.00],['15',0.00,2309.00],['16',0.00,1441.00],['17',0.00,551.00],['18',0.00,443.00],['19',0.00,1231.00],['20',0.00,978.00],['21',0.00,987.00],['22',0.00,885.00],['23',0.00,1197.00],['24',0.00,1573.00],['25',0.00,1436.00],['26',0.00,2168.00],['27',0.00,959.00],['28',0.00,986.00],['29',0.00,731.00],['30',0.00,2287.00]]);var options={title:'Tagesverbrauch',isStacked:false};var chart=new google.visualization.ColumnChart(document.getElementById('chart1'));chart.draw(data,options);}google.charts.setOnLoadCallback(drawChart);</script>If i add an googlechart in the scripting language with $gc(lt eMonth elaMonth "wr" "Aktuell" "Letzter" "cnt0" "Tagesverbrauch")
everithing works fine, but if i change to c=columnchart $gc(c eMonth elaMonth "wr" "Aktuell" "Letzter" "cnt0" "Tagesverbrauch")
the options get not included to the script tag
var options = {chartArea:{left:60,width:440,right:30},'height':300,legend:'top',hAxis:{format:'# kWH'},backgroundColor: 'transparent',explorer:{actions:['dragToZoom', 'rightClickToReset']},series: {0: {type: 'area'}}, vAxis:{title:'Tag',ticks:[1,5,10,15,20,25,30]} , title:'Tagesverbräuche Monatsansicht'};var chart=new google.visualization.ColumnChart(document.getElementById('chart2'));chart.draw(data,options);}google.charts.setOnLoadCallback(drawChart);
$
$gc(c eMonth elaMonth "wr" "Aktuell" "Letzter" "cnt0" "Tagesverbrauch")
$var options = {
$chartArea:{left:60,width:440,right:30},
$'height':300,
$legend:'top',
$hAxis:{format:'# kWH'},
$backgroundColor: 'transparent',
$explorer:{actions:['dragToZoom', 'rightClickToReset']},
$series: {0: {type: 'area'}},
$vAxis:{title:'Tag',ticks:[1,5,10,15,20,25,30]} ,
$title:'Tagesverbräuche Monatsansicht'
$};
$gc(e)
REQUESTED INFORMATION
Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!
Backlog Template; Module; GPIO 255
:Backlog Rule1; Rule2; Rule3
:Status 0
:weblog
to 4 and then, when you experience your issue, provide the output of the Console log:TO REPRODUCE
Steps to reproduce the behavior:
add googlecart to >w section of tasmotascript
with two arrays M:p:eMonth=0 31, M:p:elaMonth=0 31
$
$gc(c eMonth elaMonth "wr" "Aktuell" "Letzter" "cnt0" "Tagesverbrauch")
$var options = {
$chartArea:{left:60,width:440,right:30},
$'height':300,
$legend:'top',
$hAxis:{format:'# kWH'},
$backgroundColor: 'transparent',
$explorer:{actions:['dragToZoom', 'rightClickToReset']},
$series: {0: {type: 'area'}},
$vAxis:{title:'Tag',ticks:[1,5,10,15,20,25,30]} ,
$title:'Tagesverbräuche Monatsansicht'
$};
$gc(e)
EXPECTED BEHAVIOUR
A clear and concise description of what you expected to happen.
gc(e) should be in the same chart and not as a separate
SCREENSHOTS
If applicable, add screenshots to help explain your problem.
ADDITIONAL CONTEXT
Add any other context about the problem here.
(Please, remember to close the issue when the problem has been addressed)
Beta Was this translation helpful? Give feedback.
All reactions