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

Issue 2124113002: Fix chart legends. (Closed)

Created:
4 years, 5 months ago by benjhayden
Modified:
4 years, 5 months ago
CC:
catapult-reviews_chromium.org, tracing-review_chromium.org
Base URL:
https://github.com/catapult-project/catapult.git@master
Target Ref:
refs/heads/master
Project:
catapult
Visibility:
Public.

Description

Fix chart legends. Currently, chart legend keys are colored text that can be obscured by data bars. This CL moves legend keys to the right margin of the chart, elides them with text-overflow, allows them to be analysis-links, adds color to analysis-links, adds checkboxes next to legend-keys for optional data series, hides data series when those checkboxes are unchecked, refactors seriesKeys_ into a Map of DataSeries objects "seriesByKey_", allows hiding either axis in 2d charts, cleans out a dead method in pie_chart, and fixes hovering over value text in pie_chart. Screenshot: https://screenshot.googleplex.com/AH3wxRygY3K.png Committed: https://chromium.googlesource.com/external/github.com/catapult-project/catapult/+/9b7295966d4c3edaad4f7e21bc51f61b44e32876

Patch Set 1 #

Total comments: 29

Patch Set 2 : comments #

Total comments: 20

Patch Set 3 : finished refactoring DataSeries Map #

Unified diffs Side-by-side diffs Delta from patch set Stats (+383 lines, -84 lines) Patch
M tracing/tracing/base/event.html View 1 2 1 chunk +9 lines, -1 line 0 comments Download
M tracing/tracing/ui/analysis/analysis_link.html View 2 chunks +6 lines, -0 lines 0 comments Download
M tracing/tracing/ui/base/bar_chart.html View 1 2 7 chunks +26 lines, -14 lines 0 comments Download
M tracing/tracing/ui/base/bar_chart_test.html View 1 2 1 chunk +52 lines, -0 lines 0 comments Download
M tracing/tracing/ui/base/chart_base.html View 1 2 9 chunks +237 lines, -35 lines 0 comments Download
M tracing/tracing/ui/base/chart_base_2d.html View 1 2 7 chunks +37 lines, -20 lines 0 comments Download
M tracing/tracing/ui/base/line_chart.html View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M tracing/tracing/ui/base/pie_chart.html View 1 2 5 chunks +14 lines, -13 lines 0 comments Download

Messages

Total messages: 25 (16 generated)
benjhayden
PTAL :-)
4 years, 5 months ago (2016-07-06 23:18:06 UTC) #8
eakuefner
Nice cleanup! lgtm if Charlie is happy.
4 years, 5 months ago (2016-07-07 17:49:35 UTC) #9
charliea (OOO until 10-5)
Didn't have time to review the full CL quite yet, but thought it might save ...
4 years, 5 months ago (2016-07-07 21:36:00 UTC) #10
benjhayden
https://codereview.chromium.org/2124113002/diff/20001/tracing/tracing/ui/base/bar_chart.html File tracing/tracing/ui/base/bar_chart.html (right): https://codereview.chromium.org/2124113002/diff/20001/tracing/tracing/ui/base/bar_chart.html#newcode27 tracing/tracing/ui/base/bar_chart.html:27: this.xCushion_ = 1; On 2016/07/07 at 21:35:59, charliea wrote: ...
4 years, 5 months ago (2016-07-07 22:40:19 UTC) #11
charliea (OOO until 10-5)
Got it. Everything makes much more sense to me now! Added a few remaining comments. ...
4 years, 5 months ago (2016-07-08 19:10:39 UTC) #12
benjhayden
PTAL :-) https://codereview.chromium.org/2124113002/diff/20001/tracing/tracing/ui/base/chart_base.html File tracing/tracing/ui/base/chart_base.html (right): https://codereview.chromium.org/2124113002/diff/20001/tracing/tracing/ui/base/chart_base.html#newcode31 tracing/tracing/ui/base/chart_base.html:31: <div id="span"></div> On 2016/07/08 at 19:10:38, charliea ...
4 years, 5 months ago (2016-07-09 04:52:39 UTC) #19
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/2124113002/140001
4 years, 5 months ago (2016-07-12 04:15:13 UTC) #22
commit-bot: I haz the power
Committed patchset #3 (id:140001) as https://chromium.googlesource.com/external/github.com/catapult-project/catapult/+/9b7295966d4c3edaad4f7e21bc51f61b44e32876
4 years, 5 months ago (2016-07-12 04:39:22 UTC) #24
nednguyen
4 years, 5 months ago (2016-07-12 17:47:14 UTC) #25
Message was sent while issue was closed.
On 2016/07/12 04:39:22, commit-bot: I haz the power wrote:
> Committed patchset #3 (id:140001) as
>
https://chromium.googlesource.com/external/github.com/catapult-project/catapu...

I look at this a bit late but the checkbox feature look awesome!

Powered by Google App Engine
This is Rietveld 408576698