$(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: [[1406851200000,20.4768],[1406937600000,20.1888],[1407024000000,20.1888],[1407110400000,20.1888],[1407196800000,20.4989],[1407283200000,20.7048],[1407369600000,20.8254],[1407456000000,20.9698],[1407542400000,21.2251],[1407628800000,21.2251],[1407715200000,21.2251],[1407801600000,21.5532],[1407888000000,22.0515],[1407974400000,21.9956],[1408060800000,21.8713],[1408147200000,21.9138],[1408233600000,21.9138],[1408320000000,21.9138],[1408406400000,21.8195],[1408492800000,21.6626],[1408579200000,21.9997],[1408665600000,21.8256],[1408752000000,22.1773],[1408838400000,22.1773],[1408924800000,22.1773],[1409011200000,22.1773],[1409097600000,22.6607],[1409184000000,23.0199],[1409270400000,22.3005],[1409356800000,22.5673]], 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: [[1406851200000, 20.476850],[1406851200000, 20.476850],[1406937600000, 20.188789],[1407024000000, 20.188789],[1407110400000, 20.188789],[1407196800000, 20.498942],[1407283200000, 20.704750],[1407369600000, 20.825418],[1407456000000, 20.969830],[1407542400000, 21.225077],[1407628800000, 21.225077],[1407715200000, 21.225077],[1407801600000, 21.553181],[1407888000000, 22.051540],[1407974400000, 21.995585],[1408060800000, 21.871317],[1408147200000, 21.913788],[1408233600000, 21.913788],[1408320000000, 21.913788],[1408406400000, 21.819546],[1408492800000, 21.662625],[1408579200000, 21.999747],[1408665600000, 21.825624],[1408752000000, 22.177339],[1408838400000, 22.177339],[1408924800000, 22.177339],[1409011200000, 22.177339],[1409097600000, 22.660674],[1409184000000, 23.019877],[1409270400000, 22.300469],[1409356800000, 22.567266]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });