$(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: 'Курс DKK, грн'}, 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: 'Курс DKK', data: [[1501545600000,4.07723],[1501632000000,4.10687],[1501718400000,4.11944],[1501804800000,4.12747],[1501891200000,4.12302],[1501977600000,4.12302],[1502064000000,4.12302],[1502150400000,4.08938],[1502236800000,4.08685],[1502323200000,4.05654],[1502409600000,4.05242],[1502496000000,4.06495],[1502582400000,4.06495],[1502668800000,4.06495],[1502755200000,4.06591],[1502841600000,4.04225],[1502928000000,4.02674],[1503014400000,4.01254],[1503100800000,4.02428],[1503187200000,4.02428],[1503273600000,4.02428],[1503360000000,null],[1503446400000,4.02802],[1503532800000,4.05271],[1503619200000,4.05271],[1503705600000,4.05271],[1503792000000,4.05271],[1503878400000,4.05271],[1503964800000,4.09011],[1504051200000,4.12012],[1504137600000,4.09735]], 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, 4.077230],[1501545600000, 4.077230],[1501632000000, 4.106869],[1501718400000, 4.119442],[1501804800000, 4.127466],[1501891200000, 4.123023],[1501977600000, 4.123023],[1502064000000, 4.123023],[1502150400000, 4.089381],[1502236800000, 4.086850],[1502323200000, 4.056540],[1502409600000, 4.052417],[1502496000000, 4.064946],[1502582400000, 4.064946],[1502668800000, 4.064946],[1502755200000, 4.065906],[1502841600000, 4.042250],[1502928000000, 4.026740],[1503014400000, 4.012541],[1503100800000, 4.024277],[1503187200000, 4.024277],[1503273600000, 4.024277],[1503446400000, 4.028020],[1503532800000, 4.052711],[1503619200000, 4.052711],[1503705600000, 4.052711],[1503792000000, 4.052711],[1503878400000, 4.052711],[1503964800000, 4.090109],[1504051200000, 4.120120],[1504137600000, 4.097348]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });