add font size adjustment for chart labels in HorizontalBarChart

This commit is contained in:
Vaibhav Surve 2025-04-15 16:29:11 +05:30
parent 19df5a55ff
commit b57b46440d

View File

@ -74,6 +74,7 @@ const HorizontalBarChart = ({
textAnchor: "center",
style: {
colors: ["#000"], // Black labels
fontSize: "8px",
},
formatter: function (_, opt) {
const originalVal = sortedSeriesData[opt.dataPointIndex]; // Show real value