https://bugs.webkit.org/show_bug.cgi?id=141502
Reviewed by Chris Dumez.
* public/v2/interactive-chart.js:
(App.InteractiveChartComponent._updateDimensionsIfNeeded): Compute the number of ticks based on the
content size.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@179989
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2015-02-12 Ryosuke Niwa <rniwa@webkit.org>
+
+ v2 UI should adjust the number of ticks on dashboards based on screen size
+ https://bugs.webkit.org/show_bug.cgi?id=141502
+
+ Reviewed by Chris Dumez.
+
+ * public/v2/interactive-chart.js:
+ (App.InteractiveChartComponent._updateDimensionsIfNeeded): Compute the number of ticks based on the
+ content size.
+
2015-02-11 Ryosuke Niwa <rniwa@webkit.org>
New perf dashboard shows too much space around interesting data points
this._y.range([this._contentHeight, 0]);
if (this._xAxis) {
+ this._xAxis.ticks(Math.round(this._contentWidth / 4 / rem));
this._xAxis.tickSize(-this._contentHeight);
this._xAxisLabels.attr("transform", "translate(0," + this._contentHeight + ")");
}
- if (this._yAxis)
+ if (this._yAxis) {
+ this._yAxis.ticks(Math.round(this._contentHeight / 2 / rem));
this._yAxis.tickSize(-this._contentWidth);
+ }
if (this._currentItemLine) {
this._currentItemLine