$(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: [[1488326400000,3.00866],[1488412800000,3.00514],[1488499200000,2.99215],[1488585600000,3.00409],[1488672000000,3.00409],[1488758400000,3.00409],[1488844800000,3.00215],[1488931200000,2.99443],[1489017600000,2.99443],[1489104000000,2.97213],[1489190400000,2.96883],[1489276800000,2.96883],[1489363200000,2.96883],[1489449600000,2.99835],[1489536000000,3.01175],[1489622400000,2.9866],[1489708800000,3.05127],[1489795200000,3.05385],[1489881600000,3.05385],[1489968000000,3.05385],[1490054400000,3.04064],[1490140800000,3.05558],[1490227200000,3.05897],[1490313600000,3.06898],[1490400000000,3.073],[1490486400000,3.073],[1490572800000,3.073],[1490659200000,3.09598],[1490745600000,3.08969],[1490832000000,3.04306],[1490918400000,3.029]], 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: [[1488326400000, 3.008663],[1488326400000, 3.008663],[1488412800000, 3.005140],[1488499200000, 2.992154],[1488585600000, 3.004088],[1488672000000, 3.004088],[1488758400000, 3.004088],[1488844800000, 3.002148],[1488931200000, 2.994427],[1489017600000, 2.994427],[1489104000000, 2.972133],[1489190400000, 2.968829],[1489276800000, 2.968829],[1489363200000, 2.968829],[1489449600000, 2.998346],[1489536000000, 3.011747],[1489622400000, 2.986596],[1489708800000, 3.051274],[1489795200000, 3.053850],[1489881600000, 3.053850],[1489968000000, 3.053850],[1490054400000, 3.040644],[1490140800000, 3.055583],[1490227200000, 3.058971],[1490313600000, 3.068976],[1490400000000, 3.072996],[1490486400000, 3.072996],[1490572800000, 3.072996],[1490659200000, 3.095976],[1490745600000, 3.089692],[1490832000000, 3.043056],[1490918400000, 3.028999]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });