자존감 테스트: Difference between revisions

Tag: Reverted
Tag: Reverted
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 = [13, 11, 39, 84, 119, 209, 395, 831, 299, 226, 82];
     const backgroundColors = labels.map(label => label === selectedRange ? '#4FC3F7' : '#ededed');
     const backgroundColors = labels.map(label => label === selectedRange ? '#FF5252' : '#ededed');


     const ctx = document.getElementById('barChart7pt').getContext('2d');
     const ctx = document.getElementById('barChart7pt').getContext('2d');