<?xml version="1.0" encoding="UTF-8"?>
<quiz>
<!-- question: 1949558  -->
  <question type="multianswerwiris">
    <name>
      <text>Traiter des données statistiques avec un tableur - Question Cloze</text>
    </name>
    <questiontext format="html">
      <text><![CDATA[<p>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/3.9.1/chart.min.js"></script>
</p>
<div style="width: 100%; max-width: 1000px; margin: 0 auto; font-family: Arial, sans-serif;">
<h1 style="font-size: 1.8em; margin-bottom: 15px;">Évolution du taux de croissance du PIB français en volume (1950-2023)</h1>
<div style="position: relative; height: 500px; width: 100%; margin-bottom: 20px;"><canvas id="pibChart" style="width: 100%; height: 100%;"></canvas></div>
<ul style="text-align: left; list-style-type: none; margin: 15px 0; padding-left: 0; font-size: 14px; color: #333; line-height: 1.5;">
<li>Note : les volumes sont mesurés aux prix de l'année précédente chaînés.</li>
<li>Lecture : en 2023, le produit intérieur brut (PIB) augmente de 0,9 % en volume.</li>
<li>Champ : France.</li>
<li>Source : Insee, <a style="color: #0066cc; text-decoration: none;" href="https://www.insee.fr/fr/metadonnees/source/serie/s2144">comptes nationaux – base 2020.</a></li>
</ul>
<div style="margin-bottom: 2em;">
<div style="background-color: #f9f9f9; padding: 20px; border-radius: 5px; margin: 20px 0;">
<ol style="padding-left: 20px;">
<ol style="padding-left: 20px;">
<li style="margin-bottom: 10px;"><strong>Préparation :</strong> Téléchargez la feuille de calcul dans le format de votre choix (XLSX pour Microsoft Excel, ODS pour LibreOffice).</li>
</ol>
</ol>
<div style="display: flex; gap: 1em; margin: 1em 0;"><a style="padding: 10px 20px; background-color: #4caf50; color: white; text-decoration: none; border-radius: 5px;" href="https://filedn.eu/lOfC7DjLyXz7Y55GpTvy4lB/TraAM/traam-pib-en-volume-1950-2023-version-eleve.xlsx">Télécharger au format XLSX</a> <a style="padding: 10px 20px; background-color: #4caf50; color: white; text-decoration: none; border-radius: 5px;" href="https://filedn.eu/lOfC7DjLyXz7Y55GpTvy4lB/TraAM/traam-pib-en-volume-1950-2023-version-eleve.ods">Télécharger au format ODS</a></div>
<ol style="padding-left: 20px;">
<li style="margin-bottom: 10px;"><strong>Calcul :</strong> Dans la troisième colonne, calculez le taux de croissance du PIB en volume en utilisant la formule appropriée.</li>
<li style="margin-bottom: 10px;"><strong>Validation :</strong> Une fois vos calculs effectués correctement, indiquez le mot secret qui apparaît dans la cellule E2 : {#1}.</li>
</ol>
</div>
</div>
</div>
<p>
<script>
        // Données du taux de croissance du PIB français en volume (1950-2023)
        const pibData = [
            { year: 1950, growth: null },
            { year: 1951, growth: 5.66 },
            { year: 1952, growth: 3.13 },
            { year: 1953, growth: 3.37 },
            { year: 1954, growth: 5.70 },
            { year: 1955, growth: 5.38 },
            { year: 1956, growth: 5.05 },
            { year: 1957, growth: 5.62 },
            { year: 1958, growth: 2.78 },
            { year: 1959, growth: 2.77 },
            { year: 1960, growth: 7.95 },
            { year: 1961, growth: 4.95 },
            { year: 1962, growth: 6.86 },
            { year: 1963, growth: 6.10 },
            { year: 1964, growth: 6.58 },
            { year: 1965, growth: 4.84 },
            { year: 1966, growth: 5.16 },
            { year: 1967, growth: 4.80 },
            { year: 1968, growth: 4.54 },
            { year: 1969, growth: 7.09 },
            { year: 1970, growth: 6.20 },
            { year: 1971, growth: 5.29 },
            { year: 1972, growth: 4.51 },
            { year: 1973, growth: 6.19 },
            { year: 1974, growth: 4.41 },
            { year: 1975, growth: -0.95 },
            { year: 1976, growth: 4.34 },
            { year: 1977, growth: 3.55 },
            { year: 1978, growth: 3.95 },
            { year: 1979, growth: 3.70 },
            { year: 1980, growth: 1.68 },
            { year: 1981, growth: 1.19 },
            { year: 1982, growth: 2.44 },
            { year: 1983, growth: 1.26 },
            { year: 1984, growth: 1.61 },
            { year: 1985, growth: 1.57 },
            { year: 1986, growth: 2.39 },
            { year: 1987, growth: 2.55 },
            { year: 1988, growth: 4.81 },
            { year: 1989, growth: 4.41 },
            { year: 1990, growth: 2.83 },
            { year: 1991, growth: 1.24 },
            { year: 1992, growth: 1.52 },
            { year: 1993, growth: -0.36 },
            { year: 1994, growth: 2.38 },
            { year: 1995, growth: 2.30 },
            { year: 1996, growth: 1.40 },
            { year: 1997, growth: 2.53 },
            { year: 1998, growth: 3.45 },
            { year: 1999, growth: 3.40 },
            { year: 2000, growth: 4.14 },
            { year: 2001, growth: 1.90 },
            { year: 2002, growth: 1.07 },
            { year: 2003, growth: 0.97 },
            { year: 2004, growth: 2.87 },
            { year: 2005, growth: 1.89 },
            { year: 2006, growth: 2.71 },
            { year: 2007, growth: 2.53 },
            { year: 2008, growth: 0.38 },
            { year: 2009, growth: -2.82 },
            { year: 2010, growth: 2.00 },
            { year: 2011, growth: 2.44 },
            { year: 2012, growth: 0.18 },
            { year: 2013, growth: 0.78 },
            { year: 2014, growth: 1.00 },
            { year: 2015, growth: 1.07 },
            { year: 2016, growth: 0.86 },
            { year: 2017, growth: 2.08 },
            { year: 2018, growth: 1.65 },
            { year: 2019, growth: 2.03 },
            { year: 2020, growth: -7.44 },
            { year: 2021, growth: 6.88 },
            { year: 2022, growth: 2.57 },
            { year: 2023, growth: 0.94 }
        ];
        
        // Filtrer les données à partir de 1951 (supprimer la valeur null)
        const filteredData = pibData.filter(item => item.growth !== null);
        
        // Extraire les années et les taux de croissance
        const years = filteredData.map(item => item.year);
        const growthRates = filteredData.map(item => item.growth);
        
        // Créer le graphique
        const ctx = document.getElementById('pibChart').getContext('2d');
        
        // Configuration du graphique
        const chartConfig = {
            type: 'line',
            data: {
                labels: years,
                datasets: [
                    {
                        label: 'Taux de croissance du PIB (%)',
                        data: growthRates,
                        borderColor: 'rgba(52, 152, 219, 1)',
                        backgroundColor: 'rgba(52, 152, 219, 0.2)',
                        borderWidth: 2,
                        pointRadius: 3,
                        pointHoverRadius: 6,
                        tension: 0.1,
                        fill: false
                    }
                ]
            },
            options: {
                responsive: true,
                maintainAspectRatio: false,
                scales: {
                    x: {
                        title: {
                            display: true,
                            text: 'Année',
                            font: {
                                weight: 'bold'
                            }
                        },
                        ticks: {
                            maxRotation: 45,
                            minRotation: 45,
                            callback: function(value, index, values) {
                                const year = years[index];
                                if (index % 5 === 0) return year;
                                return '';
                            }
                        }
                    },
                    y: {
                        title: {
                            display: true,
                            text: 'Taux de croissance (%)',
                            font: {
                                weight: 'bold'
                            }
                        },
                        suggestedMin: -8,
                        suggestedMax: 8,
                        ticks: {
                            callback: function(value) {
                                return value + '%';
                            }
                        }
                    }
                },
                plugins: {
                    tooltip: {
                        callbacks: {
                            title: function(tooltipItems) {
                                return 'Année: ' + tooltipItems[0].label;
                            },
                            label: function(context) {
                                return 'Croissance: ' + context.raw.toFixed(2) + '%';
                            }
                        }
                    },
                    annotation: {
                        annotations: {
                            line1: {
                                type: 'line',
                                yMin: 0,
                                yMax: 0,
                                borderColor: 'rgba(0, 0, 0, 0.5)',
                                borderWidth: 1,
                                borderDash: [3, 3]
                            }
                        }
                    }
                },
                animation: {
                    duration: 1000
                },
                interaction: {
                    intersect: false,
                    mode: 'index'
                }
            }
        };
        
        // Créer le graphique
        const pibChart = new Chart(ctx, chartConfig);
        
        // Fonction pour ajouter des annotations pour les événements majeurs
        function addEvents() {
            const events = [
                { year: 1975, label: 'Choc pétrolier', description: 'Premier choc pétrolier et récession' },
                { year: 1993, label: 'Crise du SME', description: 'Crise du Système Monétaire Européen' },
                { year: 2009, label: 'Crise financière', description: 'Crise financière mondiale de 2008' },
                { year: 2020, label: 'Covid-19', description: 'Pandémie de COVID-19' }
            ];
            
            events.forEach(event => {
                const index = years.indexOf(event.year);
                if (index !== -1) {
                    pibChart.data.datasets[0].pointBackgroundColor = pibChart.data.datasets[0].pointBackgroundColor || [];
                    pibChart.data.datasets[0].pointBorderColor = pibChart.data.datasets[0].pointBorderColor || [];
                    pibChart.data.datasets[0].pointBackgroundColor[index] = 'rgba(231, 76, 60, 0.8)';
                    pibChart.data.datasets[0].pointBorderColor[index] = 'rgba(231, 76, 60, 1)';
                    pibChart.data.datasets[0].pointRadius = pibChart.data.datasets[0].pointRadius || [];
                    pibChart.data.datasets[0].pointRadius[index] = 6;
                }
            });
            
            pibChart.update();
        }
        
        // Appliquer les annotations après 500ms pour être sûr que le graphique est chargé
        setTimeout(addEvents, 500);
    </script>
</p>]]></text>
    </questiontext>
    <generalfeedback format="html">
      <text></text>
    </generalfeedback>
    <defaultgrade>1</defaultgrade>
    <penalty>0.3333333</penalty>
    <hidden>0</hidden>
    <idnumber></idnumber>
    <wirissubquestions>
        <wirissubquestion>
            <![CDATA[{1:SHORTANSWER:=Livre#Bonne réponse ! Vous avez trouvé le mot secret.}]]>
        </wirissubquestion>
    </wirissubquestions>
    <wirisquestion>
&lt;question&gt;&lt;correctAnswers&gt;&lt;correctAnswer&gt;&lt;/correctAnswer&gt;&lt;/correctAnswers&gt;&lt;assertions&gt;&lt;assertion name=&quot;syntax_math&quot;&gt;&lt;param name=&quot;decimalseparators&quot;&gt;.,'&lt;/param&gt;&lt;/assertion&gt;&lt;assertion name=&quot;equivalent_symbolic&quot;/&gt;&lt;/assertions&gt;&lt;slots&gt;&lt;slot&gt;&lt;initialContent&gt;&lt;/initialContent&gt;&lt;/slot&gt;&lt;/slots&gt;&lt;localData&gt;&lt;data name=&quot;inputField&quot;&gt;textField&lt;/data&gt;&lt;/localData&gt;&lt;/question&gt;    </wirisquestion>
  </question>

</quiz>