Skip to content

Commit

Permalink
Fix displaying of numbers in tooltip (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
zBritva authored and ignatvilesov committed Jun 19, 2018
1 parent f4ccaab commit 48a2b67
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 1.8.1
* Fix displaying of numbers in tooltip

## 1.8.0
* Added restriction for animation and dragging because of performance issue (limit is 200 nodes)

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "powerbi-visuals-forcegraph",
"version": "1.8.0",
"version": "1.8.1",
"description": "This custom visual implements a D3 force layout diagram with curved path. The thickness of the path also represents the weight of the relationship between the nodes.",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion pbiviz.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"displayName": "Force-Directed Graph",
"guid": "ForceGraph1449359463895",
"visualClassName": "ForceGraph",
"version": "1.8.0",
"version": "1.8.1",
"description": "This custom visual implements a D3 force layout diagram with curved path. The thickness of the path also represents the weight of the relationship between the nodes.",
"supportUrl": "http://community.powerbi.com",
"gitHubUrl": "https://github.com/Microsoft/PowerBI-visuals-ForceGraph"
Expand Down
3 changes: 1 addition & 2 deletions src/tooltipsFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,13 @@ module powerbi.extensibility.visual {
}

value = inputObject[propertyName];

if (!(typeof value === "number")) {
value = valueFormatter.format(value, valueFormatter.getFormatStringByColumn(column));
}

tooltips.push({
displayName: column.displayName,
value: value
value: `${value}`
});
}

Expand Down

0 comments on commit 48a2b67

Please sign in to comment.