$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1283299200000,11.9003],[1283385600000,11.9453],[1283472000000,11.9673],[1283558400000,11.983],[1283644800000,11.983],[1283731200000,11.983],[1283817600000,11.983],[1283904000000,11.9647],[1283990400000,11.9579],[1284076800000,11.964],[1284163200000,11.9614],[1284249600000,11.9614],[1284336000000,11.9614],[1284422400000,11.9829],[1284508800000,12.0229],[1284595200000,12.0336],[1284681600000,12.0751],[1284768000000,12.0732],[1284854400000,12.0732],[1284940800000,12.0732],[1285027200000,12.0748],[1285113600000,12.0829],[1285200000000,12.1913],[1285286400000,12.1765],[1285372800000,12.1949],[1285459200000,12.1949],[1285545600000,12.1949],[1285632000000,12.2311],[1285718400000,12.23],[1285804800000,12.2839]], 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: [[1283299200000, 11.900339],[1283299200000, 11.900339],[1283385600000, 11.945270],[1283472000000, 11.967270],[1283558400000, 11.983047],[1283644800000, 11.983047],[1283731200000, 11.983047],[1283817600000, 11.983047],[1283904000000, 11.964682],[1283990400000, 11.957861],[1284076800000, 11.963976],[1284163200000, 11.961406],[1284249600000, 11.961406],[1284336000000, 11.961406],[1284422400000, 11.982938],[1284508800000, 12.022867],[1284595200000, 12.033631],[1284681600000, 12.075117],[1284768000000, 12.073166],[1284854400000, 12.073166],[1284940800000, 12.073166],[1285027200000, 12.074767],[1285113600000, 12.082947],[1285200000000, 12.191300],[1285286400000, 12.176540],[1285372800000, 12.194949],[1285459200000, 12.194949],[1285545600000, 12.194949],[1285632000000, 12.231066],[1285718400000, 12.230008],[1285804800000, 12.283904]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });