$(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: [[1377993600000,1.30635],[1378080000000,1.30635],[1378166400000,1.30612],[1378252800000,1.30591],[1378339200000,1.30602],[1378425600000,1.30634],[1378512000000,1.30616],[1378598400000,1.30616],[1378684800000,1.30616],[1378771200000,1.30584],[1378857600000,1.30604],[1378944000000,1.30626],[1379030400000,1.30648],[1379116800000,1.30631],[1379203200000,1.30631],[1379289600000,1.30631],[1379376000000,1.306],[1379462400000,1.30572],[1379548800000,1.30579],[1379635200000,1.30618],[1379721600000,1.30595],[1379808000000,1.30595],[1379894400000,1.30595],[1379980800000,1.30635],[1380067200000,1.30501],[1380153600000,1.30596],[1380240000000,1.30592],[1380326400000,1.30635],[1380412800000,1.30635],[1380499200000,1.30635]], 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: [[1377993600000, 1.306355],[1377993600000, 1.306355],[1378080000000, 1.306355],[1378166400000, 1.306124],[1378252800000, 1.305910],[1378339200000, 1.306022],[1378425600000, 1.306341],[1378512000000, 1.306160],[1378598400000, 1.306160],[1378684800000, 1.306160],[1378771200000, 1.305840],[1378857600000, 1.306043],[1378944000000, 1.306257],[1379030400000, 1.306476],[1379116800000, 1.306309],[1379203200000, 1.306309],[1379289600000, 1.306309],[1379376000000, 1.305995],[1379462400000, 1.305722],[1379548800000, 1.305794],[1379635200000, 1.306178],[1379721600000, 1.305946],[1379808000000, 1.305946],[1379894400000, 1.305946],[1379980800000, 1.306345],[1380067200000, 1.305013],[1380153600000, 1.305959],[1380240000000, 1.305917],[1380326400000, 1.306352],[1380412800000, 1.306352],[1380499200000, 1.306352]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });