1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-22 23:02:42 +01:00
phorge-phorge/src
epriestley 81456db559 Roughly support stacked area charts
Summary:
Ref T13279. This adds support for:

  - Datasets can have types, like "stacked area".
  - Datasets can have multiple functions.
  - Charts can store dataset types and datasets with multiple functions.
  - Adds a "stacked area" dataset.
  - Makes D3 actually draw a stacked area chart.

Lots of rough edges here still, but the result looks slightly more like it's supposed to look.

D3 can do some of this logic itself, like adding up the area stacks on top of one another with `d3.stack()`. I'm doing it in PHP instead because I think it's a bit easier to debug, and it gives us more options for things like caching or "export to CSV" or "export to API" or rendering a data table under the chart or whatever.

Test Plan: {F6427780}

Reviewers: amckinley

Reviewed By: amckinley

Subscribers: yelirekim

Maniphest Tasks: T13279

Differential Revision: https://secure.phabricator.com/D20498
2019-05-22 05:19:41 -07:00
..
__tests__ Use PhutilClassMapQuery instead of PhutilSymbolLoader 2015-08-14 07:49:01 +10:00
aphront Add "Move Left" and "Move Right" to dashboard tab panels 2019-05-01 15:35:53 -07:00
applications Roughly support stacked area charts 2019-05-22 05:19:41 -07:00
docs Update "Autoclose" documentation to focus on "Permanent Refs" instead 2019-04-18 05:43:15 -07:00
extensions
infrastructure Build a rough transaction-level view of Feed 2019-05-21 12:28:00 -07:00
view Show "hold reasons" on commit page, not on "Edit" page 2019-04-25 09:22:49 -07:00
__phutil_library_init__.php
__phutil_library_map__.php Roughly support stacked area charts 2019-05-22 05:19:41 -07:00