$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1480550400000,0.39177],[1480636800000,0.40261],[1480723200000,0.4037],[1480809600000,0.4037],[1480896000000,0.4037],[1480982400000,0.40873],[1481068800000,0.40858],[1481155200000,0.40713],[1481241600000,0.40657],[1481328000000,0.40882],[1481414400000,0.40882],[1481500800000,0.40882],[1481587200000,0.42499],[1481673600000,0.42753],[1481760000000,0.43263],[1481846400000,0.42667],[1481932800000,0.42642],[1482019200000,0.42642],[1482105600000,0.42642],[1482192000000,0.42717],[1482278400000,0.42835],[1482364800000,0.43249],[1482451200000,0.43188],[1482537600000,0.43164],[1482624000000,0.43164],[1482710400000,0.43164],[1482796800000,0.43287],[1482883200000,0.43287],[1482969600000,0.44329],[1483056000000,0.45113],[1483142400000,0.45113]], 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: [[1480550400000, 0.391770],[1480550400000, 0.391770],[1480636800000, 0.402610],[1480723200000, 0.403700],[1480809600000, 0.403700],[1480896000000, 0.403700],[1480982400000, 0.408730],[1481068800000, 0.408580],[1481155200000, 0.407130],[1481241600000, 0.406570],[1481328000000, 0.408820],[1481414400000, 0.408820],[1481500800000, 0.408820],[1481587200000, 0.424990],[1481673600000, 0.427530],[1481760000000, 0.432630],[1481846400000, 0.426670],[1481932800000, 0.426420],[1482019200000, 0.426420],[1482105600000, 0.426420],[1482192000000, 0.427170],[1482278400000, 0.428350],[1482364800000, 0.432490],[1482451200000, 0.431880],[1482537600000, 0.431640],[1482624000000, 0.431640],[1482710400000, 0.431640],[1482796800000, 0.432870],[1482883200000, 0.432870],[1482969600000, 0.443290],[1483056000000, 0.451130],[1483142400000, 0.451130]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });