$(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: [[1328054400000,1.26649],[1328140800000,1.2669],[1328227200000,1.26698],[1328313600000,1.26616],[1328400000000,1.26616],[1328486400000,1.26616],[1328572800000,1.26567],[1328659200000,1.26589],[1328745600000,1.26842],[1328832000000,1.2682],[1328918400000,1.26943],[1329004800000,1.26943],[1329091200000,1.26943],[1329177600000,1.26963],[1329264000000,1.26894],[1329350400000,1.26899],[1329436800000,1.2674],[1329523200000,1.26856],[1329609600000,1.26856],[1329696000000,1.26856],[1329782400000,1.26884],[1329868800000,1.26846],[1329955200000,1.26824],[1330041600000,1.26782],[1330128000000,1.26813],[1330214400000,1.26813],[1330300800000,1.26813],[1330387200000,1.26741],[1330473600000,1.26764]], 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: [[1328054400000, 1.266494],[1328054400000, 1.266494],[1328140800000, 1.266901],[1328227200000, 1.266981],[1328313600000, 1.266160],[1328400000000, 1.266160],[1328486400000, 1.266160],[1328572800000, 1.265674],[1328659200000, 1.265891],[1328745600000, 1.268423],[1328832000000, 1.268199],[1328918400000, 1.269425],[1329004800000, 1.269425],[1329091200000, 1.269425],[1329177600000, 1.269625],[1329264000000, 1.268942],[1329350400000, 1.268992],[1329436800000, 1.267402],[1329523200000, 1.268561],[1329609600000, 1.268561],[1329696000000, 1.268561],[1329782400000, 1.268841],[1329868800000, 1.268460],[1329955200000, 1.268235],[1330041600000, 1.267823],[1330128000000, 1.268130],[1330214400000, 1.268130],[1330300800000, 1.268130],[1330387200000, 1.267406],[1330473600000, 1.267643]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });