$(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: 'Курс DKK, грн'}, 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: 'Курс DKK', data: [[1272672000000,1.41798],[1272758400000,1.41798],[1272844800000,1.41798],[1272931200000,1.41798],[1273017600000,1.41798],[1273104000000,1.37631],[1273190400000,1.35527],[1273276800000,1.3572],[1273363200000,1.3572],[1273449600000,1.3572],[1273536000000,1.3572],[1273622400000,1.35227],[1273708800000,1.35112],[1273795200000,1.34112],[1273881600000,1.33095],[1273968000000,null],[1274054400000,1.33095],[1274140800000,1.31546],[1274227200000,1.3239],[1274313600000,1.307],[1274400000000,1.31353],[1274486400000,1.33079],[1274572800000,1.33079],[1274659200000,1.33079],[1274745600000,1.33079],[1274832000000,1.30199],[1274918400000,1.31115],[1275004800000,1.30547],[1275091200000,1.31895],[1275177600000,1.31895],[1275264000000,1.31895]], 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: [[1272672000000, 1.417983],[1272672000000, 1.417983],[1272758400000, 1.417983],[1272844800000, 1.417983],[1272931200000, 1.417983],[1273017600000, 1.417983],[1273104000000, 1.376306],[1273190400000, 1.355272],[1273276800000, 1.357205],[1273363200000, 1.357205],[1273449600000, 1.357205],[1273536000000, 1.357205],[1273622400000, 1.352275],[1273708800000, 1.351124],[1273795200000, 1.341121],[1273881600000, 1.330945],[1274054400000, 1.330945],[1274140800000, 1.315462],[1274227200000, 1.323895],[1274313600000, 1.306996],[1274400000000, 1.313531],[1274486400000, 1.330785],[1274572800000, 1.330785],[1274659200000, 1.330785],[1274745600000, 1.330785],[1274832000000, 1.301992],[1274918400000, 1.311153],[1275004800000, 1.305475],[1275091200000, 1.318951],[1275177600000, 1.318951],[1275264000000, 1.318951]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });