Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Issue 2329843002: Add BarChart. (Closed)

Created:
4 years, 3 months ago by benjhayden
Modified:
4 years, 3 months ago
CC:
catapult-reviews_chromium.org, tracing-review_chromium.org
Target Ref:
refs/heads/master
Project:
catapult
Visibility:
Public.

Description

Add BarChart. Currently, ColumnChart draws vertical columns, but there is no equivalent chart for horizontal bars. BarChart extends ColumnChart, but transposes the axes so that bars are drawn horizontally. This required factoring parts of the base classes to allow BarChart to override them. BUG=catapult:#2677 Committed: https://chromium.googlesource.com/external/github.com/catapult-project/catapult/+/c42044026b814c6c090b70879ffc571aff8dcf1c

Patch Set 1 : . #

Patch Set 2 : rebase, only refactor ColumnChart #

Patch Set 3 : refactor ChartBase2DBrushableX #

Patch Set 4 : only refactor ChartBase2D #

Patch Set 5 : bar_chart_test.html #

Patch Set 6 : empty bar_chart.html #

Patch Set 7 : working #

Total comments: 4

Patch Set 8 : fix stacking #

Patch Set 9 : BarChart horizontal and vertical scales #

Unified diffs Side-by-side diffs Delta from patch set Stats (+291 lines, -164 lines) Patch
A tracing/tracing/ui/base/bar_chart.html View 1 2 3 4 5 6 7 8 1 chunk +139 lines, -0 lines 0 comments Download
A + tracing/tracing/ui/base/bar_chart_test.html View 1 2 3 4 10 chunks +12 lines, -62 lines 0 comments Download
M tracing/tracing/ui/base/chart_base_2d.html View 1 2 3 4 chunks +68 lines, -44 lines 0 comments Download
M tracing/tracing/ui/base/chart_base_2d_brushable_x.html View 2 1 chunk +4 lines, -0 lines 0 comments Download
M tracing/tracing/ui/base/column_chart.html View 1 4 chunks +68 lines, -58 lines 0 comments Download

Messages

Total messages: 27 (15 generated)
benjhayden
PTAL :-) Please review the inheritance hierarchy for any other math that BarChart needs to ...
4 years, 3 months ago (2016-09-11 05:58:21 UTC) #8
benjhayden
+fmeawad FYI, feel free to review or not as you wish. :-)
4 years, 3 months ago (2016-09-11 22:30:15 UTC) #11
benjhayden
Why don't I split this into a CL that renames BarChart to ColumnChart, and a ...
4 years, 3 months ago (2016-09-12 23:17:15 UTC) #12
aiolos (Not reviewing)
On 2016/09/12 23:17:15, benjhayden wrote: > Why don't I split this into a CL that ...
4 years, 3 months ago (2016-09-12 23:21:07 UTC) #13
benjhayden
Hold this CL; review this one first: https://codereview.chromium.org/2334973002
4 years, 3 months ago (2016-09-12 23:32:26 UTC) #14
benjhayden
OK, ready. You can read each patch 2-6 separately as a series of refactors to ...
4 years, 3 months ago (2016-09-13 04:12:28 UTC) #18
benjhayden
debug stacked https://codereview.chromium.org/2329843002/diff/180001/tracing/tracing/ui/base/bar_chart.html File tracing/tracing/ui/base/bar_chart.html (right): https://codereview.chromium.org/2329843002/diff/180001/tracing/tracing/ui/base/bar_chart.html#newcode39 tracing/tracing/ui/base/bar_chart.html:39: .attr('y', function(d) { use arrows https://codereview.chromium.org/2329843002/diff/180001/tracing/tracing/ui/base/bar_chart.html#newcode66 tracing/tracing/ui/base/bar_chart.html:66: ...
4 years, 3 months ago (2016-09-13 21:10:22 UTC) #19
eakuefner
lgtm
4 years, 3 months ago (2016-09-13 21:18:48 UTC) #20
aiolos (Not reviewing)
lgtm once the stacked chart is debugged.
4 years, 3 months ago (2016-09-13 21:19:25 UTC) #21
benjhayden
I was trying to be too clever in BarChart.drawRect_. widthPx should just be heightPx, not ...
4 years, 3 months ago (2016-09-14 01:24:33 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2329843002/220001
4 years, 3 months ago (2016-09-14 01:24:40 UTC) #25
commit-bot: I haz the power
4 years, 3 months ago (2016-09-14 01:46:44 UTC) #27
Message was sent while issue was closed.
Committed patchset #9 (id:220001) as
https://chromium.googlesource.com/external/github.com/catapult-project/catapu...

Powered by Google App Engine
This is Rietveld 408576698