$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1294272000000,12.3968],[1294358400000,12.3376],[1294444800000,12.3376],[1294531200000,12.3376],[1294617600000,12.3376],[1294704000000,12.345],[1294790400000,12.3864],[1294876800000,12.4156],[1294963200000,12.5606],[1295049600000,12.6013],[1295136000000,12.6013],[1295222400000,12.6013],[1295308800000,12.6479],[1295395200000,12.7118],[1295481600000,12.7236],[1295568000000,12.6855],[1295654400000,12.6602],[1295740800000,12.6602],[1295827200000,12.6602],[1295913600000,12.6539],[1296000000000,12.5216],[1296086400000,12.5778],[1296172800000,12.654],[1296259200000,12.6446],[1296345600000,12.6446],[1296432000000,12.6446]], 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.396825],[1294272000000, 12.396825],[1294358400000, 12.337628],[1294444800000, 12.337628],[1294531200000, 12.337628],[1294617600000, 12.337628],[1294704000000, 12.345028],[1294790400000, 12.386438],[1294876800000, 12.415577],[1294963200000, 12.560647],[1295049600000, 12.601348],[1295136000000, 12.601348],[1295222400000, 12.601348],[1295308800000, 12.647918],[1295395200000, 12.711770],[1295481600000, 12.723635],[1295568000000, 12.685495],[1295654400000, 12.660247],[1295740800000, 12.660247],[1295827200000, 12.660247],[1295913600000, 12.653890],[1296000000000, 12.521569],[1296086400000, 12.577803],[1296172800000, 12.654049],[1296259200000, 12.644604],[1296345600000, 12.644604],[1296432000000, 12.644604]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });