initial commit
This commit is contained in:
@@ -0,0 +1,95 @@
|
||||
<!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;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
/* Link the series colors to axis colors */
|
||||
.highcharts-color-0 {
|
||||
fill: #7cb5ec;
|
||||
stroke: #7cb5ec;
|
||||
}
|
||||
.highcharts-axis.highcharts-color-0 .highcharts-axis-line {
|
||||
stroke: #7cb5ec;
|
||||
}
|
||||
.highcharts-axis.highcharts-color-0 text {
|
||||
fill: #7cb5ec;
|
||||
}
|
||||
.highcharts-color-1 {
|
||||
fill: #90ed7d;
|
||||
stroke: #90ed7d;
|
||||
}
|
||||
.highcharts-axis.highcharts-color-1 .highcharts-axis-line {
|
||||
stroke: #90ed7d;
|
||||
}
|
||||
.highcharts-axis.highcharts-color-1 text {
|
||||
fill: #90ed7d;
|
||||
}
|
||||
|
||||
|
||||
.highcharts-yaxis .highcharts-axis-line {
|
||||
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: {
|
||||
type: 'column',
|
||||
styledMode: true
|
||||
},
|
||||
|
||||
title: {
|
||||
text: 'Styling axes and columns'
|
||||
},
|
||||
|
||||
yAxis: [{
|
||||
className: 'highcharts-color-0',
|
||||
title: {
|
||||
text: 'Primary axis'
|
||||
}
|
||||
}, {
|
||||
className: 'highcharts-color-1',
|
||||
opposite: true,
|
||||
title: {
|
||||
text: 'Secondary axis'
|
||||
}
|
||||
}],
|
||||
|
||||
plotOptions: {
|
||||
column: {
|
||||
borderRadius: 5
|
||||
}
|
||||
},
|
||||
|
||||
series: [{
|
||||
data: [1, 3, 2, 4]
|
||||
}, {
|
||||
data: [324, 124, 547, 221],
|
||||
yAxis: 1
|
||||
}]
|
||||
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user