visjs / vis-timeline

📅 Create a fully customizable, interactive timelines and 2d-graphs with items and ranges.
https://visjs.github.io/vis-timeline/
Other
1.88k stars 315 forks source link

[Graph2d] Both Axis Example broken #652

Open mojoaxel opened 4 years ago

mojoaxel commented 4 years ago

The graph2d examples are non functional:

https://visjs.github.io/vis-timeline/examples/graph2d/05_bothAxis.html

m-harnish commented 4 years ago

It looks like all examples that have a DataSet passed in as the source data are broken.

This is consistent with what I'm seeing when I try to update to the latest visjs.

The code is pretty basic, where it's doing something like this:

var items = [ <generated items> ... ]; var dataset = new vis.DataSet(items); var graph = new vis.Graph2d(container, dataset, options);

Note that passing the items in directly works.

Am I using it incorrectly, or did the API change?

kreegahbundolo commented 3 years ago

A lot of the examples for Graph2D are broken at this point in time. Take a look at the web site, most examples are blank:

https://visjs.github.io/vis-timeline/examples/graph2d/

I'm also having issues with using DataSet for Graph2D. Array seems to work.