Zaid-Ajaj / Feliz

A fresh retake of the React API in Fable and a collection of high-quality components to build React applications in F#, optimized for happiness
https://zaid-ajaj.github.io/Feliz/
MIT License
549 stars 83 forks source link

Add yAxis tickFormatter #625

Closed danne931 closed 1 month ago

danne931 commented 1 month ago

Fixes https://github.com/Zaid-Ajaj/Feliz/issues/436

Example usage:

Recharts.yAxis [
   yAxis.yAxisId "moneyFlow"
   yAxis.padding (bottom = opts.YAxisPaddingBottom)
   yAxis.tickCount opts.AmountInterval
   yAxis.tickFormatter (decimal >> Money.formatShort)
]

Demo of representing ticks as formatted short-form money instead of integers:

Screenshot 2024-10-11 at 4 38 09 PM
Zaid-Ajaj commented 1 month ago

Thanks a lot @danne931 for the contribution! Merged and published as of Feliz.Recharts v4.3.0