You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Add 'Even X-Axis Spacing' toggle to chart settings
This change introduces a new toggle in the settings dialog of
explore-simple-sk, allowing users to space X-axis points
evenly, regardless of their numerical value.
- Adds an md-switch for 'Even X-Axis Spacing' to the settings dialog template.
- Updates plot-google-chart-sk's 'useDiscreteAxis' property when the toggle changes.
- Dispatches an 'even-x-axis-spacing-changed' event with the new value and graph_index.
- Updates explore-multi-sk and report-page-sk to listen for this event and synchronize the state across all child
explore-simple-sk instances.
- Adds unit tests for the new toggle and event handling in explore-simple-sk, explore-multi-sk, and report-page-sk.
- Updates mock factories in tests to support necessary methods like setUseDiscreteAxis and render.
Bug: 418808644
Change-Id: I9073bd5d4409ed288022e9b72dd921b8e256e8eb
Reviewed-on: https://skia-review.googlesource.com/c/buildbot/+/1120909
Commit-Queue: Eduardo Yap <[email protected]>
Reviewed-by: Tony Seaward <[email protected]>
0 commit comments