$(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: [[1359676800000,8.77533],[1359763200000,8.82977],[1359849600000,8.82977],[1359936000000,8.82977],[1360022400000,8.77094],[1360108800000,8.79756],[1360195200000,8.74971],[1360281600000,8.79412],[1360368000000,8.70366],[1360454400000,8.70366],[1360540800000,8.70366],[1360627200000,8.70622],[1360713600000,8.71268],[1360800000000,8.71376],[1360886400000,8.66531],[1360972800000,8.65697],[1361059200000,8.65697],[1361145600000,8.65697],[1361232000000,8.65411],[1361318400000,8.65217],[1361404800000,8.65525],[1361491200000,8.57573],[1361577600000,8.58831],[1361664000000,8.58831],[1361750400000,8.58831],[1361836800000,8.64192],[1361923200000,8.59082],[1362009600000,8.59689]], 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: [[1359676800000, 8.775332],[1359676800000, 8.775332],[1359763200000, 8.829770],[1359849600000, 8.829770],[1359936000000, 8.829770],[1360022400000, 8.770942],[1360108800000, 8.797564],[1360195200000, 8.749707],[1360281600000, 8.794118],[1360368000000, 8.703662],[1360454400000, 8.703662],[1360540800000, 8.703662],[1360627200000, 8.706220],[1360713600000, 8.712681],[1360800000000, 8.713760],[1360886400000, 8.665314],[1360972800000, 8.656972],[1361059200000, 8.656972],[1361145600000, 8.656972],[1361232000000, 8.654114],[1361318400000, 8.652170],[1361404800000, 8.655253],[1361491200000, 8.575728],[1361577600000, 8.588307],[1361664000000, 8.588307],[1361750400000, 8.588307],[1361836800000, 8.641924],[1361923200000, 8.590816],[1362009600000, 8.596889]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });