$(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: 'Курс CNY, грн'}, 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: 'Курс CNY', data: [[1338508800000,1.255],[1338595200000,1.25479],[1338681600000,1.25479],[1338768000000,1.25479],[1338854400000,1.25479],[1338940800000,1.25502],[1339027200000,1.25592],[1339113600000,1.25593],[1339200000000,1.25369],[1339286400000,1.25369],[1339372800000,1.25369],[1339459200000,1.25946],[1339545600000,1.25439],[1339632000000,1.25502],[1339718400000,1.26322],[1339804800000,1.25437],[1339891200000,1.25437],[1339977600000,1.25437],[1340064000000,1.25697],[1340150400000,1.25753],[1340236800000,1.2565],[1340323200000,1.25572],[1340409600000,1.25572],[1340496000000,1.25572],[1340582400000,1.25572],[1340668800000,1.25603],[1340755200000,1.25595],[1340841600000,1.25716],[1340928000000,1.25716],[1341014400000,1.25716]], 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, 1.254997],[1338508800000, 1.254997],[1338595200000, 1.254792],[1338681600000, 1.254792],[1338768000000, 1.254792],[1338854400000, 1.254792],[1338940800000, 1.255022],[1339027200000, 1.255917],[1339113600000, 1.255933],[1339200000000, 1.253686],[1339286400000, 1.253686],[1339372800000, 1.253686],[1339459200000, 1.259458],[1339545600000, 1.254395],[1339632000000, 1.255022],[1339718400000, 1.263224],[1339804800000, 1.254374],[1339891200000, 1.254374],[1339977600000, 1.254374],[1340064000000, 1.256972],[1340150400000, 1.257526],[1340236800000, 1.256503],[1340323200000, 1.255719],[1340409600000, 1.255723],[1340496000000, 1.255723],[1340582400000, 1.255723],[1340668800000, 1.256029],[1340755200000, 1.255954],[1340841600000, 1.257159],[1340928000000, 1.257159],[1341014400000, 1.257159]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });