Skip to content

Commit

Permalink
Fix Tooltip
Browse files Browse the repository at this point in the history
Signed-off-by: Kipruto <[email protected]>
  • Loading branch information
kelvinkipruto committed Aug 12, 2024
1 parent a4f44a9 commit 055b017
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ export default function configureScope(
vegaSpec = VerticalBarChartScope(scopeOptions);
} else {
vegaSpec = BarChartScope(scopeOptions);
console.log("BarChartScope", vegaSpec);
}
break;
}
Expand Down
11 changes: 3 additions & 8 deletions packages/hurumap-core/src/Scope/HeatMapScope.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import merge from "deepmerge";
import Scope from "./Scope";

export default function HeatMapScope(props) {
console.log("HeatMapScope props: ", props);

const {
primaryData,
metadata,
Expand Down Expand Up @@ -124,12 +122,6 @@ export default function HeatMapScope(props) {
signal: "datatype[Units]",
},
},
// TODO: check why tooltip is not working correctly
tooltip: [
{
signal: `datum.${primaryGroup} + ' : ' + + datatype[Units]`,
},
],
},
update: {
y: {
Expand All @@ -141,6 +133,9 @@ export default function HeatMapScope(props) {
width: {
signal: "stripeWidth",
},
tooltip: {
signal: "{'group': datum[mainGroup], 'count': datum.count}",
},
},
hover: {
y: {
Expand Down

0 comments on commit 055b017

Please sign in to comment.