$(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: [[1427846400000,2.71594],[1427932800000,2.72904],[1428019200000,2.72468],[1428105600000,2.70096],[1428192000000,2.70096],[1428278400000,2.70096],[1428364800000,2.7175],[1428451200000,2.71997],[1428537600000,2.72845],[1428624000000,2.70274],[1428710400000,2.59145],[1428796800000,2.59145],[1428883200000,2.59145],[1428969600000,2.59145],[1429056000000,2.59769],[1429142400000,2.47482],[1429228800000,2.48047],[1429315200000,2.45066],[1429401600000,2.45066],[1429488000000,2.45066],[1429574400000,2.56546],[1429660800000,2.56674],[1429747200000,2.60441],[1429833600000,2.58774],[1429920000000,2.59035],[1430006400000,2.59035],[1430092800000,2.59035],[1430179200000,2.6486],[1430265600000,2.59318],[1430352000000,2.4973]], 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: [[1427846400000, 2.715939],[1427846400000, 2.715939],[1427932800000, 2.729042],[1428019200000, 2.724681],[1428105600000, 2.700957],[1428192000000, 2.700957],[1428278400000, 2.700957],[1428364800000, 2.717498],[1428451200000, 2.719969],[1428537600000, 2.728450],[1428624000000, 2.702740],[1428710400000, 2.591455],[1428796800000, 2.591455],[1428883200000, 2.591455],[1428969600000, 2.591455],[1429056000000, 2.597695],[1429142400000, 2.474818],[1429228800000, 2.480472],[1429315200000, 2.450657],[1429401600000, 2.450657],[1429488000000, 2.450657],[1429574400000, 2.565458],[1429660800000, 2.566739],[1429747200000, 2.604407],[1429833600000, 2.587745],[1429920000000, 2.590352],[1430006400000, 2.590352],[1430092800000, 2.590352],[1430179200000, 2.648600],[1430265600000, 2.593183],[1430352000000, 2.497301]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });