$(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: 'Курс JPY, грн'}, 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: 'Курс JPY', data: [[1517443200000,0.255786],[1517529600000,0.254154],[1517616000000,0.253874],[1517702400000,0.253874],[1517788800000,0.253874],[1517875200000,0.252518],[1517961600000,0.250845],[1518048000000,0.248148],[1518134400000,0.24743],[1518220800000,0.248589],[1518307200000,0.248589],[1518393600000,0.248589],[1518480000000,0.247049],[1518566400000,0.247918],[1518652800000,0.24859],[1518739200000,0.251153],[1518825600000,0.254205],[1518912000000,0.254205],[1518998400000,0.254205],[1519084800000,0.253492],[1519171200000,0.252613],[1519257600000,0.250945],[1519344000000,0.252783],[1519430400000,0.252844],[1519516800000,0.252844],[1519603200000,0.252844],[1519689600000,0.252828],[1519776000000,0.251567]], 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: [[1517443200000, 0.255786],[1517443200000, 0.255786],[1517529600000, 0.254154],[1517616000000, 0.253874],[1517702400000, 0.253874],[1517788800000, 0.253874],[1517875200000, 0.252518],[1517961600000, 0.250845],[1518048000000, 0.248148],[1518134400000, 0.247430],[1518220800000, 0.248589],[1518307200000, 0.248589],[1518393600000, 0.248589],[1518480000000, 0.247049],[1518566400000, 0.247918],[1518652800000, 0.248590],[1518739200000, 0.251153],[1518825600000, 0.254205],[1518912000000, 0.254205],[1518998400000, 0.254205],[1519084800000, 0.253492],[1519171200000, 0.252613],[1519257600000, 0.250945],[1519344000000, 0.252783],[1519430400000, 0.252844],[1519516800000, 0.252844],[1519603200000, 0.252844],[1519689600000, 0.252828],[1519776000000, 0.251567]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });