Highcharts Demo
author(s): Torstein Hønsi
by qoalu
HTML
<script src="https://code.highcharts.com/highcharts.js"></script>
<div id="container" style="height: 400px"></div>
CSS
.highcharts-tooltip {
opacity: 0.5;
/* animation: slide-top 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both; */
}
/* ----------------------------------------------
* Generated by Animista on 2018-12-20 20:1:44
* w: http://animista.net, t: @cssanimista
* ---------------------------------------------- */
/**
* ----------------------------------------
* animation slide-top
* ----------------------------------------
*/
@-webkit-keyframes slide-top {
0% {
-webkit-transform: translateY(0);
transform: translateY(0);
}
100% {
-webkit-transform: translateY(-10px);
transform: translateY(-10px);
}
}
@keyframes slide-top {
0% {
-webkit-transform: translateY(0);
transform: translateY(0);
}
100% {
-webkit-transform: translateY(-10px);
transform: translateY(-10px);
}
}
JavaScript
Highcharts.chart('container', {
tooltip: {
animation: false,
style: {
color: 'blue',
fontWeight: 'bold'
}
},
xAxis: {
categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
},
series: [{
data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]
}, {
data: [194.1, 95.6, 54.4, 29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4]
}]
});