$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1170288000000,4.03464],[1170374400000,4.06498],[1170460800000,4.06498],[1170547200000,4.06498],[1170633600000,4.06498],[1170720000000,4.03657],[1170806400000,4.06353],[1170892800000,4.07078],[1170979200000,4.04168],[1171065600000,4.04242],[1171152000000,4.04242],[1171238400000,4.04242],[1171324800000,4.0293],[1171411200000,4.05107],[1171497600000,4.06098],[1171584000000,4.07831],[1171670400000,4.08654],[1171756800000,4.08654],[1171843200000,4.08654],[1171929600000,4.08983],[1172016000000,4.08355],[1172102400000,4.08079],[1172188800000,4.06519],[1172275200000,4.07863],[1172361600000,null],[1172448000000,4.07863],[1172534400000,4.10159],[1172620800000,4.1285]], 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: [[1170288000000, 4.034643],[1170288000000, 4.034643],[1170374400000, 4.064977],[1170460800000, 4.064977],[1170547200000, 4.064977],[1170633600000, 4.064977],[1170720000000, 4.036565],[1170806400000, 4.063525],[1170892800000, 4.070781],[1170979200000, 4.041680],[1171065600000, 4.042424],[1171152000000, 4.042424],[1171238400000, 4.042424],[1171324800000, 4.029302],[1171411200000, 4.051075],[1171497600000, 4.060985],[1171584000000, 4.078309],[1171670400000, 4.086538],[1171756800000, 4.086538],[1171843200000, 4.086538],[1171929600000, 4.089830],[1172016000000, 4.083554],[1172102400000, 4.080792],[1172188800000, 4.065186],[1172275200000, 4.078631],[1172448000000, 4.078631],[1172534400000, 4.101586],[1172620800000, 4.128499]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });