Skip to content

Commit

Permalink
fix(heatmap): update the color names to match the consistent pattern. a…
Browse files Browse the repository at this point in the history
  • Loading branch information
Manviel committed Jun 11, 2024
1 parent 22cf47b commit 8221d35
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/util/format.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,21 +212,22 @@ export function getTooltipMarker(inOpt: ColorString | GetTooltipMarkerOpt, extra
// called repeatedly when mouse move and the auto-increment number increases fast.
// Users can make their own style name by theirselves, make it unique and readable.
const markerId = opt.markerId || 'markerX';
const colorStyle = `color-${color.replace('#', '')}`;
return {
renderMode: renderMode,
content: '{' + markerId + '|} ',
content: '{' + markerId + '|} ',
style: type === 'subItem'
? {
width: 4,
height: 4,
borderRadius: 2,
backgroundColor: color
backgroundColor: colorStyle
}
: {
width: 10,
height: 10,
borderRadius: 5,
backgroundColor: color
backgroundColor: colorStyle
}
};
}
Expand Down

0 comments on commit 8221d35

Please sign in to comment.