RESOLVED FIXED 193982
Web Inspector: Improve API and documentation of ColumnChart
https://bugs.webkit.org/show_bug.cgi?id=193982
Summary Web Inspector: Improve API and documentation of ColumnChart
Joseph Pecoraro
Reported 2019-01-29 14:10:52 PST
Improve API and documentation of ColumnChart Used to be "BarChart" and some remnants of "bar" still existed.
Attachments
[PATCH] Proposed Fix (6.27 KB, patch)
2019-01-29 14:11 PST, Joseph Pecoraro
hi: review+
Joseph Pecoraro
Comment 1 2019-01-29 14:11:51 PST
Created attachment 360500 [details] [PATCH] Proposed Fix
Devin Rousso
Comment 2 2019-01-29 14:24:59 PST
Comment on attachment 360500 [details] [PATCH] Proposed Fix View in context: https://bugs.webkit.org/attachment.cgi?id=360500&action=review r=me > Source/WebInspectorUI/ChangeLog:8 > + This used to be named "BarChart", convert remaining instances Grammar: this sentence is a fragment, so use a ";" or add some other conjunction. > Source/WebInspectorUI/UserInterface/Views/ColumnChart.js:59 > + get columns() { return this._columns; } Considering that nobody calls this (and frankly the data it contains is really not very useful), I think we should just remove this. > Source/WebInspectorUI/UserInterface/Views/ColumnChart.js:82 > + this._columns = []; I feel like this should call `this.needsLayout()` 🤔 > Source/WebInspectorUI/UserInterface/Views/ColumnChart.js:85 > needsLayout() Perhaps this class should be a subclass of `WI.View`? > Source/WebInspectorUI/UserInterface/Views/StackedLineChart.js:63 > + get element() { return this._element; } Yes! ᕦ(ò_óˇ)ᕤ
Joseph Pecoraro
Comment 3 2019-01-31 13:15:49 PST
(In reply to Devin Rousso from comment #2) > Comment on attachment 360500 [details] > [PATCH] Proposed Fix > > View in context: > https://bugs.webkit.org/attachment.cgi?id=360500&action=review > > r=me > > > Source/WebInspectorUI/ChangeLog:8 > > + This used to be named "BarChart", convert remaining instances > > Grammar: this sentence is a fragment, so use a ";" or add some other > conjunction. kk. > > Source/WebInspectorUI/UserInterface/Views/ColumnChart.js:59 > > + get columns() { return this._columns; } > > Considering that nobody calls this (and frankly the data it contains is > really not very useful), I think we should just remove this. Okay. > > Source/WebInspectorUI/UserInterface/Views/ColumnChart.js:85 > > needsLayout() > > Perhaps this class should be a subclass of `WI.View`? Will do in a bit.
Joseph Pecoraro
Comment 4 2019-02-01 13:25:58 PST
Radar WebKit Bug Importer
Comment 5 2019-02-01 13:26:38 PST
Note You need to log in before you can comment on or make changes to this bug.