Created
July 19, 2018 19:31
-
-
Save VhMuzini/55f5b5be119cb61d08f2d64dc1c7eaaf to your computer and use it in GitHub Desktop.
Ng2-chart Bar Configuration
This file contains hidden or 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
//Need to pass array of colors for each data to avoid grey | |
chartColors = [ | |
{ | |
backgroundColor: ['#007bff', '#007bff', '#007bff', '#007bff', '#007bff', | |
'#007bff', '#007bff', '#007bff', '#007bff', '#007bff', | |
'#007bff', '#007bff', '#007bff', '#007bff', '#007bff', | |
'#007bff', '#007bff', '#007bff', '#007bff', '#007bff', | |
'#007bff', '#007bff', '#007bff'], | |
hoverBackgroundColor: ['#007bff', '#007bff', '#007bff', '#007bff', '#007bff', | |
'#007bff', '#007bff', '#007bff', '#007bff', '#007bff', | |
'#007bff', '#007bff', '#007bff', '#007bff', '#007bff', | |
'#007bff', '#007bff', '#007bff', '#007bff', '#007bff', | |
'#007bff', '#007bff', '#007bff'], | |
borderColor: ['#007bff', '#007bff', '#007bff', '#007bff', '#007bff', | |
'#007bff', '#007bff', '#007bff', '#007bff', '#007bff', | |
'#007bff', '#007bff', '#007bff', '#007bff', '#007bff', | |
'#007bff', '#007bff', '#007bff', '#007bff', '#007bff', | |
'#007bff', '#007bff', '#007bff'] | |
}, | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment