$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1130803200000,5.05],[1130889600000,5.05],[1130976000000,5.05],[1131062400000,5.05],[1131148800000,5.05],[1131235200000,5.05],[1131321600000,5.05],[1131408000000,5.05],[1131494400000,5.05],[1131580800000,5.05],[1131667200000,5.05],[1131753600000,5.05],[1131840000000,5.05],[1131926400000,5.05],[1132012800000,5.05],[1132099200000,5.05],[1132185600000,5.05],[1132272000000,5.05],[1132358400000,5.05],[1132444800000,5.05],[1132531200000,5.05],[1132617600000,5.05],[1132704000000,5.05],[1132790400000,5.05],[1132876800000,5.05],[1132963200000,5.05],[1133049600000,5.05],[1133136000000,5.05],[1133222400000,5.05],[1133308800000,5.05]], 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, 5.050000],[1130803200000, 5.050000],[1130889600000, 5.050000],[1130976000000, 5.050000],[1131062400000, 5.050000],[1131148800000, 5.050000],[1131235200000, 5.050000],[1131321600000, 5.050000],[1131408000000, 5.050000],[1131494400000, 5.050000],[1131580800000, 5.050000],[1131667200000, 5.050000],[1131753600000, 5.050000],[1131840000000, 5.050000],[1131926400000, 5.050000],[1132012800000, 5.050000],[1132099200000, 5.050000],[1132185600000, 5.050000],[1132272000000, 5.050000],[1132358400000, 5.050000],[1132444800000, 5.050000],[1132531200000, 5.050000],[1132617600000, 5.050000],[1132704000000, 5.050000],[1132790400000, 5.050000],[1132876800000, 5.050000],[1132963200000, 5.050000],[1133049600000, 5.050000],[1133136000000, 5.050000],[1133222400000, 5.050000],[1133308800000, 5.050000]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });