Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"comment": "fix: fix default lineWidth for heatmap label\n\n",
"type": "none",
"packageName": "@visactor/vchart"
}
],
"packageName": "@visactor/vchart",
"email": "[email protected]"
}
2 changes: 1 addition & 1 deletion packages/vchart/src/series/heatmap/heatmap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export class HeatmapSeries<T extends IHeatmapSeriesSpec = IHeatmapSeriesSpec> ex
return;
}
this.setMarkStyle(textMark, {
fill: this.getColorAttribute(),
fill: this._spec.cell?.style?.fill ?? this.getColorAttribute(),
text: (datum: Datum) => {
return datum[this.getMeasureField()[0]];
}
Expand Down
5 changes: 5 additions & 0 deletions packages/vchart/src/theme/builtin/common/series/heatmap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,10 @@ export const heatmap: IHeatmapSeriesTheme = {
},
cellBackground: {
visible: false
},
label: {
style: {
lineWidth: 2
}
}
};
Loading