sjmallon / vue-visjs

Package visjs timeline, graph2d and network components as Vue components
MIT License
27 stars 8 forks source link

Graph2d groups properties not working #4

Closed cassiamani closed 3 years ago

cassiamani commented 4 years ago

Hello everyone,

In graph2d component, the group properties as content, options, className... not working, follow the link bellow:

codesandbox sample: https://codesandbox.io/s/gracious-chandrasekhar-l7i1q?file=/src/App.vue:383-609

notice that group names (content: 'name group') not draw in timeline graph2d.

sjmallon commented 4 years ago

Hi

Yes, unfortunately there seems to be an upstream bug causing this. You can see the problem in their own example page! Once there are updates to the upstream visjs packages, I'll up-issue this package.

cassiamani commented 4 years ago

really, i dont't noticed the bug on the example page, but I will wait for bug fix from visjs,

thanks so much @sjmallon

cassiamani commented 4 years ago

I found the solution, the id property must be of type string, not number, follow the explanation here

sjmallon commented 3 years ago

Fixed in >=v0.4.1