$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1501545600000,36.397],[1501632000000,36.5082],[1501718400000,36.592],[1501804800000,36.5615],[1501891200000,36.5398],[1501977600000,36.5398],[1502064000000,36.5398],[1502150400000,36.3426],[1502236800000,36.3059],[1502323200000,36.23],[1502409600000,36.1864],[1502496000000,36.2352],[1502582400000,36.2352],[1502668800000,36.2352],[1502755200000,36.1584],[1502841600000,36.026],[1502928000000,35.9247],[1503014400000,35.8507],[1503100800000,35.9168],[1503187200000,35.9168],[1503273600000,35.9168],[1503360000000,null],[1503446400000,35.8537],[1503532800000,36.0095],[1503619200000,36.0095],[1503705600000,36.0095],[1503792000000,36.0095],[1503878400000,36.0095],[1503964800000,36.1713],[1504051200000,36.2],[1504137600000,36.2779]], 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, 36.397049],[1501545600000, 36.397049],[1501632000000, 36.508192],[1501718400000, 36.591960],[1501804800000, 36.561538],[1501891200000, 36.539762],[1501977600000, 36.539762],[1502064000000, 36.539762],[1502150400000, 36.342620],[1502236800000, 36.305934],[1502323200000, 36.229959],[1502409600000, 36.186434],[1502496000000, 36.235237],[1502582400000, 36.235237],[1502668800000, 36.235237],[1502755200000, 36.158373],[1502841600000, 36.026008],[1502928000000, 35.924663],[1503014400000, 35.850748],[1503100800000, 35.916846],[1503187200000, 35.916846],[1503273600000, 35.916846],[1503446400000, 35.853732],[1503532800000, 36.009461],[1503619200000, 36.009461],[1503705600000, 36.009461],[1503792000000, 36.009461],[1503878400000, 36.009461],[1503964800000, 36.171329],[1504051200000, 36.200018],[1504137600000, 36.277891]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });