$(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: 'Курс MDL, грн'}, 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: 'Курс MDL', data: [[1509494400000,1.54706],[1509580800000,1.54295],[1509667200000,1.54244],[1509753600000,1.54366],[1509840000000,1.54366],[1509926400000,1.54366],[1510012800000,1.53669],[1510099200000,1.53069],[1510185600000,1.52013],[1510272000000,1.5129],[1510358400000,1.50625],[1510444800000,1.50625],[1510531200000,1.50625],[1510617600000,1.50015],[1510704000000,1.49928],[1510790400000,1.49965],[1510876800000,1.50072],[1510963200000,1.50395],[1511049600000,1.50395],[1511136000000,1.50395],[1511222400000,1.5075],[1511308800000,1.51471],[1511395200000,1.52657],[1511481600000,1.54334],[1511568000000,1.5533],[1511654400000,1.5533],[1511740800000,1.5533],[1511827200000,1.55386],[1511913600000,1.56045],[1512000000000,1.5721]], 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: [[1509494400000, 1.547057],[1509494400000, 1.547057],[1509580800000, 1.542953],[1509667200000, 1.542435],[1509753600000, 1.543660],[1509840000000, 1.543660],[1509926400000, 1.543660],[1510012800000, 1.536694],[1510099200000, 1.530692],[1510185600000, 1.520134],[1510272000000, 1.512904],[1510358400000, 1.506247],[1510444800000, 1.506247],[1510531200000, 1.506247],[1510617600000, 1.500147],[1510704000000, 1.499283],[1510790400000, 1.499653],[1510876800000, 1.500717],[1510963200000, 1.503947],[1511049600000, 1.503947],[1511136000000, 1.503947],[1511222400000, 1.507497],[1511308800000, 1.514706],[1511395200000, 1.526574],[1511481600000, 1.543344],[1511568000000, 1.553305],[1511654400000, 1.553305],[1511740800000, 1.553305],[1511827200000, 1.553857],[1511913600000, 1.560447],[1512000000000, 1.572095]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });