initial commit
This commit is contained in:
@@ -0,0 +1,79 @@
|
||||
<!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">
|
||||
#container {
|
||||
max-width: 800px;
|
||||
height: 400px;
|
||||
margin: 1em auto;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<script src="../../code/highcharts.js"></script>
|
||||
<script src="../../code/modules/pareto.js"></script>
|
||||
<div id="container"></div>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
Highcharts.chart('container', {
|
||||
chart: {
|
||||
renderTo: 'container',
|
||||
type: 'column'
|
||||
},
|
||||
title: {
|
||||
text: 'Restaurants Complaints'
|
||||
},
|
||||
tooltip: {
|
||||
shared: true
|
||||
},
|
||||
xAxis: {
|
||||
categories: [
|
||||
'Overpriced',
|
||||
'Small portions',
|
||||
'Wait time',
|
||||
'Food is tasteless',
|
||||
'No atmosphere',
|
||||
'Not clean',
|
||||
'Too noisy',
|
||||
'Unfriendly staff'
|
||||
],
|
||||
crosshair: true
|
||||
},
|
||||
yAxis: [{
|
||||
title: {
|
||||
text: ''
|
||||
}
|
||||
}, {
|
||||
title: {
|
||||
text: ''
|
||||
},
|
||||
minPadding: 0,
|
||||
maxPadding: 0,
|
||||
max: 100,
|
||||
min: 0,
|
||||
opposite: true,
|
||||
labels: {
|
||||
format: "{value}%"
|
||||
}
|
||||
}],
|
||||
series: [{
|
||||
type: 'pareto',
|
||||
name: 'Pareto',
|
||||
yAxis: 1,
|
||||
zIndex: 10,
|
||||
baseSeries: 1
|
||||
}, {
|
||||
name: 'Complaints',
|
||||
type: 'column',
|
||||
zIndex: 2,
|
||||
data: [755, 222, 151, 86, 72, 51, 36, 10]
|
||||
}]
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user