Skip to content

Commit

Permalink
Merge pull request #79 from starschema/circle-viz-default-color-missing
Browse files Browse the repository at this point in the history
Default Color is missing if more than 5 data points are available
  • Loading branch information
drakvuf authored Oct 18, 2023
2 parents 05d5094 + e244e42 commit fbd02d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layers/circle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ export class Circle extends Layer {

// Add transparent as default so that we only see regions
// for which we have data values
categoricalStyle = categoricalStyle.concat(Array(this.requiredNumberOfParamsInCircleColor - categoricalStyle.length).fill('rgba(255,0,0,255)'));
categoricalStyle = categoricalStyle.concat(Array(Math.max(1, this.requiredNumberOfParamsInCircleColor - categoricalStyle.length)).fill('rgba(255,0,0,255)'));

return categoricalStyle;
}
Expand Down

0 comments on commit fbd02d4

Please sign in to comment.