1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-14 00:19:16 +01:00
unleash.unleash/frontend/src
Thomas Heartman 7ca8cc2276
fix: dynamic highlight width (#9166)
This makes the width of the highlight bars in the network dynamic and
based on the number of labels included in the chart.

Since the number of labels should always correspond to the number of
data points, this seems like a sensible approach.

With this, the label width will now be calculated on the fly, so even if
you resize the window or change the number of labels, the highlighting
will still work as expected.

Daily view:

![image](https://github.com/user-attachments/assets/e1d158db-0587-46b3-afb1-76dfc523505d)

Monthly aggregate:

![image](https://github.com/user-attachments/assets/8c74d2a3-afc8-4623-8ac7-0c263c7e6037)

The labels are now a little narrower on the daily graphs, but it avoids
them being super wide on the monthly graphs
2025-01-29 12:03:31 +01:00
..
__mocks__
assets feat: New in Unleash - Lifecycle 2.0 (#9112) 2025-01-20 11:50:44 +00:00
component fix: dynamic highlight width (#9166) 2025-01-29 12:03:31 +01:00
constants
contexts
hooks feat(1-3267): use new API for chart creation (#9149) 2025-01-29 10:43:41 +01:00
interfaces feat: configurable global font size (#9155) 2025-01-27 14:43:32 +01:00
openapi chore(1-3267): add orval schemas for the new API endpoint (#9164) 2025-01-29 09:11:29 +01:00
themes
types
utils
index.tsx
setupTests.ts
vite-env.d.ts