$(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: [[1291161600000,1.19064],[1291248000000,1.19129],[1291334400000,1.19196],[1291420800000,1.1919],[1291507200000,1.1919],[1291593600000,1.1919],[1291680000000,1.1971],[1291766400000,1.19676],[1291852800000,1.19361],[1291939200000,1.1948],[1292025600000,1.19494],[1292112000000,1.19494],[1292198400000,1.19494],[1292284800000,1.19291],[1292371200000,1.19654],[1292457600000,1.19648],[1292544000000,1.19512],[1292630400000,1.19653],[1292716800000,1.19653],[1292803200000,1.19653],[1292889600000,1.19312],[1292976000000,1.19592],[1293062400000,1.19822],[1293148800000,1.19877],[1293235200000,1.20137],[1293321600000,1.20137],[1293408000000,1.20137],[1293494400000,1.20063],[1293580800000,1.20172],[1293667200000,1.20214],[1293753600000,1.20617]], 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: [[1291161600000, 1.190636],[1291161600000, 1.190636],[1291248000000, 1.191290],[1291334400000, 1.191965],[1291420800000, 1.191903],[1291507200000, 1.191903],[1291593600000, 1.191903],[1291680000000, 1.197097],[1291766400000, 1.196758],[1291852800000, 1.193605],[1291939200000, 1.194803],[1292025600000, 1.194945],[1292112000000, 1.194945],[1292198400000, 1.194945],[1292284800000, 1.192907],[1292371200000, 1.196545],[1292457600000, 1.196476],[1292544000000, 1.195125],[1292630400000, 1.196528],[1292716800000, 1.196528],[1292803200000, 1.196528],[1292889600000, 1.193118],[1292976000000, 1.195916],[1293062400000, 1.198217],[1293148800000, 1.198769],[1293235200000, 1.201374],[1293321600000, 1.201374],[1293408000000, 1.201374],[1293494400000, 1.200627],[1293580800000, 1.201715],[1293667200000, 1.202140],[1293753600000, 1.206167]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });