$(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: 'Курс SEK, грн'}, 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: 'Курс SEK', data: [[1420070400000,1.99856],[1420156800000,1.99856],[1420243200000,1.99856],[1420329600000,1.99856],[1420416000000,1.99856],[1420502400000,1.99856],[1420588800000,1.98155],[1420675200000,1.98155],[1420761600000,null],[1420848000000,1.96461],[1420934400000,1.96461],[1421020800000,1.96461],[1421107200000,1.96188],[1421193600000,1.95078],[1421280000000,null],[1421366400000,1.95518],[1421452800000,1.95498],[1421539200000,1.95542],[1421625600000,1.95542],[1421712000000,1.94696],[1421798400000,1.94562],[1421884800000,1.93826],[1421971200000,null],[1422057600000,1.94346],[1422144000000,1.94346],[1422230400000,1.94346],[1422316800000,1.89699],[1422403200000,1.90942],[1422489600000,1.9274],[1422576000000,1.94829],[1422662400000,1.9607]], 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, 1.998556],[1420070400000, 1.998556],[1420156800000, 1.998556],[1420243200000, 1.998556],[1420329600000, 1.998556],[1420416000000, 1.998556],[1420502400000, 1.998556],[1420588800000, 1.981551],[1420675200000, 1.981551],[1420848000000, 1.964608],[1420934400000, 1.964608],[1421020800000, 1.964608],[1421107200000, 1.961878],[1421193600000, 1.950785],[1421366400000, 1.955179],[1421452800000, 1.954980],[1421539200000, 1.955424],[1421625600000, 1.955424],[1421712000000, 1.946963],[1421798400000, 1.945623],[1421884800000, 1.938255],[1422057600000, 1.943457],[1422144000000, 1.943457],[1422230400000, 1.943457],[1422316800000, 1.896991],[1422403200000, 1.909418],[1422489600000, 1.927402],[1422576000000, 1.948286],[1422662400000, 1.960702]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });