Accepted answer

chart.js does not come with horizontal bar charts by default.

however it is built in a very modular fashion. this allows third party plugins to be developed that do not mess with the core code.

as i needed horizontal bar charts for a project i was working on i took the liberty of creating one which you can find here.

you can install it using bower:

$ bower install chart.horizontalbar

the syntax for creating a chart is exactly the same as for creating a standard (vertical) bar chart:

var mychart = new chart(ctx).horizontalbar(data, options);

it's a pretty quickly hacked together project but it worked great for what i needed! hope it helps.


i know it might be not helpful to you but might help someone else, google charts are really good take a look at it

Related Query

More Query from same tag