$(document).ready(function () { chart = new Highcharts.StockChart({ chart: { renderTo: 'chart', type: 'line', animation: false, showAxes: true, height: 500 }, xAxis: { ordinal: false, type: 'datetime', showEmpty: true, gridLineWidth: 1, gridLineDashStyle: 'dot', ordinal: false }, yAxis: { title: {text: 'Курс SEK, грн'}, lineWidth: 3, gridLineWidth: 1, gridLineDashStyle: 'dash', ordinal: false }, plotOptions: { series: {connectNulls: true, shadow: false}, spline: {marker: {enabled: true}} }, tooltip: {valueDecimals: 8, xDateFormat: '%d %b %Y', shared: true}, series: [ { name: 'Курс SEK', data: [[1472688000000,3.05107],[1472774400000,3.10672],[1472860800000,3.10572],[1472947200000,3.10572],[1473033600000,3.10572],[1473120000000,3.1299],[1473206400000,3.1418],[1473292800000,3.15897],[1473379200000,3.16921],[1473465600000,3.16326],[1473552000000,3.16326],[1473638400000,3.16326],[1473724800000,3.12758],[1473811200000,3.11609],[1473897600000,3.09797],[1473984000000,3.08828],[1474070400000,3.04243],[1474156800000,3.04243],[1474243200000,3.04243],[1474329600000,3.00653],[1474416000000,3.01378],[1474502400000,3.02636],[1474588800000,3.03988],[1474675200000,3.04173],[1474761600000,3.04173],[1474848000000,3.04173],[1474934400000,3.0362],[1475020800000,3.01214],[1475107200000,3.02282],[1475193600000,3.02186]], tooltip: {valueSuffix: ' грн'}, type: 'area', step: true, color: '#888888', fillColor: { linearGradient: {x1: 0, y1: 0, x2: 0, y2: 1}, stops: [[0, '#CCCCCC'], [1, 'rgba(50,50,50,0)']] }, threshold: null }, { name: 'Среднее за период', data: [[1472688000000, 3.051067],[1472688000000, 3.051067],[1472774400000, 3.106725],[1472860800000, 3.105724],[1472947200000, 3.105724],[1473033600000, 3.105724],[1473120000000, 3.129897],[1473206400000, 3.141799],[1473292800000, 3.158969],[1473379200000, 3.169210],[1473465600000, 3.163256],[1473552000000, 3.163256],[1473638400000, 3.163256],[1473724800000, 3.127584],[1473811200000, 3.116094],[1473897600000, 3.097969],[1473984000000, 3.088276],[1474070400000, 3.042435],[1474156800000, 3.042435],[1474243200000, 3.042435],[1474329600000, 3.006532],[1474416000000, 3.013784],[1474502400000, 3.026364],[1474588800000, 3.039880],[1474675200000, 3.041733],[1474761600000, 3.041733],[1474848000000, 3.041733],[1474934400000, 3.036200],[1475020800000, 3.012137],[1475107200000, 3.022823],[1475193600000, 3.021859]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });