$(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: 'Курс PLN, грн'}, 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: 'Курс PLN', data: [[1501545600000,7.13527],[1501632000000,7.1758],[1501718400000,7.20312],[1501804800000,7.21923],[1501891200000,7.23187],[1501977600000,7.23187],[1502064000000,7.23187],[1502150400000,7.15425],[1502236800000,7.14397],[1502323200000,7.07228],[1502409600000,7.05627],[1502496000000,7.04883],[1502582400000,7.04883],[1502668800000,7.04883],[1502755200000,7.06197],[1502841600000,7.02545],[1502928000000,7.005],[1503014400000,7.0076],[1503100800000,6.99085],[1503187200000,6.99085],[1503273600000,6.99085],[1503360000000,null],[1503446400000,6.99687],[1503532800000,7.03445],[1503619200000,7.03445],[1503705600000,7.03445],[1503792000000,7.03445],[1503878400000,7.03445],[1503964800000,7.1458],[1504051200000,7.18221],[1504137600000,7.1554]], 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, 7.135272],[1501545600000, 7.135272],[1501632000000, 7.175804],[1501718400000, 7.203116],[1501804800000, 7.219231],[1501891200000, 7.231866],[1501977600000, 7.231866],[1502064000000, 7.231866],[1502150400000, 7.154253],[1502236800000, 7.143968],[1502323200000, 7.072279],[1502409600000, 7.056274],[1502496000000, 7.048826],[1502582400000, 7.048826],[1502668800000, 7.048826],[1502755200000, 7.061966],[1502841600000, 7.025454],[1502928000000, 7.004995],[1503014400000, 7.007598],[1503100800000, 6.990850],[1503187200000, 6.990850],[1503273600000, 6.990850],[1503446400000, 6.996871],[1503532800000, 7.034454],[1503619200000, 7.034454],[1503705600000, 7.034454],[1503792000000, 7.034454],[1503878400000, 7.034454],[1503964800000, 7.145804],[1504051200000, 7.182212],[1504137600000, 7.155402]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });