$(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: [[1406851200000,1.96004],[1406937600000,1.93724],[1407024000000,1.93724],[1407110400000,1.93724],[1407196800000,1.97154],[1407283200000,1.99012],[1407369600000,2.00214],[1407456000000,2.02151],[1407542400000,2.04625],[1407628800000,2.04625],[1407715200000,2.04625],[1407801600000,2.08275],[1407888000000,2.13484],[1407974400000,2.12942],[1408060800000,2.12738],[1408147200000,2.13474],[1408233600000,2.13474],[1408320000000,2.13474],[1408406400000,2.12482],[1408492800000,2.10709],[1408579200000,2.15285],[1408665600000,2.13568],[1408752000000,2.17186],[1408838400000,2.17186],[1408924800000,2.17186],[1409011200000,2.17186],[1409097600000,2.21935],[1409184000000,2.25496],[1409270400000,2.18729],[1409356800000,2.21535]], 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: [[1406851200000, 1.960044],[1406851200000, 1.960044],[1406937600000, 1.937240],[1407024000000, 1.937240],[1407110400000, 1.937240],[1407196800000, 1.971538],[1407283200000, 1.990116],[1407369600000, 2.002143],[1407456000000, 2.021513],[1407542400000, 2.046250],[1407628800000, 2.046250],[1407715200000, 2.046250],[1407801600000, 2.082747],[1407888000000, 2.134840],[1407974400000, 2.129425],[1408060800000, 2.127383],[1408147200000, 2.134735],[1408233600000, 2.134735],[1408320000000, 2.134735],[1408406400000, 2.124818],[1408492800000, 2.107094],[1408579200000, 2.152849],[1408665600000, 2.135680],[1408752000000, 2.171865],[1408838400000, 2.171865],[1408924800000, 2.171865],[1409011200000, 2.171865],[1409097600000, 2.219347],[1409184000000, 2.254965],[1409270400000, 2.187293],[1409356800000, 2.215347]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });