$(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: [[1294272000000,1.20244],[1294358400000,1.20108],[1294444800000,1.20108],[1294531200000,1.20108],[1294617600000,1.20108],[1294704000000,1.19896],[1294790400000,1.20214],[1294876800000,1.2051],[1294963200000,1.20421],[1295049600000,1.20642],[1295136000000,1.20642],[1295222400000,1.20642],[1295308800000,1.205],[1295395200000,1.20684],[1295481600000,1.20693],[1295568000000,1.20622],[1295654400000,1.20646],[1295740800000,1.20646],[1295827200000,1.20646],[1295913600000,1.20652],[1296000000000,1.20602],[1296086400000,1.20559],[1296172800000,1.2048],[1296259200000,1.20376],[1296345600000,1.20376],[1296432000000,1.20376]], 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: [[1294272000000, 1.202445],[1294272000000, 1.202445],[1294358400000, 1.201080],[1294444800000, 1.201080],[1294531200000, 1.201080],[1294617600000, 1.201080],[1294704000000, 1.198958],[1294790400000, 1.202142],[1294876800000, 1.205095],[1294963200000, 1.204208],[1295049600000, 1.206418],[1295136000000, 1.206418],[1295222400000, 1.206418],[1295308800000, 1.204996],[1295395200000, 1.206838],[1295481600000, 1.206929],[1295568000000, 1.206222],[1295654400000, 1.206459],[1295740800000, 1.206459],[1295827200000, 1.206459],[1295913600000, 1.206522],[1296000000000, 1.206015],[1296086400000, 1.205590],[1296172800000, 1.204797],[1296259200000, 1.203762],[1296345600000, 1.203762],[1296432000000, 1.203762]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });