<?php
$this->Widget('ext.highcharts.HighchartsWidget', array(
'options'=>"{
chart: {
type: 'spline',
inverted: true,
width: 500,
style: {
margin: '0 auto'
}
},
title: {
text: 'ATITLE: tmosphere Temperature by Altitude'
},
subtitle: {
text: 'SUB TITLE'
},
xAxis: {
reversed: false,
title: {
enabled: true,
text: 'Altitude'
},
labels: {
formatter: function() {
return this.value +'km';
}
},
maxPadding: 0.05,
showLastLabel: true
},
yAxis: {
title: {
text: 'Temperature'
},
labels: {
formatter: function() {
return this.value + '';
}
},
lineWidth: 2
},
legend: {
enabled: false
},
tooltip: {
headerFormat: '<b>{series.name}</b><br/>',
pointFormat: '{point.x} km: {point.y}C'
},
plotOptions: {
spline: {
marker: {
enable: false
}
}
},
series: [{
name: 'Temperature',
data: [[0, 15], [10, -50], [20, -56.5], [30, -46.5], [40, -22.1],
[50, -2.5], [60, -27.7], [70, -55.7], [80, -76.5]]
}]
}"
));
?>
<?php
$this->Widget('ext.highcharts.HighchartsWidget', array(
'options'=>"{
colors: ['red','green'],
chart: {
type: 'spline',
inverted: true,
width: 600,
backgroundColor: {
linearGradient: { x1: 0, y1: 0, x2: 1, y2: 1 },
stops: [
[0, 'rgb(255, 255, 255)'],
[1, 'rgb(240, 240, 255)']
]
},
borderWidth: 2,
plotBackgroundColor: 'rgba(255, 255, 255, .9)',
plotShadow: true,
style: {
margin: '0 auto'
}
},
title: {
text: 'TITLE: Atmosphere Temperature by Altitude'
},
subtitle: {
text: 'SUB TITLE'
},
xAxis: {
minorTickInterval: 'auto',
gridLineWidth: 1,
lineColor: '#000',
tickColor: '#000',
reversed: false,
title: {
enabled: true,
text: 'Altitude'
},
labels: {
formatter: function() {
return this.value +'km';
}
},
maxPadding: 0.05,
showLastLabel: true
},
yAxis: {
title: {
text: 'Temperature'
},
labels: {
formatter: function() {
return this.value + '';
}
},
lineWidth: 2
},
legend: {
enabled: false
},
tooltip: {
headerFormat: '<b>{series.name}</b><br/>',
pointFormat: '{point.x} km: {point.y}C'
},
plotOptions: {
spline: {
marker: {
enable: false
}
}
},
series: [{
name: 'Temperature',
data: [[0, 15], [10, -50], [20, -56.5], [30, -46.5], [40, -22.1],
[50, -2.5], [60, -27.7], [70, -55.7], [80, -76.5]]
}]
}"
));
?>
<?php
$this->Widget('ext.highcharts.HighchartsWidget', array(
'options'=>"{
colors: ['yellow'],
chart: {
type: 'spline',
inverted: true,
width: 500,
backgroundColor: {
linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
stops: [
[0, 'rgb(96, 96, 96)'],
[1, 'rgb(16, 16, 16)']
],
},
style: {
margin: '0 auto'
}
},
title: {
text: 'TITLE: Atmosphere Temperature by Altitude'
},
subtitle: {
text: 'SUB TITLE'
},
xAxis: {
reversed: false,
title: {
enabled: true,
text: 'Altitude'
},
labels: {
formatter: function() {
return this.value +'km';
}
},
maxPadding: 0.05,
showLastLabel: true
},
yAxis: {
title: {
text: 'Temperature'
},
labels: {
formatter: function() {
return this.value + '';
}
},
lineWidth: 2
},
legend: {
enabled: false
},
tooltip: {
headerFormat: '<b>{series.name}</b><br/>',
pointFormat: '{point.x} km: {point.y}C'
},
plotOptions: {
spline: {
marker: {
enable: false
}
}
},
series: [{
name: 'Temperature',
data: [[0, 15], [10, -50], [20, -56.5], [30, -46.5], [40, -22.1],
[50, -2.5], [60, -27.7], [70, -55.7], [80, -76.5]]
}]
}"
));
?>