$(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: [[1191196800000,10.2761],[1191283200000,10.3064],[1191369600000,10.3104],[1191456000000,10.3055],[1191542400000,10.2733],[1191628800000,10.3034],[1191715200000,10.3034],[1191801600000,10.3034],[1191888000000,10.2929],[1191974400000,10.246],[1192060800000,10.3144],[1192147200000,10.2877],[1192233600000,10.2468],[1192320000000,10.2468],[1192406400000,10.2468],[1192492800000,10.308],[1192579200000,10.2595],[1192665600000,10.284],[1192752000000,10.3453],[1192838400000,10.3477],[1192924800000,10.3477],[1193011200000,10.3477],[1193097600000,10.2564],[1193184000000,10.3461],[1193270400000,10.3324],[1193356800000,10.3577],[1193443200000,10.3622],[1193529600000,10.3622],[1193616000000,10.3622],[1193702400000,10.3977],[1193788800000,10.4354]], 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: [[1191196800000, 10.276112],[1191196800000, 10.276112],[1191283200000, 10.306388],[1191369600000, 10.310356],[1191456000000, 10.305456],[1191542400000, 10.273297],[1191628800000, 10.303356],[1191715200000, 10.303356],[1191801600000, 10.303356],[1191888000000, 10.292868],[1191974400000, 10.245985],[1192060800000, 10.314366],[1192147200000, 10.287654],[1192233600000, 10.246764],[1192320000000, 10.246764],[1192406400000, 10.246764],[1192492800000, 10.307956],[1192579200000, 10.259512],[1192665600000, 10.283952],[1192752000000, 10.345265],[1192838400000, 10.347684],[1192924800000, 10.347684],[1193011200000, 10.347684],[1193097600000, 10.256387],[1193184000000, 10.346058],[1193270400000, 10.332351],[1193356800000, 10.357694],[1193443200000, 10.362225],[1193529600000, 10.362225],[1193616000000, 10.362225],[1193702400000, 10.397675],[1193788800000, 10.435363]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });