You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
91 lines
1.8 KiB
HTML
91 lines
1.8 KiB
HTML
2 months ago
|
<!DOCTYPE HTML>
|
||
|
<html>
|
||
|
<head>
|
||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||
|
<title>Highcharts Example</title>
|
||
|
|
||
|
<script type="text/javascript" src="https://cdn.hcharts.cn/jquery/jquery-1.8.3.min.js"></script>
|
||
|
<style type="text/css">
|
||
|
${demo.css}
|
||
|
</style>
|
||
|
</head>
|
||
|
<body>
|
||
|
<script src="https://cdn.hcharts.cn/highcharts/5.0.9/highcharts.js"></script>
|
||
|
<script src="https://cdn.hcharts.cn/highcharts/5.0.9/highcharts-more.js"></script>
|
||
|
<script src="https://cdn.hcharts.cn/highcharts/5.0.9/modules/exporting.js"></script>
|
||
|
|
||
|
<div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>
|
||
|
|
||
|
|
||
|
|
||
|
<script type="text/javascript">
|
||
|
|
||
|
|
||
|
Highcharts.chart('container', {
|
||
|
|
||
|
chart: {
|
||
|
type: 'columnrange',
|
||
|
inverted: true
|
||
|
},
|
||
|
|
||
|
title: {
|
||
|
text: 'Temperature variation by month'
|
||
|
},
|
||
|
|
||
|
subtitle: {
|
||
|
text: 'Observed in Vik i Sogn, Norway'
|
||
|
},
|
||
|
|
||
|
xAxis: {
|
||
|
categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
|
||
|
},
|
||
|
|
||
|
yAxis: {
|
||
|
title: {
|
||
|
text: 'Temperature ( °C )'
|
||
|
}
|
||
|
},
|
||
|
|
||
|
tooltip: {
|
||
|
valueSuffix: '°C'
|
||
|
},
|
||
|
|
||
|
plotOptions: {
|
||
|
columnrange: {
|
||
|
dataLabels: {
|
||
|
enabled: true,
|
||
|
formatter: function () {
|
||
|
return this.y + '°C';
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
|
||
|
legend: {
|
||
|
enabled: false
|
||
|
},
|
||
|
|
||
|
series: [{
|
||
|
name: 'Temperatures',
|
||
|
data: [
|
||
|
[-9.7, 9.4],
|
||
|
[-8.7, 6.5],
|
||
|
[-3.5, 9.4],
|
||
|
[-1.4, 19.9],
|
||
|
[0.0, 22.6],
|
||
|
[2.9, 29.5],
|
||
|
[9.2, 30.7],
|
||
|
[7.3, 26.5],
|
||
|
[4.4, 18.0],
|
||
|
[-3.1, 11.4],
|
||
|
[-5.2, 10.4],
|
||
|
[-13.5, 9.8]
|
||
|
]
|
||
|
}]
|
||
|
|
||
|
});
|
||
|
|
||
|
</script>
|
||
|
</body>
|
||
|
</html>
|