$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1493596800000,26.8037],[1493683200000,26.8037],[1493769600000,26.8037],[1493856000000,26.7859],[1493942400000,26.691],[1494028800000,26.8077],[1494115200000,26.8077],[1494201600000,26.8077],[1494288000000,26.8077],[1494374400000,26.8077],[1494460800000,26.294],[1494547200000,26.2069],[1494633600000,26.2642],[1494720000000,26.2642],[1494806400000,26.2642],[1494892800000,26.5397],[1494979200000,26.677],[1495065600000,26.8866],[1495152000000,27.0124],[1495238400000,26.9926],[1495324800000,26.9926],[1495411200000,26.9926],[1495497600000,27.1434],[1495584000000,27.0349],[1495670400000,26.9006],[1495756800000,27.0237],[1495843200000,27.0906],[1495929600000,27.0906],[1496016000000,27.0906],[1496102400000,27.085],[1496188800000,27.0054]], 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: [[1493596800000, 26.803708],[1493596800000, 26.803708],[1493683200000, 26.803708],[1493769600000, 26.803708],[1493856000000, 26.785912],[1493942400000, 26.690962],[1494028800000, 26.807721],[1494115200000, 26.807721],[1494201600000, 26.807721],[1494288000000, 26.807721],[1494374400000, 26.807721],[1494460800000, 26.293968],[1494547200000, 26.206919],[1494633600000, 26.264218],[1494720000000, 26.264218],[1494806400000, 26.264218],[1494892800000, 26.539675],[1494979200000, 26.677038],[1495065600000, 26.886638],[1495152000000, 27.012380],[1495238400000, 26.992621],[1495324800000, 26.992621],[1495411200000, 26.992621],[1495497600000, 27.143449],[1495584000000, 27.034920],[1495670400000, 26.900600],[1495756800000, 27.023714],[1495843200000, 27.090626],[1495929600000, 27.090626],[1496016000000, 27.090626],[1496102400000, 27.085008],[1496188800000, 27.005374]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });