Page MenuHomePhabricator

Fetch chart data via async request and redraw charts when the window is resized
ClosedPublic

Authored by epriestley on Apr 17 2019, 2:31 AM.
Tags
None
Referenced Files
F18188176: D20440.diff
Sat, Aug 16, 9:12 PM
F18100443: D20440.id.diff
Sat, Aug 9, 11:54 AM
F17758966: D20440.diff
Tue, Jul 22, 5:55 PM
Unknown Object (File)
Jul 3 2025, 6:36 PM
Unknown Object (File)
Jun 27 2025, 9:57 AM
Unknown Object (File)
Jun 19 2025, 3:26 PM
Unknown Object (File)
Jun 5 2025, 4:20 PM
Unknown Object (File)
Jun 3 2025, 4:18 PM
Subscribers

Details

Summary

Depends on D20439. Ref T13279. Some day, charts will probably need to reload themselves or do a bunch of defer/request-shaping magic when they're on a dashboard with 900 other charts.

Give the controller separate "HTML placeholder" and "actual data" modes, and make the placeholder fetch the data in a separate request.

Then, make the chart redraw if you resize the window instead of staying at whatever size it started as.

Test Plan
  • Loaded a chart, saw it load data asynchronously.
  • Resized the window, saw the chart resize.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable