$(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: [[1488326400000,0.24224],[1488412800000,0.238897],[1488499200000,0.236891],[1488585600000,0.237122],[1488672000000,0.237122],[1488758400000,0.237122],[1488844800000,0.23742],[1488931200000,0.236401],[1489017600000,0.236401],[1489104000000,0.234736],[1489190400000,0.232273],[1489276800000,0.232273],[1489363200000,0.232273],[1489449600000,0.234391],[1489536000000,0.234193],[1489622400000,0.234481],[1489708800000,0.238072],[1489795200000,0.237818],[1489881600000,0.237818],[1489968000000,0.237818],[1490054400000,0.23855],[1490140800000,0.238563],[1490227200000,0.242295],[1490313600000,0.244508],[1490400000000,0.244051],[1490486400000,0.244051],[1490572800000,0.244051],[1490659200000,0.24654],[1490745600000,0.245747],[1490832000000,0.243876],[1490918400000,0.242601]], 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: [[1488326400000, 0.242240],[1488326400000, 0.242240],[1488412800000, 0.238897],[1488499200000, 0.236891],[1488585600000, 0.237122],[1488672000000, 0.237122],[1488758400000, 0.237122],[1488844800000, 0.237420],[1488931200000, 0.236401],[1489017600000, 0.236401],[1489104000000, 0.234736],[1489190400000, 0.232273],[1489276800000, 0.232273],[1489363200000, 0.232273],[1489449600000, 0.234391],[1489536000000, 0.234193],[1489622400000, 0.234481],[1489708800000, 0.238072],[1489795200000, 0.237818],[1489881600000, 0.237818],[1489968000000, 0.237818],[1490054400000, 0.238550],[1490140800000, 0.238563],[1490227200000, 0.242295],[1490313600000, 0.244508],[1490400000000, 0.244051],[1490486400000, 0.244051],[1490572800000, 0.244051],[1490659200000, 0.246540],[1490745600000, 0.245747],[1490832000000, 0.243876],[1490918400000, 0.242601]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });