$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1130803200000,6.07162],[1130889600000,6.06404],[1130976000000,6.05596],[1131062400000,6.08071],[1131148800000,6.02616],[1131235200000,6.02616],[1131321600000,6.02616],[1131408000000,5.97112],[1131494400000,5.9292],[1131580800000,5.92769],[1131667200000,5.93981],[1131753600000,5.90698],[1131840000000,5.90698],[1131926400000,5.90698],[1132012800000,5.91507],[1132099200000,5.89184],[1132185600000,5.89689],[1132272000000,5.90446],[1132358400000,5.8979],[1132444800000,5.8979],[1132531200000,5.8979],[1132617600000,5.96455],[1132704000000,5.909],[1132790400000,5.94688],[1132876800000,5.95041],[1132963200000,5.94032],[1133049600000,5.94032],[1133136000000,5.94032],[1133222400000,5.92163],[1133308800000,5.95547]], 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: [[1130803200000, 6.071615],[1130803200000, 6.071615],[1130889600000, 6.064040],[1130976000000, 6.055960],[1131062400000, 6.080705],[1131148800000, 6.026165],[1131235200000, 6.026165],[1131321600000, 6.026165],[1131408000000, 5.971120],[1131494400000, 5.929205],[1131580800000, 5.927690],[1131667200000, 5.939810],[1131753600000, 5.906985],[1131840000000, 5.906985],[1131926400000, 5.906985],[1132012800000, 5.915065],[1132099200000, 5.891835],[1132185600000, 5.896885],[1132272000000, 5.904460],[1132358400000, 5.897895],[1132444800000, 5.897895],[1132531200000, 5.897895],[1132617600000, 5.964555],[1132704000000, 5.909005],[1132790400000, 5.946880],[1132876800000, 5.950415],[1132963200000, 5.940315],[1133049600000, 5.940315],[1133136000000, 5.940315],[1133222400000, 5.921630],[1133308800000, 5.955465]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });