Kanaries / pygwalker

PyGWalker: Turn your pandas dataframe into an interactive UI for visual analysis
https://kanaries.net/pygwalker
Apache License 2.0
13.43k stars 701 forks source link

[BUG] pygwalker bug report #310

Closed dev72 closed 9 months ago

dev72 commented 1 year ago

Describe the bug in config>format you can set a formatting string for numbers but it is used only for charts, not for tables.

To Reproduce Simply set a formatting string, for example '.2f' then set mak type to table: nothing seems formatted.

Expected behavior Numbers formatted in table same as in charts

Versions

longxiaofei commented 1 year ago

Thanks for feedback, we wiil fix it.

BassCoder2808 commented 11 months ago

Hi @longxiaofei I would like to work on this issue if it is still open

longxiaofei commented 10 months ago

Hi @BassCoder2808 , this issue is still open, the developers of graphic-walker will sync the details with you. @islxyqwe

islxyqwe commented 10 months ago

@BassCoder2808 You can create a pull request at https://github.com/Kanaries/graphic-walker just get the formatting from layout.format and apply it when rendering data in pivot table.

packages/graphic-walker/src/components/pivotTable/index.tsx packages/graphic-walker/src/components/pivotTable/metricTable.tsx