$(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: 'Курс HUF, грн'}, 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: 'Курс HUF', data: [[1488326400000,0.093383],[1488412800000,0.092968],[1488499200000,0.092381],[1488585600000,0.09252],[1488672000000,0.09252],[1488758400000,0.09252],[1488844800000,0.09246],[1488931200000,0.092118],[1489017600000,0.092118],[1489104000000,0.091249],[1489190400000,0.091059],[1489276800000,0.091059],[1489363200000,0.091059],[1489449600000,0.091789],[1489536000000,0.091873],[1489622400000,0.09186],[1489708800000,0.093335],[1489795200000,0.09364],[1489881600000,0.09364],[1489968000000,0.09364],[1490054400000,0.093668],[1490140800000,0.094082],[1490227200000,0.094101],[1490313600000,0.094381],[1490400000000,0.0946],[1490486400000,0.0946],[1490572800000,0.0946],[1490659200000,0.095314],[1490745600000,0.09525],[1490832000000,0.093866],[1490918400000,0.093629]], 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.093383],[1488326400000, 0.093383],[1488412800000, 0.092968],[1488499200000, 0.092381],[1488585600000, 0.092520],[1488672000000, 0.092520],[1488758400000, 0.092520],[1488844800000, 0.092460],[1488931200000, 0.092118],[1489017600000, 0.092118],[1489104000000, 0.091249],[1489190400000, 0.091059],[1489276800000, 0.091059],[1489363200000, 0.091059],[1489449600000, 0.091789],[1489536000000, 0.091873],[1489622400000, 0.091860],[1489708800000, 0.093335],[1489795200000, 0.093640],[1489881600000, 0.093640],[1489968000000, 0.093640],[1490054400000, 0.093668],[1490140800000, 0.094082],[1490227200000, 0.094101],[1490313600000, 0.094381],[1490400000000, 0.094600],[1490486400000, 0.094600],[1490572800000, 0.094600],[1490659200000, 0.095314],[1490745600000, 0.095250],[1490832000000, 0.093866],[1490918400000, 0.093629]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });