$(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: 'Курс NOK, грн'}, 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: 'Курс NOK', data: [[1427846400000,2.89899],[1427932800000,2.91307],[1428019200000,2.94324],[1428105600000,2.91761],[1428192000000,2.91761],[1428278400000,2.91761],[1428364800000,2.93548],[1428451200000,2.92062],[1428537600000,2.94319],[1428624000000,2.91495],[1428710400000,2.80812],[1428796800000,2.80812],[1428883200000,2.80812],[1428969600000,2.80812],[1429056000000,2.85541],[1429142400000,2.73848],[1429228800000,2.74358],[1429315200000,2.71189],[1429401600000,2.71189],[1429488000000,2.71189],[1429574400000,2.82674],[1429660800000,2.82914],[1429747200000,2.8683],[1429833600000,2.84998],[1429920000000,2.86745],[1430006400000,2.86745],[1430092800000,2.86745],[1430179200000,2.93803],[1430265600000,2.89873],[1430352000000,2.76157]], 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.898988],[1427846400000, 2.898988],[1427932800000, 2.913067],[1428019200000, 2.943239],[1428105600000, 2.917612],[1428192000000, 2.917612],[1428278400000, 2.917612],[1428364800000, 2.935479],[1428451200000, 2.920618],[1428537600000, 2.943195],[1428624000000, 2.914946],[1428710400000, 2.808117],[1428796800000, 2.808117],[1428883200000, 2.808117],[1428969600000, 2.808117],[1429056000000, 2.855412],[1429142400000, 2.738475],[1429228800000, 2.743584],[1429315200000, 2.711891],[1429401600000, 2.711891],[1429488000000, 2.711891],[1429574400000, 2.826745],[1429660800000, 2.829141],[1429747200000, 2.868302],[1429833600000, 2.849984],[1429920000000, 2.867451],[1430006400000, 2.867451],[1430092800000, 2.867451],[1430179200000, 2.938032],[1430265600000, 2.898729],[1430352000000, 2.761565]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });