$(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: [[1185926400000,7.73269],[1186012800000,7.72789],[1186099200000,7.7297],[1186185600000,7.73485],[1186272000000,7.73485],[1186358400000,7.73485],[1186444800000,7.76094],[1186531200000,7.75383],[1186617600000,7.74732],[1186704000000,7.74357],[1186790400000,7.72887],[1186876800000,7.72887],[1186963200000,7.72887],[1187049600000,7.7238],[1187136000000,7.70017],[1187222400000,7.68562],[1187308800000,7.6815],[1187395200000,7.69747],[1187481600000,7.69747],[1187568000000,7.69747],[1187654400000,7.69783],[1187740800000,7.70471],[1187827200000,7.69927],[1187913600000,7.7136],[1188000000000,7.7136],[1188086400000,7.7136],[1188172800000,7.7136],[1188259200000,7.7235],[1188345600000,7.74301],[1188432000000,7.73966],[1188518400000,7.73]], 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: [[1185926400000, 7.732685],[1185926400000, 7.732685],[1186012800000, 7.727892],[1186099200000, 7.729702],[1186185600000, 7.734852],[1186272000000, 7.734852],[1186358400000, 7.734852],[1186444800000, 7.760944],[1186531200000, 7.753830],[1186617600000, 7.747324],[1186704000000, 7.743570],[1186790400000, 7.728874],[1186876800000, 7.728874],[1186963200000, 7.728874],[1187049600000, 7.723803],[1187136000000, 7.700166],[1187222400000, 7.685623],[1187308800000, 7.681496],[1187395200000, 7.697467],[1187481600000, 7.697467],[1187568000000, 7.697467],[1187654400000, 7.697830],[1187740800000, 7.704713],[1187827200000, 7.699274],[1187913600000, 7.713598],[1188000000000, 7.713598],[1188086400000, 7.713598],[1188172800000, 7.713598],[1188259200000, 7.723496],[1188345600000, 7.743012],[1188432000000, 7.739665],[1188518400000, 7.729998]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });