Page MenuHomePhabricator

Add a "sin()" function to charts

Authored by epriestley on Apr 17 2019, 2:28 PM.



Depends on D20443. Ref T13279. This is probably not terribly useful on its own, but is mostly a function which takes another function as an argument, and a step toward more useful functions like arithmetic and drawing a picture of an owl.

The only structural change here is that functions now read data parameters (domain, sample limit) using a more tailored "ChartDataQuery" instead of reading the actual axis. Mostly, I want a more cohesive representation of query state that can be easily passed to sub-functions, as here.

Test Plan

Diff Detail

rP Phabricator
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

epriestley created this revision.Apr 17 2019, 2:28 PM
epriestley requested review of this revision.Apr 17 2019, 2:30 PM
amckinley accepted this revision.Apr 17 2019, 11:18 PM
This revision is now accepted and ready to land.Apr 17 2019, 11:18 PM
This revision was automatically updated to reflect the committed changes.