$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1375315200000,0.24197],[1375401600000,0.2424],[1375488000000,0.2415],[1375574400000,null],[1375660800000,0.2415],[1375747200000,0.24309],[1375833600000,0.24266],[1375920000000,0.24232],[1376006400000,0.24265],[1376092800000,0.24324],[1376179200000,0.24324],[1376265600000,0.24324],[1376352000000,0.24301],[1376438400000,0.2419],[1376524800000,0.24106],[1376611200000,0.24221],[1376697600000,0.24264],[1376784000000,0.24264],[1376870400000,0.24264],[1376956800000,0.24278],[1377043200000,0.24221],[1377129600000,0.24241],[1377216000000,0.24082],[1377302400000,0.24181],[1377388800000,0.24181],[1377475200000,0.24181],[1377561600000,0.24181],[1377648000000,0.24132],[1377734400000,0.2409],[1377820800000,0.24091],[1377907200000,0.24041]], 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: [[1375315200000, 0.241970],[1375315200000, 0.241970],[1375401600000, 0.242400],[1375488000000, 0.241500],[1375660800000, 0.241500],[1375747200000, 0.243090],[1375833600000, 0.242660],[1375920000000, 0.242320],[1376006400000, 0.242650],[1376092800000, 0.243240],[1376179200000, 0.243240],[1376265600000, 0.243240],[1376352000000, 0.243010],[1376438400000, 0.241900],[1376524800000, 0.241060],[1376611200000, 0.242210],[1376697600000, 0.242640],[1376784000000, 0.242640],[1376870400000, 0.242640],[1376956800000, 0.242780],[1377043200000, 0.242210],[1377129600000, 0.242410],[1377216000000, 0.240820],[1377302400000, 0.241810],[1377388800000, 0.241810],[1377475200000, 0.241810],[1377561600000, 0.241810],[1377648000000, 0.241320],[1377734400000, 0.240900],[1377820800000, 0.240910],[1377907200000, 0.240410]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });