Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

Commit

Permalink
Remove pie chart axes and gridlines
Browse files Browse the repository at this point in the history
  • Loading branch information
AOx0 committed Nov 14, 2023
1 parent 301a4e9 commit 297852a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
15 changes: 14 additions & 1 deletion assets/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,22 @@ function load_razon_anio(data, cfg) {
}],
},
options: {
gridLines: {
color: "rgba(0, 0, 0, 0)",
},
scales: {
y: {
beginAtZero: true
beginAtZero: true,
display: false,
grid: {
display: false,
},
},
x: {
display: false,
grid: {
display: false,
},
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion templates/hello.html
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ <h1 class="text-3xl font-bold pb-3">Top delitos por años</h1>
</section>
<section x-init="
$watch('data', value => {
load_razon-anio(data, { num: 5, endpoint: '/alto_y_bajo' });
load_razon_anio(data, { num: 5, endpoint: '/alto_y_bajo' });
}
);
load_razon_anio(data, { num: 5, endpoint: '/alto_y_bajo' });
Expand Down

0 comments on commit 297852a

Please sign in to comment.