$(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: [[1354320000000,1.28305],[1354406400000,1.28305],[1354492800000,1.28305],[1354579200000,1.28326],[1354665600000,1.28388],[1354752000000,1.28299],[1354838400000,1.28298],[1354924800000,1.28363],[1355011200000,1.28363],[1355097600000,1.28363],[1355184000000,1.28092],[1355270400000,1.27966],[1355356800000,1.27919],[1355443200000,1.27704],[1355529600000,1.2797],[1355616000000,1.2797],[1355702400000,1.2797],[1355788800000,1.28114],[1355875200000,1.2833],[1355961600000,1.28251],[1356048000000,1.2825],[1356134400000,1.28269],[1356220800000,1.28269],[1356307200000,1.28269],[1356393600000,1.28227],[1356480000000,1.28227],[1356566400000,1.28227],[1356652800000,1.28155],[1356739200000,1.28233],[1356825600000,1.28233],[1356912000000,1.28233]], 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: [[1354320000000, 1.283046],[1354320000000, 1.283046],[1354406400000, 1.283046],[1354492800000, 1.283046],[1354579200000, 1.283255],[1354665600000, 1.283885],[1354752000000, 1.282985],[1354838400000, 1.282979],[1354924800000, 1.283627],[1355011200000, 1.283627],[1355097600000, 1.283627],[1355184000000, 1.280917],[1355270400000, 1.279656],[1355356800000, 1.279194],[1355443200000, 1.277040],[1355529600000, 1.279698],[1355616000000, 1.279698],[1355702400000, 1.279698],[1355788800000, 1.281139],[1355875200000, 1.283297],[1355961600000, 1.282513],[1356048000000, 1.282497],[1356134400000, 1.282690],[1356220800000, 1.282690],[1356307200000, 1.282690],[1356393600000, 1.282271],[1356480000000, 1.282271],[1356566400000, 1.282271],[1356652800000, 1.281546],[1356739200000, 1.282331],[1356825600000, 1.282331],[1356912000000, 1.282331]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });