Skip to content

Commit

Permalink
Update summary.md
Browse files Browse the repository at this point in the history
Tried to put the chart creation in a function
  • Loading branch information
gtribello authored Jan 26, 2024
1 parent b46e14b commit 367efc1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion summary.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,12 @@ $('#browse-table3-searchbar').keyup(function () {
</script>

<script>
$(document).ready(function() {
var xValues = [ {{ actionlist | join: '", "' | prepend: '"' | append: '"' }} ];
var yValues = [ {{ astr }} ];
var barColors = "green";

new Chart("actionChart", {
var chart = new Chart("actionChart", {
type: "horizontalBar",
data: {
labels: xValues,
Expand All @@ -162,4 +163,5 @@ new Chart("actionChart", {
}
}
});
});
</script>

0 comments on commit 367efc1

Please sign in to comment.