JSFiddle - React, Tailwind, and code Playground
by xmlilley
HTML
<script src="http://code.highcharts.com/highcharts.js"></script>
<div id="daily_chart">
</div>
<div id="hourly_chart">
</div>
JavaScript
$(function () {
//create the chart variable
var dailyChart, hourlyChart;
//setup the theme that will be applied to all charts
Highcharts.theme = {
chart: {
type: 'line',
marginRight: 5,
marginBottom: 5,
backgroundColor: null,
width: 500,
style: {
left: '-10px',
top: "5px",
height: '280px'
}
},
title: {
text: null
},
credits: {
enabled: false
},
xAxis: {
labels: {
enabled: true,
step: 1,
style: {
color: '#000',
fontWeight: 'normal'
}
},
tickLength: 8,
tickmarkPlacement: "on",
tickPosition: "inside"
},
yAxis: {
plotLines: [{
value: 0,
width: 1,
color: '#808080'
}],
labels: {
enabled: true
},
title: {
text: null
},
minPadding: 0.01
},
legend: {
layout: 'vertical',
align: 'left',
verticalAlign: 'top',
borderWidth: 0,
floating: true,
y: 0,
x: 20,
style: {
fontFamily: '"Helvetica Neue", Helvetica, Arial, sans-serif',
fontSize: "10px",
color: "#7F7F7F",
fontWeight: "bold"
}
},
plotOptions: {
line: {
marker: {
enabled: true,
states: {
hover: {
enabled: true
}
}
}
}
}
}
//apply the theme
var...