Skip to content

Support integer or string value formatting for PieChart (instead of float with decimals) #13

@mouness2020

Description

@mouness2020

Hello 👋

I would like to know if the library currently supports, or if you plan to add, a feature for customizing the value format in PieChart / MultipleDonutChart.

Right now, the values are displayed as Float with decimals. My use case requires showing values as integers (e.g., 42 instead of 42.0) or even as custom strings.

Example expected behavior:
• Values displayed without decimals (e.g., 25 instead of 25.0)
• Option to pass a formatter (e.g., (Float) -> String) so the developer can control how values are rendered

This would make the charts more flexible in real-world scenarios where decimals are not desired.

Is this currently supported? If not, would you consider adding a valueFormatter parameter or similar customization option?

Thanks a lot for the great work on this library 🙏

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions