mattosaurus / ChartJSCore

Implementation of Chart.js for use with .NET Core.
GNU General Public License v3.0
116 stars 34 forks source link

Creating horizontal bar chart in version 3 #78

Open xkovacsp1 opened 2 years ago

xkovacsp1 commented 2 years ago

Hello, could you please tell me how I can create horizontal bar chart in version 3? I have seen that horizontal bar requires indexaxis option (see image below). As far as I know currently the source code does not support this option. image

mattosaurus commented 2 years ago

Hi, sorry for the delay on this.

Looks like vertical bar charts require x and y coordinates so I've updated the package to 3.3.0. An example is here.

https://github.com/mattosaurus/ChartJSCore/blob/929b86bbb4aa1f3484b71f54561dc274d4fe2beb/ChartJSCore.Demo/Controllers/HomeController.cs#L131-L237