Skip to content

Commit

Permalink
remove chart data
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkIntaqt committed Jul 30, 2023
1 parent 6c28610 commit 0e43b33
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/module/Challenge.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ class Challenge extends Component {
data: data,
options: {
animation: false,
radius: 7,
plugins: {
tooltip: {
callbacks: {
Expand All @@ -220,14 +221,21 @@ class Challenge extends Component {
},
scales: {
x: {
ticks: {
display: false,
},
grid: {
display: true,
drawBorder: true,
display: false,
drawBorder: false,
color: getComputedStyle(document.documentElement).getPropertyValue('--dark3'),
}
},
y: {
ticks: {
display: false,
},
grid: {
display: false,
drawBorder: false,
color: getComputedStyle(document.documentElement).getPropertyValue('--dark3'),
},
Expand Down Expand Up @@ -619,7 +627,7 @@ class Challenge extends Component {
<span> {t("Points per game")}</span>
</div>

<canvas id="average" />
<canvas id="average" style={{ padding: "10px" }} />

</div>
</section>
Expand Down

0 comments on commit 0e43b33

Please sign in to comment.