$(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: [[1338508800000,12.0707],[1338595200000,12.0383],[1338681600000,12.0383],[1338768000000,12.0383],[1338854400000,12.0383],[1338940800000,12.0986],[1339027200000,12.0953],[1339113600000,12.1258],[1339200000000,12.0754],[1339286400000,12.0754],[1339372800000,12.0754],[1339459200000,12.1193],[1339545600000,12.0961],[1339632000000,12.0986],[1339718400000,12.1223],[1339804800000,12.1466],[1339891200000,12.1466],[1339977600000,12.1466],[1340064000000,12.1555],[1340150400000,12.1542],[1340236800000,12.1848],[1340323200000,12.1626],[1340409600000,12.1056],[1340496000000,12.1056],[1340582400000,12.1056],[1340668800000,12.0862],[1340755200000,12.1034],[1340841600000,12.0995],[1340928000000,12.0995],[1341014400000,12.0995]], 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: [[1338508800000, 12.070728],[1338508800000, 12.070728],[1338595200000, 12.038330],[1338681600000, 12.038330],[1338768000000, 12.038330],[1338854400000, 12.038330],[1338940800000, 12.098556],[1339027200000, 12.095297],[1339113600000, 12.125833],[1339200000000, 12.075397],[1339286400000, 12.075397],[1339372800000, 12.075397],[1339459200000, 12.119305],[1339545600000, 12.096085],[1339632000000, 12.098556],[1339718400000, 12.122283],[1339804800000, 12.146564],[1339891200000, 12.146564],[1339977600000, 12.146564],[1340064000000, 12.155450],[1340150400000, 12.154211],[1340236800000, 12.184785],[1340323200000, 12.162608],[1340409600000, 12.105612],[1340496000000, 12.105612],[1340582400000, 12.105612],[1340668800000, 12.086189],[1340755200000, 12.103393],[1340841600000, 12.099527],[1340928000000, 12.099527],[1341014400000, 12.099527]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });