$(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: [[1270080000000,1.16102],[1270166400000,1.16095],[1270252800000,1.16095],[1270339200000,1.16095],[1270425600000,1.16095],[1270512000000,1.16095],[1270598400000,1.16104],[1270684800000,1.16095],[1270771200000,1.16144],[1270857600000,1.16158],[1270944000000,1.16158],[1271030400000,1.16158],[1271116800000,1.16128],[1271203200000,1.16126],[1271289600000,1.16124],[1271376000000,1.16112],[1271462400000,1.16121],[1271548800000,1.16121],[1271635200000,1.16121],[1271721600000,1.16099],[1271808000000,1.1612],[1271894400000,1.1609],[1271980800000,1.16107],[1272067200000,1.16086],[1272153600000,1.16086],[1272240000000,1.16086],[1272326400000,1.16106],[1272412800000,1.16117],[1272499200000,1.16125],[1272585600000,1.16115]], 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: [[1270080000000, 1.161023],[1270080000000, 1.161023],[1270166400000, 1.160946],[1270252800000, 1.160946],[1270339200000, 1.160946],[1270425600000, 1.160946],[1270512000000, 1.160946],[1270598400000, 1.161041],[1270684800000, 1.160947],[1270771200000, 1.161442],[1270857600000, 1.161580],[1270944000000, 1.161580],[1271030400000, 1.161580],[1271116800000, 1.161275],[1271203200000, 1.161262],[1271289600000, 1.161242],[1271376000000, 1.161124],[1271462400000, 1.161206],[1271548800000, 1.161206],[1271635200000, 1.161206],[1271721600000, 1.160992],[1271808000000, 1.161196],[1271894400000, 1.160895],[1271980800000, 1.161068],[1272067200000, 1.160862],[1272153600000, 1.160862],[1272240000000, 1.160862],[1272326400000, 1.161063],[1272412800000, 1.161166],[1272499200000, 1.161254],[1272585600000, 1.161153]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });