Skip to content

Commit

Permalink
Draw label for links as "Source-Destination:Value" - fix applying set…
Browse files Browse the repository at this point in the history
…tings (#23)
  • Loading branch information
zBritva authored and ignatvilesov committed Aug 18, 2017
1 parent 28a87a5 commit fe22ced
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.3.1

* Fix applying settings of link labels

## 1.3.0

* Add link data labels displaying
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-sankey",
"version": "1.3.0",
"version": "1.3.1",
"description": "Sankey is a type of flow diagram in which the width of the series is in proportion to the quantity of the flow. Use it to find major contributions to an overall flow.",
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions pbiviz.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"visual": {
"name": "SankeyDiagram",
"displayName": "Sankey 1.3.0",
"displayName": "Sankey 1.3.1",
"guid": "SankeyDiagram1446463184954",
"visualClassName": "SankeyDiagram",
"version": "1.3.0",
"version": "1.3.1",
"description": "Sankey is a type of flow diagram in which the width of the series is in proportion to the quantity of the flow. Use it to find major contributions to an overall flow.",
"supportUrl": "http://community.powerbi.com",
"gitHubUrl": "https://github.com/Microsoft/powerbi-visuals-sankey"
Expand Down
4 changes: 3 additions & 1 deletion src/visual.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1346,7 +1346,9 @@ module powerbi.extensibility.visual {

textPathSelection
.enter()
.append("textPath")
.append("textPath");

textPathSelection
.attr({
startOffset: "50%",
href: (link: SankeyDiagramLink) => `#${(link.source.label.internalName || "").replace(/\W*/g,"")}-${(link.destination.label.internalName || "").replace(/\W*/g,"")}`
Expand Down

0 comments on commit fe22ced

Please sign in to comment.