$(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: [[1272672000000,1.09683],[1272758400000,1.09683],[1272844800000,1.09683],[1272931200000,1.09683],[1273017600000,1.09683],[1273104000000,1.06239],[1273190400000,1.03864],[1273276800000,1.03473],[1273363200000,1.03473],[1273449600000,1.03473],[1273536000000,1.03473],[1273622400000,1.04225],[1273708800000,1.04977],[1273795200000,1.04677],[1273881600000,1.03411],[1273968000000,null],[1274054400000,1.03411],[1274140800000,1.01918],[1274227200000,1.03096],[1274313600000,1.01221],[1274400000000,1.00377],[1274486400000,1.00748],[1274572800000,1.00748],[1274659200000,1.00748],[1274745600000,1.00748],[1274832000000,0.985738],[1274918400000,1.00581],[1275004800000,1.00478],[1275091200000,1.0162],[1275177600000,1.0162],[1275264000000,1.0162]], 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.096827],[1272672000000, 1.096827],[1272758400000, 1.096827],[1272844800000, 1.096827],[1272931200000, 1.096827],[1273017600000, 1.096827],[1273104000000, 1.062387],[1273190400000, 1.038642],[1273276800000, 1.034727],[1273363200000, 1.034727],[1273449600000, 1.034727],[1273536000000, 1.034727],[1273622400000, 1.042253],[1273708800000, 1.049769],[1273795200000, 1.046768],[1273881600000, 1.034105],[1274054400000, 1.034105],[1274140800000, 1.019180],[1274227200000, 1.030960],[1274313600000, 1.012213],[1274400000000, 1.003774],[1274486400000, 1.007476],[1274572800000, 1.007476],[1274659200000, 1.007476],[1274745600000, 1.007476],[1274832000000, 0.985738],[1274918400000, 1.005812],[1275004800000, 1.004781],[1275091200000, 1.016198],[1275177600000, 1.016198],[1275264000000, 1.016198]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });