HL
HJ L

Vertical Bar Graph - Copy this React, Tailwind Component to your project

const percent = ((dataset.data[segment.index] / total) * 100).toFixed(1) + "%"; I think this part is not calculated as a numeric type. It prints NaN% on the screen. Please check this part and fix it.

Prompt
Component Preview

About

VerticalBarGraph - A responsive bar graph displaying percentage values accurately, fixing NaN errors. Built with React and Tailwind. Download free code!

Share

Last updated 1 month ago