$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1420070400000,11.9207],[1420156800000,11.9207],[1420243200000,11.9207],[1420329600000,11.9207],[1420416000000,11.9207],[1420502400000,11.9207],[1420588800000,11.8099],[1420675200000,11.8099],[1420761600000,null],[1420848000000,11.7654],[1420934400000,11.7654],[1421020800000,11.7654],[1421107200000,11.7898],[1421193600000,11.7987],[1421280000000,null],[1421366400000,11.814],[1421452800000,11.9493],[1421539200000,11.9753],[1421625600000,11.9753],[1421712000000,11.9235],[1421798400000,11.8447],[1421884800000,11.7902],[1421971200000,null],[1422057600000,11.853],[1422144000000,11.853],[1422230400000,11.853],[1422316800000,11.7572],[1422403200000,11.8308],[1422489600000,11.8296],[1422576000000,11.7945],[1422662400000,11.9455]], 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, 11.920731],[1420070400000, 11.920731],[1420156800000, 11.920731],[1420243200000, 11.920731],[1420329600000, 11.920731],[1420416000000, 11.920731],[1420502400000, 11.920731],[1420588800000, 11.809895],[1420675200000, 11.809895],[1420848000000, 11.765450],[1420934400000, 11.765450],[1421020800000, 11.765450],[1421107200000, 11.789780],[1421193600000, 11.798692],[1421366400000, 11.814012],[1421452800000, 11.949260],[1421539200000, 11.975270],[1421625600000, 11.975270],[1421712000000, 11.923456],[1421798400000, 11.844721],[1421884800000, 11.790200],[1422057600000, 11.852964],[1422144000000, 11.852964],[1422230400000, 11.852964],[1422316800000, 11.757234],[1422403200000, 11.830786],[1422489600000, 11.829627],[1422576000000, 11.794460],[1422662400000, 11.945488]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });