$(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: [[1168041600000,4.10475],[1168128000000,4.10475],[1168214400000,4.10475],[1168300800000,4.10475],[1168387200000,4.07645],[1168473600000,4.06428],[1168560000000,4.0653],[1168646400000,4.03781],[1168732800000,4.03781],[1168819200000,4.03781],[1168905600000,4.05234],[1168992000000,4.05333],[1169078400000,4.03831],[1169164800000,4.03263],[1169251200000,4.04487],[1169337600000,4.04487],[1169424000000,4.04487],[1169510400000,4.03626],[1169596800000,4.07324],[1169683200000,4.05528],[1169769600000,4.05713],[1169856000000,4.02558],[1169942400000,4.02558],[1170028800000,4.02558],[1170115200000,4.02387],[1170201600000,4.03477]], 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: [[1168041600000, 4.104752],[1168041600000, 4.104752],[1168128000000, 4.104752],[1168214400000, 4.104752],[1168300800000, 4.104752],[1168387200000, 4.076449],[1168473600000, 4.064283],[1168560000000, 4.065299],[1168646400000, 4.037808],[1168732800000, 4.037808],[1168819200000, 4.037808],[1168905600000, 4.052338],[1168992000000, 4.053331],[1169078400000, 4.038311],[1169164800000, 4.032635],[1169251200000, 4.044870],[1169337600000, 4.044870],[1169424000000, 4.044870],[1169510400000, 4.036256],[1169596800000, 4.073236],[1169683200000, 4.055279],[1169769600000, 4.057131],[1169856000000, 4.025584],[1169942400000, 4.025584],[1170028800000, 4.025584],[1170115200000, 4.023868],[1170201600000, 4.034775]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });