$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1080777600000,6.51454],[1080864000000,6.56463],[1080950400000,6.56463],[1081036800000,6.56463],[1081123200000,6.56463],[1081209600000,6.42607],[1081296000000,6.44312],[1081382400000,6.44608],[1081468800000,6.44596],[1081555200000,6.44596],[1081641600000,6.44596],[1081728000000,6.44596],[1081814400000,6.44596],[1081900800000,6.38148],[1081987200000,6.3543],[1082073600000,6.35832],[1082160000000,6.35832],[1082246400000,6.35832],[1082332800000,6.35832],[1082419200000,6.41801],[1082505600000,6.30717],[1082592000000,6.30717],[1082678400000,6.30717],[1082764800000,6.33328],[1082851200000,6.33328],[1082937600000,6.33328],[1083024000000,6.31516],[1083110400000,6.33434],[1083196800000,6.345],[1083283200000,6.36596]], 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: [[1080777600000, 6.514540],[1080777600000, 6.514540],[1080864000000, 6.564630],[1080950400000, 6.564630],[1081036800000, 6.564630],[1081123200000, 6.564630],[1081209600000, 6.426070],[1081296000000, 6.443120],[1081382400000, 6.446080],[1081468800000, 6.445960],[1081555200000, 6.445960],[1081641600000, 6.445960],[1081728000000, 6.445960],[1081814400000, 6.445960],[1081900800000, 6.381480],[1081987200000, 6.354300],[1082073600000, 6.358320],[1082160000000, 6.358320],[1082246400000, 6.358320],[1082332800000, 6.358320],[1082419200000, 6.418010],[1082505600000, 6.307170],[1082592000000, 6.307170],[1082678400000, 6.307170],[1082764800000, 6.333280],[1082851200000, 6.333280],[1082937600000, 6.333280],[1083024000000, 6.315160],[1083110400000, 6.334340],[1083196800000, 6.345000],[1083283200000, 6.365960]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });