Skip to content

Commit

Permalink
Merge pull request #15315 from netsco/patch-1
Browse files Browse the repository at this point in the history
remove gridColor option overide chart.js
  • Loading branch information
danharrin authored Jan 10, 2025
2 parents 4585d62 + 43d4967 commit 67d3ed8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/widgets/dist/components/chart.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions packages/widgets/resources/js/components/chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,12 @@ export default function chart({ cachedData, options, type }) {
options.scales ??= {}
options.scales.x ??= {}
options.scales.x.grid ??= {}
options.scales.x.grid.color = gridColor
options.scales.x.grid.color ??= gridColor
options.scales.x.grid.display ??= false
options.scales.x.grid.drawBorder ??= false
options.scales.y ??= {}
options.scales.y.grid ??= {}
options.scales.y.grid.color = gridColor
options.scales.y.grid.color ??= gridColor
options.scales.y.grid.drawBorder ??= false

return new Chart(this.$refs.canvas, {
Expand Down

0 comments on commit 67d3ed8

Please sign in to comment.