$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1517443200000,0.49558],[1517529600000,0.49536],[1517616000000,0.49762],[1517702400000,0.49762],[1517788800000,0.49762],[1517875200000,0.48991],[1517961600000,0.47992],[1518048000000,0.47617],[1518134400000,0.4703],[1518220800000,0.46515],[1518307200000,0.46515],[1518393600000,0.46515],[1518480000000,0.46263],[1518566400000,0.46217],[1518652800000,0.46284],[1518739200000,0.47286],[1518825600000,0.47894],[1518912000000,0.47894],[1518998400000,0.47894],[1519084800000,0.47941],[1519171200000,0.479],[1519257600000,0.47637],[1519344000000,0.47695],[1519430400000,0.47548],[1519516800000,0.47548],[1519603200000,0.47548],[1519689600000,0.48294],[1519776000000,0.48406]], 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.495580],[1517443200000, 0.495580],[1517529600000, 0.495360],[1517616000000, 0.497620],[1517702400000, 0.497620],[1517788800000, 0.497620],[1517875200000, 0.489910],[1517961600000, 0.479920],[1518048000000, 0.476170],[1518134400000, 0.470300],[1518220800000, 0.465150],[1518307200000, 0.465150],[1518393600000, 0.465150],[1518480000000, 0.462630],[1518566400000, 0.462170],[1518652800000, 0.462840],[1518739200000, 0.472860],[1518825600000, 0.478940],[1518912000000, 0.478940],[1518998400000, 0.478940],[1519084800000, 0.479410],[1519171200000, 0.479000],[1519257600000, 0.476370],[1519344000000, 0.476950],[1519430400000, 0.475480],[1519516800000, 0.475480],[1519603200000, 0.475480],[1519689600000, 0.482940],[1519776000000, 0.484060]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });