Skip to content

Commit 45be0d8

Browse files
committed
refactor: 增加 formatter 自定义方法
1 parent 219b4ef commit 45be0d8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/BootstrapBlazor.Chart/Components/Chart/Chart.razor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ const getChartOption = function (option) {
369369
datalabels: {
370370
anchor: option.options.anchor,
371371
align: option.options.align,
372-
formatter: Math.round,
372+
formatter: option.options.formatter,
373373
display: option.options.showDataLabel,
374374
color: option.options.chartDataLabelColor,
375375
font: {

0 commit comments

Comments
 (0)