Display perk level in name

This commit is contained in:
Pavle Portic 2019-03-24 22:57:48 +01:00
parent 9c4b1174c3
commit 4ef4390d99
Signed by: TheEdgeOfRage
GPG Key ID: 6758ACE46AA2A849
1 changed files with 4 additions and 0 deletions

View File

@ -58,6 +58,10 @@ export default {
},
methods: {
renderGraph(graphData) {
for (let i = 0; i < graphData.nodes.length; i++) {
graphData.nodes[i].name = `${graphData.nodes[i].name} [${graphData.nodes[i].level}]`;
}
const svg = d3.select('#perktree').append('svg');
const chart = new Sankey.Path(svg);
const nodes = graphData.nodes;