$(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: 'Курс AUD, грн'}, 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: 'Курс AUD', data: [[1420070400000,12.8528],[1420156800000,12.8528],[1420243200000,12.8528],[1420329600000,12.8528],[1420416000000,12.8528],[1420502400000,12.8528],[1420588800000,12.7424],[1420675200000,12.7424],[1420761600000,null],[1420848000000,12.7663],[1420934400000,12.7663],[1421020800000,12.7663],[1421107200000,12.8325],[1421193600000,12.8379],[1421280000000,null],[1421366400000,12.8352],[1421452800000,13.078],[1421539200000,13.0359],[1421625600000,13.0359],[1421712000000,12.9795],[1421798400000,12.9501],[1421884800000,12.9414],[1421971200000,null],[1422057600000,12.8311],[1422144000000,12.8311],[1422230400000,12.8311],[1422316800000,12.4949],[1422403200000,12.5659],[1422489600000,12.6059],[1422576000000,12.715],[1422662400000,12.5783]], 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, 12.852785],[1420070400000, 12.852785],[1420156800000, 12.852785],[1420243200000, 12.852785],[1420329600000, 12.852785],[1420416000000, 12.852785],[1420502400000, 12.852785],[1420588800000, 12.742360],[1420675200000, 12.742360],[1420848000000, 12.766300],[1420934400000, 12.766300],[1421020800000, 12.766300],[1421107200000, 12.832541],[1421193600000, 12.837934],[1421366400000, 12.835177],[1421452800000, 13.078031],[1421539200000, 13.035929],[1421625600000, 13.035929],[1421712000000, 12.979526],[1421798400000, 12.950083],[1421884800000, 12.941420],[1422057600000, 12.831110],[1422144000000, 12.831110],[1422230400000, 12.831110],[1422316800000, 12.494914],[1422403200000, 12.565896],[1422489600000, 12.605912],[1422576000000, 12.715048],[1422662400000, 12.578307]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });