$(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: 'Курс CNY, грн'}, 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: 'Курс CNY', data: [[1501545600000,3.84302],[1501632000000,3.84805],[1501718400000,3.85149],[1501804800000,3.85075],[1501891200000,3.84547],[1501977600000,3.84547],[1502064000000,3.84547],[1502150400000,3.83679],[1502236800000,3.84023],[1502323200000,3.85329],[1502409600000,3.86103],[1502496000000,3.85531],[1502582400000,3.85531],[1502668800000,3.85531],[1502755200000,3.84136],[1502841600000,3.83022],[1502928000000,3.81994],[1503014400000,3.81959],[1503100800000,3.82037],[1503187200000,3.82037],[1503273600000,3.82037],[1503360000000,null],[1503446400000,3.81987],[1503532800000,3.83554],[1503619200000,3.83554],[1503705600000,3.83554],[1503792000000,3.83554],[1503878400000,3.83554],[1503964800000,3.85261],[1504051200000,3.85705],[1504137600000,3.87996]], 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, 3.843023],[1501545600000, 3.843023],[1501632000000, 3.848052],[1501718400000, 3.851488],[1501804800000, 3.850752],[1501891200000, 3.845474],[1501977600000, 3.845474],[1502064000000, 3.845474],[1502150400000, 3.836790],[1502236800000, 3.840234],[1502323200000, 3.853289],[1502409600000, 3.861030],[1502496000000, 3.855307],[1502582400000, 3.855307],[1502668800000, 3.855307],[1502755200000, 3.841362],[1502841600000, 3.830219],[1502928000000, 3.819940],[1503014400000, 3.819594],[1503100800000, 3.820371],[1503187200000, 3.820371],[1503273600000, 3.820371],[1503446400000, 3.819865],[1503532800000, 3.835543],[1503619200000, 3.835543],[1503705600000, 3.835543],[1503792000000, 3.835543],[1503878400000, 3.835543],[1503964800000, 3.852612],[1504051200000, 3.857048],[1504137600000, 3.879960]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });