$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1291161600000,7.94289],[1291248000000,7.90005],[1291334400000,7.93698],[1291420800000,8.00424],[1291507200000,8.00424],[1291593600000,8.00424],[1291680000000,8.07802],[1291766400000,8.13524],[1291852800000,8.03664],[1291939200000,8.04516],[1292025600000,8.10362],[1292112000000,8.10362],[1292198400000,8.10362],[1292284800000,8.12457],[1292371200000,8.28308],[1292457600000,8.29464],[1292544000000,8.20459],[1292630400000,8.28984],[1292716800000,8.28984],[1292803200000,8.28984],[1292889600000,8.24509],[1292976000000,8.3057],[1293062400000,8.35206],[1293148800000,8.28767],[1293235200000,8.26499],[1293321600000,8.26499],[1293408000000,8.26499],[1293494400000,8.28267],[1293580800000,8.39501],[1293667200000,8.37598],[1293753600000,8.47546]], 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, 7.942889],[1291161600000, 7.942889],[1291248000000, 7.900051],[1291334400000, 7.936983],[1291420800000, 8.004240],[1291507200000, 8.004240],[1291593600000, 8.004240],[1291680000000, 8.078024],[1291766400000, 8.135245],[1291852800000, 8.036637],[1291939200000, 8.045161],[1292025600000, 8.103620],[1292112000000, 8.103620],[1292198400000, 8.103620],[1292284800000, 8.124569],[1292371200000, 8.283079],[1292457600000, 8.294637],[1292544000000, 8.204593],[1292630400000, 8.289842],[1292716800000, 8.289842],[1292803200000, 8.289842],[1292889600000, 8.245089],[1292976000000, 8.305704],[1293062400000, 8.352057],[1293148800000, 8.287673],[1293235200000, 8.264994],[1293321600000, 8.264994],[1293408000000, 8.264994],[1293494400000, 8.282671],[1293580800000, 8.395006],[1293667200000, 8.375976],[1293753600000, 8.475461]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });