$(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: [[1243814400000,7.09979],[1243900800000,7.14804],[1243987200000,7.15945],[1244073600000,7.12456],[1244160000000,7.09325],[1244246400000,7.10381],[1244332800000,7.10381],[1244419200000,7.10381],[1244505600000,7.10381],[1244592000000,7.00814],[1244678400000,7.07984],[1244764800000,7.03097],[1244851200000,7.05941],[1244937600000,7.05941],[1245024000000,7.05941],[1245110400000,6.9767],[1245196800000,7.01542],[1245283200000,6.98509],[1245369600000,7.06283],[1245456000000,7.0267],[1245542400000,7.0267],[1245628800000,7.0267],[1245715200000,6.99639],[1245801600000,7.0779],[1245888000000,7.04407],[1245974400000,6.94542],[1246060800000,7.04136],[1246147200000,7.04136],[1246233600000,7.04136],[1246320000000,7.04136]], 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: [[1243814400000, 7.099789],[1243814400000, 7.099789],[1243900800000, 7.148039],[1243987200000, 7.159446],[1244073600000, 7.124565],[1244160000000, 7.093253],[1244246400000, 7.103805],[1244332800000, 7.103805],[1244419200000, 7.103805],[1244505600000, 7.103805],[1244592000000, 7.008140],[1244678400000, 7.079840],[1244764800000, 7.030971],[1244851200000, 7.059411],[1244937600000, 7.059411],[1245024000000, 7.059411],[1245110400000, 6.976697],[1245196800000, 7.015418],[1245283200000, 6.985093],[1245369600000, 7.062826],[1245456000000, 7.026702],[1245542400000, 7.026702],[1245628800000, 7.026702],[1245715200000, 6.996387],[1245801600000, 7.077903],[1245888000000, 7.044068],[1245974400000, 6.945418],[1246060800000, 7.041356],[1246147200000, 7.041356],[1246233600000, 7.041356],[1246320000000, 7.041356]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });