$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1501545600000,20.7316],[1501632000000,20.725],[1501718400000,20.6469],[1501804800000,20.5341],[1501891200000,20.5565],[1501977600000,20.5565],[1502064000000,20.5565],[1502150400000,20.3346],[1502236800000,20.3225],[1502323200000,20.2873],[1502409600000,20.1985],[1502496000000,20.2133],[1502582400000,20.2133],[1502668800000,20.2133],[1502755200000,20.1913],[1502841600000,20.0953],[1502928000000,20.087],[1503014400000,20.2037],[1503100800000,20.1398],[1503187200000,20.1398],[1503273600000,20.1398],[1503360000000,null],[1503446400000,20.2345],[1503532800000,20.2999],[1503619200000,20.2999],[1503705600000,20.2999],[1503792000000,20.2999],[1503878400000,20.2999],[1503964800000,20.4679],[1504051200000,20.3836],[1504137600000,20.3734]], 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, 20.731563],[1501545600000, 20.731563],[1501632000000, 20.724961],[1501718400000, 20.646893],[1501804800000, 20.534079],[1501891200000, 20.556532],[1501977600000, 20.556532],[1502064000000, 20.556532],[1502150400000, 20.334551],[1502236800000, 20.322510],[1502323200000, 20.287337],[1502409600000, 20.198543],[1502496000000, 20.213295],[1502582400000, 20.213295],[1502668800000, 20.213295],[1502755200000, 20.191329],[1502841600000, 20.095334],[1502928000000, 20.086970],[1503014400000, 20.203729],[1503100800000, 20.139801],[1503187200000, 20.139801],[1503273600000, 20.139801],[1503446400000, 20.234500],[1503532800000, 20.299858],[1503619200000, 20.299858],[1503705600000, 20.299858],[1503792000000, 20.299858],[1503878400000, 20.299858],[1503964800000, 20.467877],[1504051200000, 20.383591],[1504137600000, 20.373358]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });