71 lines
1.5 KiB
HTML
71 lines
1.5 KiB
HTML
<!DOCTYPE HTML>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>Highcharts Example</title>
|
|
|
|
<style type="text/css">
|
|
@import 'https://code.highcharts.com/css/highcharts.css';
|
|
|
|
#container {
|
|
height: 400px;
|
|
max-width: 800px;
|
|
min-width: 320px;
|
|
margin: 0 auto;
|
|
}
|
|
.highcharts-pie-series .highcharts-point {
|
|
stroke: #EDE;
|
|
stroke-width: 2px;
|
|
}
|
|
.highcharts-pie-series .highcharts-data-label-connector {
|
|
stroke: silver;
|
|
stroke-dasharray: 2, 2;
|
|
stroke-width: 2px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<script src="../../code/highcharts.js"></script>
|
|
<script src="../../code/modules/exporting.js"></script>
|
|
|
|
<div id="container"></div>
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
Highcharts.chart('container', {
|
|
|
|
chart: {
|
|
styledMode: true
|
|
},
|
|
|
|
title: {
|
|
text: 'Pie point CSS'
|
|
},
|
|
|
|
xAxis: {
|
|
categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
|
|
},
|
|
|
|
series: [{
|
|
type: 'pie',
|
|
allowPointSelect: true,
|
|
keys: ['name', 'y', 'selected', 'sliced'],
|
|
data: [
|
|
['Apples', 29.9, false],
|
|
['Pears', 71.5, false],
|
|
['Oranges', 106.4, false],
|
|
['Plums', 129.2, false],
|
|
['Bananas', 144.0, false],
|
|
['Peaches', 176.0, false],
|
|
['Prunes', 135.6, true, true],
|
|
['Avocados', 148.5, false]
|
|
],
|
|
showInLegend: true
|
|
}]
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|