Skip to content

Commit 662a397

Browse files
committed
remove most graph shadows
1 parent 2949c7d commit 662a397

2 files changed

Lines changed: 22 additions & 8 deletions

File tree

codespeed/static/js/comparison.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,8 @@ function renderComparisonPlot(plotid, benchmarks, exes, enviros, baseline, chart
337337

338338
plotoptions.legend = {show: true, location: 'ne'};
339339
plotoptions.series = series;
340+
plotoptions.grid = {borderColor: '#9DADC6', shadow: false, drawBorder: true};
341+
plotoptions.seriesDefaults.shadow = false;
340342

341343
// determine conditions for rendering the legend outside the plot area
342344
var offplot = false;

codespeed/static/js/timeline.js

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -181,28 +181,35 @@ function renderPlot(data) {
181181
}
182182
var plotoptions = {
183183
title: {text: data.benchmark, fontSize: '1.1em'},
184+
grid: {borderColor: '#9DADC6', shadow: false, drawBorder: true},
184185
series: series,
186+
axesDefaults: {
187+
tickOptions: {
188+
fontFamily: 'Arial'
189+
}
190+
},
185191
axes:{
186192
yaxis:{
187193
label: data.units + data.lessisbetter,
188194
labelRenderer: $.jqplot.CanvasAxisLabelRenderer,
189-
min: 0, autoscale:true,
190-
tickOptions:{formatString:'%.' + digits + 'f'}
195+
min: 0,
196+
autoscale: true,
197+
tickOptions: {formatString:'%.' + digits + 'f'}
191198
},
192199
xaxis:{
193200
renderer: (shouldPlotEquidistant()) ? $.jqplot.CategoryAxisRenderer : $.jqplot.DateAxisRenderer,
194201
label: 'Commit date',
195202
labelRenderer: $.jqplot.CanvasAxisLabelRenderer,
196-
tickOptions:{formatString:'%b %d'},
203+
tickOptions: {formatString:'%b %d'},
197204
pad: 1.01,
198-
autoscale:true,
199-
rendererOptions:{sortMergedLabels:true} /* only relevant when
200-
$.jqplot.CategoryAxisRenderer is used */
205+
autoscale: true,
206+
rendererOptions: {sortMergedLabels:true} /* only relevant when
207+
$.jqplot.CategoryAxisRenderer is used */
201208
}
202209
},
203210
legend: {show: true, location: 'nw'},
204211
highlighter: getHighlighterConfig(median),
205-
cursor:{show:true, zoom:true, showTooltip:false, clickReset:true}
212+
cursor: {show:true, zoom:true, showTooltip:false, clickReset:true}
206213
};
207214
if (series.length > 4 + hiddenSeries) {
208215
// Move legend outside plot area to unclutter
@@ -246,7 +253,12 @@ function renderMiniplot(plotid, data) {
246253

247254
var plotoptions = {
248255
title: {text: data.benchmark, fontSize: '1.1em'},
249-
seriesDefaults: {lineWidth: 2, markerOptions:{style:'circle', size: 6}},
256+
grid: {borderColor: '#9DADC6', shadow: false, drawBorder: true},
257+
seriesDefaults: {
258+
shadow: false,
259+
lineWidth: 2,
260+
markerOptions: {style:'circle', size: 6}
261+
},
250262
series: series,
251263
axes: {
252264
yaxis: {

0 commit comments

Comments
 (0)