change pie chart
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import colorConstants from '../consts/color.js';
|
||||
|
||||
export default function (color, defaultColor) {
|
||||
if (color && color !== colorConstants.defaultColor) {
|
||||
color = '#' + color;
|
||||
} else {
|
||||
color = defaultColor;
|
||||
}
|
||||
|
||||
return color;
|
||||
}
|
||||
Reference in New Issue
Block a user