$(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: [[1433116800000,3.40179],[1433203200000,3.40179],[1433289600000,3.3996],[1433376000000,3.38829],[1433462400000,3.38875],[1433548800000,3.3891],[1433635200000,3.3891],[1433721600000,3.3891],[1433808000000,3.4],[1433894400000,3.41117],[1433980800000,3.40802],[1434067200000,3.38819],[1434153600000,3.39215],[1434240000000,3.39215],[1434326400000,3.39215],[1434412800000,3.45445],[1434499200000,3.56616],[1434585600000,3.48797],[1434672000000,3.43624],[1434758400000,3.4843],[1434844800000,3.4843],[1434931200000,3.4843],[1435017600000,3.50575],[1435104000000,3.46819],[1435190400000,3.41098],[1435276800000,3.41367],[1435363200000,3.38467],[1435449600000,3.38467],[1435536000000,3.38467],[1435622400000,3.38467]], 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: [[1433116800000, 3.401789],[1433116800000, 3.401789],[1433203200000, 3.401789],[1433289600000, 3.399603],[1433376000000, 3.388294],[1433462400000, 3.388748],[1433548800000, 3.389096],[1433635200000, 3.389096],[1433721600000, 3.389096],[1433808000000, 3.400004],[1433894400000, 3.411165],[1433980800000, 3.408016],[1434067200000, 3.388194],[1434153600000, 3.392148],[1434240000000, 3.392148],[1434326400000, 3.392148],[1434412800000, 3.454449],[1434499200000, 3.566164],[1434585600000, 3.487973],[1434672000000, 3.436240],[1434758400000, 3.484303],[1434844800000, 3.484303],[1434931200000, 3.484303],[1435017600000, 3.505748],[1435104000000, 3.468186],[1435190400000, 3.410982],[1435276800000, 3.413670],[1435363200000, 3.384671],[1435449600000, 3.384671],[1435536000000, 3.384671],[1435622400000, 3.384671]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });