$(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: [[1501545600000,0.23377],[1501632000000,0.233987],[1501718400000,0.233944],[1501804800000,0.234516],[1501891200000,0.234716],[1501977600000,0.234716],[1502064000000,0.234716],[1502150400000,0.232593],[1502236800000,0.233293],[1502323200000,0.234406],[1502409600000,0.234097],[1502496000000,0.235426],[1502582400000,0.235426],[1502668800000,0.235426],[1502755200000,0.233884],[1502841600000,0.231839],[1502928000000,0.230724],[1503014400000,0.231619],[1503100800000,0.233758],[1503187200000,0.233758],[1503273600000,0.233758],[1503360000000,null],[1503446400000,0.232729],[1503532800000,0.234179],[1503619200000,0.234179],[1503705600000,0.234179],[1503792000000,0.234179],[1503878400000,0.234179],[1503964800000,0.233448],[1504051200000,0.234226],[1504137600000,0.232233]], 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: [[1501545600000, 0.233770],[1501545600000, 0.233770],[1501632000000, 0.233987],[1501718400000, 0.233944],[1501804800000, 0.234516],[1501891200000, 0.234716],[1501977600000, 0.234716],[1502064000000, 0.234716],[1502150400000, 0.232593],[1502236800000, 0.233293],[1502323200000, 0.234406],[1502409600000, 0.234097],[1502496000000, 0.235426],[1502582400000, 0.235426],[1502668800000, 0.235426],[1502755200000, 0.233884],[1502841600000, 0.231839],[1502928000000, 0.230724],[1503014400000, 0.231619],[1503100800000, 0.233758],[1503187200000, 0.233758],[1503273600000, 0.233758],[1503446400000, 0.232729],[1503532800000, 0.234179],[1503619200000, 0.234179],[1503705600000, 0.234179],[1503792000000, 0.234179],[1503878400000, 0.234179],[1503964800000, 0.233448],[1504051200000, 0.234226],[1504137600000, 0.232233]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });