Skip to content

Commit

Permalink
fix(tooltip): stroke color should always be default
Browse files Browse the repository at this point in the history
  • Loading branch information
scottdickerson committed Jan 17, 2020
1 parent c541e8a commit b3b6812
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/src/components/essentials/tooltip-scatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ export class TooltipScatter extends Tooltip {
const formattedValue = Tools.getProperty(this.model.getOptions(), "tooltip", "valueFormatter") ?
this.model.getOptions().tooltip.valueFormatter(data.value) : data.value.toLocaleString("en");

const indicatorColor = this.model.getStrokeColor(data.datasetLabel);
// For the tooltip color, we always want the normal stroke color, not dynamically determined by data value.
const indicatorColor = this.model.getStrokeColor(data.datasetLabel, data.label);

return `
<div class="datapoint-tooltip">
Expand Down

0 comments on commit b3b6812

Please sign in to comment.