coroo / nova-chartjs

A Simple Dashboard Chart in Laravel Nova using Chart JS. Starting create your own dashboard with Chart JS Integration can save your time and help you maintain consistency across standard elements such as Bar, Stacked, Line, Area, Doughnut and Pie Chart.
https://coroo.github.io/nova-chartjs
MIT License
215 stars 71 forks source link

Adjustable height #149

Open zeroxs opened 1 year ago

zeroxs commented 1 year ago

I found https://github.com/coroo/nova-chartjs/issues/64 but it is from 2 years ago. Trying to adjust height via the card does not appear to work.

There's this: https://github.com/coroo/nova-chartjs/blob/f6603f5767d3deeb531340e71995cdc732d97b2f/resources/js/stripe-chart.vue#L15-L20

but it's not passed from https://github.com/coroo/nova-chartjs/blob/master/resources/js/components/StripeChart.vue unless I'm missing something here. Some guidance would be greatly appreciated.

vesper8 commented 1 year ago

As a workaround you can do this:


#nova canvas#line-chart {
  height: 70vh !important;
}
Jonnx commented 1 year ago

is there an update on when the height issue will be resolved, having charts be only 120px tall is a pretty large regression especially when trying to render lots of data sets