$(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: [[1283299200000,7.73122],[1283385600000,7.78454],[1283472000000,7.81549],[1283558400000,7.78148],[1283644800000,7.78148],[1283731200000,7.78148],[1283817600000,7.78961],[1283904000000,7.81075],[1283990400000,7.82195],[1284076800000,7.81964],[1284163200000,7.72902],[1284249600000,7.72902],[1284336000000,7.72902],[1284422400000,7.79254],[1284508800000,7.88079],[1284595200000,7.90095],[1284681600000,7.83118],[1284768000000,7.82928],[1284854400000,7.82928],[1284940800000,7.82928],[1285027200000,7.86745],[1285113600000,7.89753],[1285200000000,8.00728],[1285286400000,8.02767],[1285372800000,8.05902],[1285459200000,8.05902],[1285545600000,8.05902],[1285632000000,8.04482],[1285718400000,8.0256],[1285804800000,8.10159]], 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: [[1283299200000, 7.731222],[1283299200000, 7.731222],[1283385600000, 7.784536],[1283472000000, 7.815487],[1283558400000, 7.781480],[1283644800000, 7.781480],[1283731200000, 7.781480],[1283817600000, 7.789607],[1283904000000, 7.810750],[1283990400000, 7.821953],[1284076800000, 7.819641],[1284163200000, 7.729020],[1284249600000, 7.729020],[1284336000000, 7.729020],[1284422400000, 7.792539],[1284508800000, 7.880789],[1284595200000, 7.900952],[1284681600000, 7.831176],[1284768000000, 7.829277],[1284854400000, 7.829277],[1284940800000, 7.829277],[1285027200000, 7.867448],[1285113600000, 7.897530],[1285200000000, 8.007278],[1285286400000, 8.027670],[1285372800000, 8.059019],[1285459200000, 8.059019],[1285545600000, 8.059019],[1285632000000, 8.044825],[1285718400000, 8.025596],[1285804800000, 8.101591]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });