mattosaurus / ChartJSCore

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

GenerateHorizontalBarChart method in BarChart test file generetas vertical barchart #81

Open xkovacsp1 opened 2 years ago

xkovacsp1 commented 2 years ago

Hi, I have found out that GenerateHorizontalBarChart method https://github.com/mattosaurus/ChartJSCore/blob/929b86bbb4aa1f3484b71f54561dc274d4fe2beb/ChartJSCore.Tests/BarChart.cs#L93 does not generate horizontal barchart.

image Could you please help me fix this method?

mattosaurus commented 2 years ago

Hi, yep the tests aren't working at the moment.

There's a vertical example in the demo project though.

https://github.com/mattosaurus/ChartJSCore/blob/929b86bbb4aa1f3484b71f54561dc274d4fe2beb/ChartJSCore.Demo/Controllers/HomeController.cs

mattosaurus commented 2 years ago

Vertical and horizontal examples.

xkovacsp1 commented 2 years ago

Hi, yep the tests aren't working at the moment.

There's a vertical example in the demo project though.

https://github.com/mattosaurus/ChartJSCore/blob/929b86bbb4aa1f3484b71f54561dc274d4fe2beb/ChartJSCore.Demo/Controllers/HomeController.cs

Could you please tell me how I can use BeginAtZero and Precision attribute with this horizontal barchart?