Skip to content

Commit 31f08a6

Browse files
committed
fixed BarChartDataPoint format value
1 parent 6e4065a commit 31f08a6

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616

1717
strategy:
1818
matrix:
19-
node-version: [15.x]
19+
node-version: [18.x]
2020

2121
steps:
2222
- uses: actions/checkout@v2

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
This page contains information about changes to the 'Sample bar chart' Power BI visual.
44

5+
## 4.0.0
6+
7+
* Added *dynamic format* feature support
8+
* Migrated to ESlint
9+
* Updated dependencies
10+
511
## 3.2.0
612

713
* Added *modern tooltip* feature

src/barChart.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ interface BarChartDataPoint {
7070
strokeColor: string;
7171
strokeWidth: number;
7272
selectionId: ISelectionId;
73-
format: string;
73+
format?: string;
7474
}
7575

7676
/**
@@ -192,7 +192,7 @@ function visualTransform(options: VisualUpdateOptions, host: IVisualHost): BarCh
192192
selectionId,
193193
value: dataValue.values[i],
194194
category: `${category.values[i]}`,
195-
format: <string>dataValue.objects[i].general.formatString,
195+
format: dataValue.objects ? <string>dataValue.objects[i].general.formatString : null,
196196
});
197197
}
198198

0 commit comments

Comments
 (0)