$(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: 'Курс JPY, грн'}, 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: 'Курс JPY', data: [[1485907200000,0.238839],[1485993600000,0.238294],[1486080000000,0.24026],[1486166400000,0.239398],[1486252800000,0.239398],[1486339200000,0.239398],[1486425600000,0.242799],[1486512000000,0.240591],[1486598400000,0.240407],[1486684800000,0.240714],[1486771200000,0.239686],[1486857600000,0.239686],[1486944000000,0.239686],[1487030400000,0.238824],[1487116800000,0.240197],[1487203200000,0.235761],[1487289600000,0.237688],[1487376000000,0.239697],[1487462400000,0.239697],[1487548800000,0.239697],[1487635200000,0.238865],[1487721600000,0.237912],[1487808000000,0.238712],[1487894400000,0.238458],[1487980800000,0.240419],[1488067200000,0.240419],[1488153600000,0.240419],[1488240000000,0.24095]], 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: [[1485907200000, 0.238839],[1485907200000, 0.238839],[1485993600000, 0.238294],[1486080000000, 0.240260],[1486166400000, 0.239398],[1486252800000, 0.239398],[1486339200000, 0.239398],[1486425600000, 0.242799],[1486512000000, 0.240591],[1486598400000, 0.240407],[1486684800000, 0.240714],[1486771200000, 0.239686],[1486857600000, 0.239686],[1486944000000, 0.239686],[1487030400000, 0.238824],[1487116800000, 0.240197],[1487203200000, 0.235761],[1487289600000, 0.237688],[1487376000000, 0.239697],[1487462400000, 0.239697],[1487548800000, 0.239697],[1487635200000, 0.238865],[1487721600000, 0.237912],[1487808000000, 0.238712],[1487894400000, 0.238458],[1487980800000, 0.240419],[1488067200000, 0.240419],[1488153600000, 0.240419],[1488240000000, 0.240950]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });