$(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: [[1107216000000,10.002],[1107302400000,9.9758],[1107388800000,10.0024],[1107475200000,9.99742],[1107561600000,9.97971],[1107648000000,9.97971],[1107734400000,9.97971],[1107820800000,9.91403],[1107907200000,9.83864],[1107993600000,9.86236],[1108080000000,9.83862],[1108166400000,9.87731],[1108252800000,9.87731],[1108339200000,9.87731],[1108425600000,9.99816],[1108512000000,10.0184],[1108598400000,9.99498],[1108684800000,9.99791],[1108771200000,10.0268],[1108857600000,10.0268],[1108944000000,10.0268],[1109030400000,10.0391],[1109116800000,10.113],[1109203200000,10.1148],[1109289600000,10.1253],[1109376000000,10.114],[1109462400000,10.114],[1109548800000,10.114]], 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: [[1107216000000, 10.001986],[1107216000000, 10.001986],[1107302400000, 9.975798],[1107388800000, 10.002428],[1107475200000, 9.997418],[1107561600000, 9.979712],[1107648000000, 9.979712],[1107734400000, 9.979712],[1107820800000, 9.914027],[1107907200000, 9.838638],[1107993600000, 9.862357],[1108080000000, 9.838615],[1108166400000, 9.877307],[1108252800000, 9.877307],[1108339200000, 9.877307],[1108425600000, 9.998155],[1108512000000, 10.018445],[1108598400000, 9.994976],[1108684800000, 9.997911],[1108771200000, 10.026842],[1108857600000, 10.026842],[1108944000000, 10.026842],[1109030400000, 10.039145],[1109116800000, 10.112979],[1109203200000, 10.114792],[1109289600000, 10.125332],[1109376000000, 10.114003],[1109462400000, 10.114003],[1109548800000, 10.114003]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });