-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check colors definition in the chart options (#11003)
* Check colors definition in the chart options * Update src/plugins/plugin.colors.ts Co-authored-by: Dan Onoshko <danon0404@gmail.com> * Update src/plugins/plugin.colors.ts Co-authored-by: Dan Onoshko <danon0404@gmail.com> * Update src/plugins/plugin.colors.ts Co-authored-by: Dan Onoshko <danon0404@gmail.com> * apply review Co-authored-by: Dan Onoshko <danon0404@gmail.com>
- Loading branch information
1 parent
97bc329
commit ab55f6c
Showing
3 changed files
with
47 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
module.exports = { | ||
config: { | ||
type: 'bar', | ||
data: { | ||
labels: [0, 1, 2, 3, 4, 5], | ||
datasets: [ | ||
{ | ||
data: [0, 5, 10, null, -10, -5], | ||
}, | ||
{ | ||
data: [10, 2, 3, null, 10, 5] | ||
} | ||
] | ||
}, | ||
options: { | ||
backgroundColor: ['red', 'green'], | ||
scales: { | ||
x: { | ||
ticks: { | ||
display: false, | ||
} | ||
}, | ||
y: { | ||
ticks: { | ||
display: false, | ||
} | ||
} | ||
}, | ||
plugins: { | ||
legend: false, | ||
colors: { | ||
enabled: true | ||
} | ||
} | ||
} | ||
} | ||
}; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.