$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1420070400000,15.7686],[1420156800000,15.7686],[1420243200000,15.7686],[1420329600000,15.7686],[1420416000000,15.7686],[1420502400000,15.7686],[1420588800000,15.7796],[1420675200000,15.7796],[1420761600000,null],[1420848000000,15.7496],[1420934400000,15.7496],[1421020800000,15.7496],[1421107200000,15.758],[1421193600000,15.7679],[1421280000000,null],[1421366400000,15.7761],[1421452800000,15.798],[1421539200000,15.8764],[1421625600000,15.8764],[1421712000000,15.8077],[1421798400000,15.7722],[1421884800000,15.7848],[1421971200000,null],[1422057600000,15.792],[1422144000000,15.792],[1422230400000,15.792],[1422316800000,15.81],[1422403200000,15.8996],[1422489600000,15.8694],[1422576000000,15.9543],[1422662400000,16.1578]], 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: [[1420070400000, 15.768556],[1420070400000, 15.768556],[1420156800000, 15.768556],[1420243200000, 15.768556],[1420329600000, 15.768556],[1420416000000, 15.768556],[1420502400000, 15.768556],[1420588800000, 15.779566],[1420675200000, 15.779566],[1420848000000, 15.749587],[1420934400000, 15.749587],[1421020800000, 15.749587],[1421107200000, 15.757965],[1421193600000, 15.767906],[1421366400000, 15.776095],[1421452800000, 15.797967],[1421539200000, 15.876430],[1421625600000, 15.876430],[1421712000000, 15.807737],[1421798400000, 15.772208],[1421884800000, 15.784755],[1422057600000, 15.792050],[1422144000000, 15.792050],[1422230400000, 15.792050],[1422316800000, 15.810005],[1422403200000, 15.899591],[1422489600000, 15.869445],[1422576000000, 15.954336],[1422662400000, 16.157817]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });