Skip to content

Commit

Permalink
pivot label undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
Marko Petzold committed Jan 11, 2024
1 parent 9a8ba65 commit 8b5be63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/widget-barchart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ export class WidgetBarchart extends LitElement {
const darker = 100 / distincts.length
distincts.forEach((piv, i) => {
const pds: any = {
label: ds.label + ' ' + piv,
stack: ds.stack || `${ds.label}-${piv}-${i}`,
label: (ds.label ?? '') + ' ' + (piv ?? ''),
stack: ds.stack || `${ds.label ?? ''}-${piv ?? ''}-${i}`,
barThickness: ds.barThickness,
backgroundColor: derivedBgColors[i],
borderColor: derivedBdColors[i],
Expand Down

0 comments on commit 8b5be63

Please sign in to comment.