$(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: 'Курс EEK, грн'}, 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: 'Курс EEK', data: [[1130803200000,0.388047],[1130889600000,0.387563],[1130976000000,0.387046],[1131062400000,0.388628],[1131148800000,0.385142],[1131235200000,0.385142],[1131321600000,0.385142],[1131408000000,0.381624],[1131494400000,0.378945],[1131580800000,0.378848],[1131667200000,0.379623],[1131753600000,0.377525],[1131840000000,0.377525],[1131926400000,0.377525],[1132012800000,0.378042],[1132099200000,0.376557],[1132185600000,0.37688],[1132272000000,0.377364],[1132358400000,0.376944],[1132444800000,0.376944],[1132531200000,0.376944],[1132617600000,0.381205],[1132704000000,0.377654],[1132790400000,0.380075],[1132876800000,0.380301],[1132963200000,0.379655],[1133049600000,0.379655],[1133136000000,0.379655],[1133222400000,0.378461],[1133308800000,0.380624]], 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, 0.388047],[1130803200000, 0.388047],[1130889600000, 0.387563],[1130976000000, 0.387046],[1131062400000, 0.388628],[1131148800000, 0.385142],[1131235200000, 0.385142],[1131321600000, 0.385142],[1131408000000, 0.381624],[1131494400000, 0.378945],[1131580800000, 0.378848],[1131667200000, 0.379623],[1131753600000, 0.377525],[1131840000000, 0.377525],[1131926400000, 0.377525],[1132012800000, 0.378042],[1132099200000, 0.376557],[1132185600000, 0.376880],[1132272000000, 0.377364],[1132358400000, 0.376944],[1132444800000, 0.376944],[1132531200000, 0.376944],[1132617600000, 0.381205],[1132704000000, 0.377654],[1132790400000, 0.380075],[1132876800000, 0.380301],[1132963200000, 0.379655],[1133049600000, 0.379655],[1133136000000, 0.379655],[1133222400000, 0.378461],[1133308800000, 0.380624]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });