$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1294272000000,12.2589],[1294358400000,12.191],[1294444800000,12.191],[1294531200000,12.191],[1294617600000,12.191],[1294704000000,12.1256],[1294790400000,12.1506],[1294876800000,12.1528],[1294963200000,12.2238],[1295049600000,12.2994],[1295136000000,12.2994],[1295222400000,12.2994],[1295308800000,12.2905],[1295395200000,12.3205],[1295481600000,12.3455],[1295568000000,12.3563],[1295654400000,12.3474],[1295740800000,12.3474],[1295827200000,12.3474],[1295913600000,12.3575],[1296000000000,12.3759],[1296086400000,12.4002],[1296172800000,12.403],[1296259200000,12.4205],[1296345600000,12.4205],[1296432000000,12.4205]], 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: [[1294272000000, 12.258930],[1294272000000, 12.258930],[1294358400000, 12.191012],[1294444800000, 12.191012],[1294531200000, 12.191012],[1294617600000, 12.191012],[1294704000000, 12.125640],[1294790400000, 12.150610],[1294876800000, 12.152818],[1294963200000, 12.223754],[1295049600000, 12.299445],[1295136000000, 12.299445],[1295222400000, 12.299445],[1295308800000, 12.290473],[1295395200000, 12.320473],[1295481600000, 12.345497],[1295568000000, 12.356251],[1295654400000, 12.347435],[1295740800000, 12.347435],[1295827200000, 12.347435],[1295913600000, 12.357485],[1296000000000, 12.375930],[1296086400000, 12.400237],[1296172800000, 12.403028],[1296259200000, 12.420514],[1296345600000, 12.420514],[1296432000000, 12.420514]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });