Skip to content

Commit

Permalink
chore: Bump version number
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikGartner committed Apr 10, 2017
1 parent fb00d8f commit f632464
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 7 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
<a name="2.0.1"></a>
## [2.0.1](https://github.com/ErikGartner/dtree/compare/2.0.0...v2.0.1) (2017-04-10)


### Bug Fixes

* Missing parameters to click callback #50 ([fb00d8f](https://github.com/ErikGartner/dtree/commit/fb00d8f))



<a name="2.0.0"></a>
# [2.0.0](https://github.com/ErikGartner/dtree/compare/1.3.2...v2.0.0) (2017-03-09)

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ There are several ways to use dTree. One way is to simply include the compiled f

Lastly dTree is also available through the RawGit CDN:
```
https://cdn.rawgit.com/ErikGartner/dTree/2.0.0/dist/dTree.min.js
https://cdn.rawgit.com/ErikGartner/dTree/2.0.1/dist/dTree.min.js
```

## Requirements
Expand Down
4 changes: 2 additions & 2 deletions dist/dTree.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/dTree.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/dTree.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/dTree.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "d3-dtree",
"version": "2.0.0",
"version": "2.0.1",
"description": "A library for visualizing data trees built on top of D3.",
"main": "dist/dTree.js",
"scripts": {
Expand Down

10 comments on commit f632464

@friiwayer
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi man, can you explain me how add some custom data in each node?
Image or else. I add the object named "extra"
this is correct?. Sorry for my bad English.
[
{
"id": 2,
"name": "name1",
"role": "mother",
"class": "woman",
"depthOffset": 1,
"marriages": [
{
"spouse": {
"id": 1,
"name": "name2",
"class": "man"
},
"children": [
{
"id": 3,
"name": "name3",
"role": "hus",
"class": "man",
"depthOffset": 1,
"marriages": [
{
"spouse": {
"id": 4,
"name": "name4",
"class": "woman"
},
"children": [
{
"id": 5,
"name": "kid1",
"role": "sister",
"class": "woman",
"secondname": ""
},
{
"id": 6,
"name": "kid2",
"role": "sister",
"class": "woman",
"secondname": ""
}
]
}
],
"extra": [
{
"secondname": "sec1",
"image": ""
}
]
}
]
}
],
"extra": [
{
"secondname": "sec2",
"image": ""
}
]
}
]

@ErikGartner
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi!

The extra field is another field for each node/person.

See how it's used in the official example: https://treehouse.gartner.io/ErikGartner/58e58be650453b6d49d7
Jasper has an extra attribute containing his favorite color.

Best regards,
Erik

@friiwayer
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you. You made awesome plugin.
But if in tree can i have ex-wife and wife in same marriage?
And ex-wife has own childrens and another husband.
Or some kind of path line from ex-husband to ex-wife.

You plan this in future?

@ErikGartner
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi! You can have multiple marriage by passing multiple in spouses to the marriage attribute..
No support for new husband etc. It's a good feature request but I'm currently very busy so I won't implement it any time soon. Feel free to make a pull request adding it.

/Erik

@friiwayer
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Erik, one more question. I don't really understand how a extra fields works, I add some info in extra fields but no effects. I must use functions in callback? In your demo
you add extra field but not show a dtree init code.

@ErikGartner
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, you need to pass in custom rendering functions for either just the text or the entire node.

@friiwayer
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Erik, this is me again).
here i try add some extra information in node but get a error.
Like this = extra.secondname - got error undefined "secondname".

@ErikGartner
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Take a look at this example.

https://jsfiddle.net/tpde0cer/212/

@friiwayer
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Erik again. Can i have a parents for spouse nodes?

@ErikGartner
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No unfortunately not, see #32.

Please sign in to comment.