almende / vis

⚠️ This project is not maintained anymore! Please go to https://github.com/visjs
7.85k stars 1.48k forks source link

graph and data is slightly mismatched. #4137

Open kotran88 opened 6 years ago

kotran88 commented 6 years ago

as you can see below link,( it's basic example of graph )

x is 2014-06-11 and y is 10 but square shown on pic should be moved to left to say that 11(2014-06-11) is 10.

and 2014-06-13 is 30. but it's also slightly leaning to the right.

how can I make graph more matched exactly as I wished?

https://imgur.com/a/IuMqRCG

DavidSpackman commented 6 years ago

Is it offset by a timezone difference?

kotran88 commented 6 years ago

Is it offset by a timezone difference?

I don't think it 's about offset by timezone...because linked image is the one that I get from official website's example...isn't it wired to read graph? it's not matched x axis and y axis exactly. leaning to right a bit.

DavidSpackman commented 6 years ago

Can you test with full ISO8601 Datetime with time zone ? i.e. I'm in GMT+8, using the data below displays the data on the graph correctly for me.

var items = [ {x: '2014-06-11T00:00:00+08:00', y: 10}, {x: '2014-06-12T00:00:00+08:00', y: 25}, {x: '2014-06-13T00:00:00+08:00', y: 30}, {x: '2014-06-14T00:00:00+08:00', y: 10}, {x: '2014-06-15T00:00:00+08:00', y: 15}, {x: '2014-06-16T00:00:00+08:00', y: 30} ];