Skip to content

Commit

Permalink
stable colors
Browse files Browse the repository at this point in the history
  • Loading branch information
Marko Petzold committed Jan 7, 2024
1 parent b71af2c commit e07710d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/widget-mapbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export class WidgetMapbox extends LitElement {
this.dataSets = []
this.inputData.dataseries.forEach((ds) => {
const color = this.colors.get(ds.label)
const distincts = [...new Set(ds.data?.map((d: Point) => d.pivot))]
const distincts = [...new Set(ds.data?.map((d: Point) => d.pivot))].sort()
const derivedColors = tinycolor(color)
.monochromatic(distincts.length)
.map((c: any) => c.toHexString())
Expand Down

0 comments on commit e07710d

Please sign in to comment.