$(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: [[1193875200000,7.93802],[1193961600000,7.92947],[1194048000000,7.95296],[1194134400000,7.95296],[1194220800000,7.95296],[1194307200000,7.95059],[1194393600000,7.96491],[1194480000000,8.01009],[1194566400000,8.00865],[1194652800000,8.02516],[1194739200000,8.02516],[1194825600000,8.02516],[1194912000000,7.99952],[1194998400000,8.0006],[1195084800000,8.01174],[1195171200000,7.99149],[1195257600000,7.98458],[1195344000000,7.98458],[1195430400000,7.98458],[1195516800000,8.00238],[1195603200000,8.03352],[1195689600000,8.04769],[1195776000000,8.04769],[1195862400000,8.04769],[1195948800000,8.04769],[1196035200000,8.04769],[1196121600000,8.06462],[1196208000000,8.07057],[1196294400000,8.02984],[1196380800000,8.02822]], 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: [[1193875200000, 7.938017],[1193875200000, 7.938017],[1193961600000, 7.929467],[1194048000000, 7.952956],[1194134400000, 7.952956],[1194220800000, 7.952956],[1194307200000, 7.950590],[1194393600000, 7.964910],[1194480000000, 8.010088],[1194566400000, 8.008653],[1194652800000, 8.025159],[1194739200000, 8.025159],[1194825600000, 8.025159],[1194912000000, 7.999518],[1194998400000, 8.000596],[1195084800000, 8.011740],[1195171200000, 7.991493],[1195257600000, 7.984581],[1195344000000, 7.984581],[1195430400000, 7.984581],[1195516800000, 8.002383],[1195603200000, 8.033521],[1195689600000, 8.047693],[1195776000000, 8.047693],[1195862400000, 8.047693],[1195948800000, 8.047693],[1196035200000, 8.047693],[1196121600000, 8.064619],[1196208000000, 8.070574],[1196294400000, 8.029842],[1196380800000, 8.028221]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });