almende / vis

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

Question: How can I get Graph2d bar chart to display bars stretched to an end point? #2748

Open Vx2gas opened 7 years ago

Vx2gas commented 7 years ago

Hello,

First of all... Great job on this control.

What I'm wanting to do is take the graph2d bar chart, and supply an X2 like the timeline control, and have the rectangle scale horizontally.

Take this example: http://jsfiddle.net/wijgerden/vq4ezLgn/

And have the bars auto fit like this: http://almende.github.io/chap-links-library/js/timeline/examples/example19_bar_graph.html

Anyone know how I can do this?

Thanks in advance.

Vx2gas commented 7 years ago

Added this pull request which satisfies my initial request

mojoaxel commented 7 years ago

Here is a screenshot from #2760 that shows what @Vx2gas whants: image