Skip to content

Commit

Permalink
Move definition
Browse files Browse the repository at this point in the history
  • Loading branch information
igorlukanin committed Oct 20, 2022
1 parent 90406d7 commit 5f690e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/plugins/plugin.colors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,13 @@ export default {
options: {elements},
data: {datasets}
} = chart.config;
let colorizer: DatasetColorizer;

if (containsColorsDefinitions(datasets) || elements && containsColorsDefinitions(elements)) {
return;
}

let colorizer: DatasetColorizer;

if (type === 'doughnut') {
colorizer = createDoughnutDatasetColorizer();
} else if (type === 'polarArea') {
Expand Down

0 comments on commit 5f690e6

Please sign in to comment.