Self-Esteem Test: Difference between revisions

No edit summary
Line 45: Line 45:


     const labels = ["0~30", "31~37", "38~44", "45~51", "52~58", "59~65", "66~72", "73~79", "80~86", "87~93", "94~100"];
     const labels = ["0~30", "31~37", "38~44", "45~51", "52~58", "59~65", "66~72", "73~79", "80~86", "87~93", "94~100"];
     const dataValues = [13, 11, 39, 84, 119, 209, 395, 831, 299, 226, 82];
     const dataValues = [322, 289, 978, 2124, 3045, 5314, 10023, 21026, 8437, 6003, 2449];
     const backgroundColors = labels.map(label => label === selectedRange ? '#8bc34a' : '#ededed');
     const backgroundColors = labels.map(label => label === selectedRange ? '#8bc34a' : '#ededed');