$(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: [[1275350400000,6.85412],[1275436800000,6.7919],[1275523200000,6.84443],[1275609600000,6.87169],[1275696000000,6.8476],[1275782400000,6.8476],[1275868800000,6.8476],[1275955200000,6.80952],[1276041600000,6.85663],[1276128000000,6.91007],[1276214400000,6.91609],[1276300800000,6.90959],[1276387200000,6.90959],[1276473600000,6.90959],[1276560000000,6.96978],[1276646400000,6.93044],[1276732800000,6.99501],[1276819200000,7.0998],[1276905600000,7.12157],[1276992000000,7.12157],[1277078400000,7.12157],[1277164800000,7.13506],[1277251200000,7.11831],[1277337600000,7.13108],[1277424000000,7.15493],[1277510400000,7.18345],[1277596800000,7.18345],[1277683200000,7.18345],[1277769600000,7.18345],[1277856000000,7.27482]], 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: [[1275350400000, 6.854125],[1275350400000, 6.854125],[1275436800000, 6.791905],[1275523200000, 6.844429],[1275609600000, 6.871693],[1275696000000, 6.847601],[1275782400000, 6.847601],[1275868800000, 6.847601],[1275955200000, 6.809520],[1276041600000, 6.856628],[1276128000000, 6.910070],[1276214400000, 6.916091],[1276300800000, 6.909588],[1276387200000, 6.909588],[1276473600000, 6.909588],[1276560000000, 6.969778],[1276646400000, 6.930437],[1276732800000, 6.995008],[1276819200000, 7.099797],[1276905600000, 7.121573],[1276992000000, 7.121573],[1277078400000, 7.121573],[1277164800000, 7.135062],[1277251200000, 7.118315],[1277337600000, 7.131082],[1277424000000, 7.154929],[1277510400000, 7.183446],[1277596800000, 7.183446],[1277683200000, 7.183446],[1277769600000, 7.183446],[1277856000000, 7.274822]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });