$(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: [[1391212800000,1.31872],[1391299200000,1.31872],[1391385600000,1.31872],[1391472000000,1.31898],[1391558400000,1.31837],[1391644800000,1.31894],[1391731200000,1.43713],[1391817600000,1.40641],[1391904000000,1.40641],[1391990400000,1.40641],[1392076800000,1.41132],[1392163200000,1.41097],[1392249600000,1.41038],[1392336000000,1.42332],[1392422400000,1.42415],[1392508800000,1.42415],[1392595200000,1.42415],[1392681600000,1.42575],[1392768000000,1.43154],[1392854400000,1.44584],[1392940800000,1.45255],[1393027200000,1.46731],[1393113600000,1.46731],[1393200000000,1.46731],[1393286400000,1.48216],[1393372800000,1.53951],[1393459200000,1.55392],[1393545600000,1.62954]], 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: [[1391212800000, 1.318719],[1391212800000, 1.318719],[1391299200000, 1.318719],[1391385600000, 1.318719],[1391472000000, 1.318975],[1391558400000, 1.318368],[1391644800000, 1.318938],[1391731200000, 1.437134],[1391817600000, 1.406412],[1391904000000, 1.406412],[1391990400000, 1.406412],[1392076800000, 1.411321],[1392163200000, 1.410965],[1392249600000, 1.410379],[1392336000000, 1.423322],[1392422400000, 1.424152],[1392508800000, 1.424152],[1392595200000, 1.424152],[1392681600000, 1.425754],[1392768000000, 1.431535],[1392854400000, 1.445844],[1392940800000, 1.452546],[1393027200000, 1.467311],[1393113600000, 1.467311],[1393200000000, 1.467311],[1393286400000, 1.482165],[1393372800000, 1.539511],[1393459200000, 1.553920],[1393545600000, 1.629540]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });