$(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: [[1367366400000,1.29638],[1367452800000,1.29638],[1367539200000,1.29638],[1367625600000,1.29638],[1367712000000,1.29638],[1367798400000,1.29638],[1367884800000,1.29638],[1367971200000,1.29887],[1368057600000,1.30153],[1368144000000,1.30153],[1368230400000,1.30153],[1368316800000,1.30153],[1368403200000,1.30153],[1368489600000,1.30036],[1368576000000,1.3012],[1368662400000,1.30072],[1368748800000,1.29985],[1368835200000,1.30139],[1368921600000,1.30139],[1369008000000,1.30139],[1369094400000,1.30203],[1369180800000,1.30249],[1369267200000,1.30368],[1369353600000,1.30306],[1369440000000,1.3035],[1369526400000,1.3035],[1369612800000,1.3035],[1369699200000,1.30581],[1369785600000,1.30573],[1369872000000,1.30411],[1369958400000,1.30258]], 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: [[1367366400000, 1.296382],[1367366400000, 1.296382],[1367452800000, 1.296382],[1367539200000, 1.296382],[1367625600000, 1.296382],[1367712000000, 1.296382],[1367798400000, 1.296382],[1367884800000, 1.296382],[1367971200000, 1.298870],[1368057600000, 1.301532],[1368144000000, 1.301532],[1368230400000, 1.301532],[1368316800000, 1.301532],[1368403200000, 1.301532],[1368489600000, 1.300359],[1368576000000, 1.301200],[1368662400000, 1.300720],[1368748800000, 1.299847],[1368835200000, 1.301391],[1368921600000, 1.301391],[1369008000000, 1.301391],[1369094400000, 1.302029],[1369180800000, 1.302488],[1369267200000, 1.303685],[1369353600000, 1.303065],[1369440000000, 1.303505],[1369526400000, 1.303505],[1369612800000, 1.303505],[1369699200000, 1.305810],[1369785600000, 1.305725],[1369872000000, 1.304108],[1369958400000, 1.302581]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });