almende / vis

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

Horizontal bars #452

Closed ivan-kleshnin closed 9 years ago

ivan-kleshnin commented 9 years ago

Can't believe it, but I don't see not an example nor a mention nor a related issue. Library have only columns (named bars). I need to plot them horizontally (which is preferable in many situations). There are no such type and not an option to swap X and Y axis. At I couldn't find it. Any suggestions? It should be just a one option to switch between bars and columns, it should not require to change dataset, of course.

P.S. http://visjs.org/examples/graph2d/12_customRange.html page just freezes my browser (latest Chrome).

AlexDM0 commented 9 years ago

Hi Ivan,

It is not possible to swap the X and Y axis, nor any other option that would mimic this. It is not currently on our roadmap as it would require us to also make the timeline oriented vertically.

As for the freezing, I tried it just now and it seems to work. I'll test other browsers later on. Do you get any error messages? We had some trouble with the website today, maybe its acting up. Could you try again later today?

Regards,

Alex

ivan-kleshnin commented 9 years ago

Hi Alex, thank you for a quick answer! Misfortune for me.

Maybe it's really a server issues, I'll try to load it later and report.

AlexDM0 commented 9 years ago

Hi Ivan,

I have tested this on multiple computers and it never freezes. Could you retry this?

Regards,

Alex

ivan-kleshnin commented 9 years ago

I've just retried. It works in FireFox 27.0.1 and Safari 7.1, however it definitely dead locks in Chrome 38.0.2125.101. And I experienced dead locks with vis.js Graph2d in Chrome with different chart examples copy-pasted from documentation. Some of them seemed irregular (no visible causes to freeze or work) and some of them (like provided page example) freezes every time.

I turned off all my Chrome extensions to be sure they doesn't influence. Problem keeped.

AlexDM0 commented 9 years ago

What OS are you using? Is it also the case in other examples?

ivan-kleshnin commented 9 years ago

OS X 10.9.5 Don't get the second question :(

ivan-kleshnin commented 9 years ago

All I can say is that freezing is somehow connected with grouping. When I remove groups argument from

var timeline = new vis.Timeline(container, items, groups, options);

for example, everything works just right.

AlexDM0 commented 9 years ago

Hi Ivan,

Which example are you referring to? I thought you were talking about the graph2d?

Graph2d and the timeline share the same core so we would really like to find the cause of the freeze.

Could you tell us a bit more on which examples do and do not work for you?

Regards,

Alex

ivan-kleshnin commented 9 years ago

I start a new issue for this.

AlexDM0 commented 9 years ago

Hi Ivan,

Thanks! I'll close this one since the horizontal question has been handles and is also mentioned in other issues.

Regards,

Alex