$(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: [[1238544000000,1.12678],[1238630400000,1.12667],[1238716800000,1.12657],[1238803200000,1.12659],[1238889600000,1.12659],[1238976000000,1.12659],[1239062400000,1.12659],[1239148800000,1.12626],[1239235200000,1.1264],[1239321600000,1.1266],[1239408000000,1.1266],[1239494400000,1.1266],[1239580800000,1.1266],[1239667200000,1.1266],[1239753600000,1.12705],[1239840000000,1.12701],[1239926400000,1.12695],[1240012800000,1.12695],[1240099200000,1.12695],[1240185600000,1.12695],[1240272000000,1.12695],[1240358400000,1.12702],[1240444800000,1.12738],[1240531200000,1.1274],[1240617600000,1.12782],[1240704000000,1.12782],[1240790400000,1.12782],[1240876800000,1.1278],[1240963200000,1.12793],[1241049600000,1.12812]], 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: [[1238544000000, 1.126780],[1238544000000, 1.126780],[1238630400000, 1.126672],[1238716800000, 1.126571],[1238803200000, 1.126590],[1238889600000, 1.126590],[1238976000000, 1.126590],[1239062400000, 1.126593],[1239148800000, 1.126255],[1239235200000, 1.126404],[1239321600000, 1.126604],[1239408000000, 1.126604],[1239494400000, 1.126604],[1239580800000, 1.126604],[1239667200000, 1.126604],[1239753600000, 1.127045],[1239840000000, 1.127011],[1239926400000, 1.126950],[1240012800000, 1.126951],[1240099200000, 1.126951],[1240185600000, 1.126951],[1240272000000, 1.126951],[1240358400000, 1.127016],[1240444800000, 1.127379],[1240531200000, 1.127398],[1240617600000, 1.127823],[1240704000000, 1.127823],[1240790400000, 1.127823],[1240876800000, 1.127804],[1240963200000, 1.127930],[1241049600000, 1.128124]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });