--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/405964a6-3fea-43b0-ba80-63a4ca7cf475%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
• | Sergey Grabkovsky | |
• | Software Engineer | |
• | Google, Inc | |
• |
--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/6205ab73-01a8-4811-b562-e695741953f9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<script type="text/javascript">
google.load('visualization', '1.1', {packages: ['line']});
google.setOnLoadCallback(drawChart);
function drawChart() {
var data = new google.visualization.DataTable();
data.addColumn('string', 'Time');
if(<?php if(isset($cha1)) echo $cha1; else echo "0"; ?>==1) {data.addColumn('number', 'Zone 1');}
if(<?php if(isset($cha2)) echo $cha2; else echo "0"; ?>==1){ data.addColumn('number', 'Zone 2');}
if(<?php if(isset($cha3)) echo $cha3; else echo "0"; ?>==1) {data.addColumn('number', 'Zone 3');}
if(<?php if(isset($temp)) echo $temp; else echo "0"; ?>==1) {data.addColumn('number', 'Temp');}
data.addRows(<?php echo $chart_data ?>);
//alle WErte
if(<?php if(isset($axe)) echo $axe; else echo "0"; ?>==1){
var options = {
chart: {
title: 'Data'
},
height:600,
chartArea:{left:30,top:30,width:'100%',height:600},
series: {
// Gives each series an axis name that matches the Y-axis below.
0: {axis: 'ppm'},
1:{axis: 'ppm'},
2:{axis: 'ppm'},
3:{axis: 'C'},
},
axes: {
// Adds labels to each axis; they don't have to match the axis names.
y: {
ppm: {label: '<?php echo $unitaktuell ?>'},
C: {label: '°C'}
}
}
};} var chart = new google.charts.Line(document.getElementById('linechart_material'));
chart.draw(data, options);
}
// Make the charts responsive
jQuery(document).ready(function(){
jQuery(window).resize(function(){
drawChart();
});
});
</script>
--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/1a1177e8-8c15-4033-804b-2c17a63dcb05%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/602043a7-a0d4-4fa0-b098-c8920403c7ab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.