Improve graphs

This commit is contained in:
Wilson Lin 2020-01-12 17:48:00 +11:00
parent ce17dd3e98
commit 80d619eeac
3 changed files with 4 additions and 2 deletions

View File

@ -34,6 +34,8 @@ const chartOptions = (title, displayLegend, yTick = t => t) => ({
color: '#ccc',
},
ticks: {
min: 0,
max: 1,
callback: yTick,
fontColor: '#666',
},
@ -77,7 +79,7 @@ const renderChart = async (file, cfg) => {
// Include it this if this situation changes.
datasets: [{
label: 'Average relative OP/s',
backgroundColor: '#0366d6',
backgroundColor: '#1f77b4',
data: speedData.map(([_, v]) => v),
}],
},
@ -99,7 +101,7 @@ const renderChart = async (file, cfg) => {
labels: sizeData.map(([n]) => n),
datasets: [{
label: 'Average minified size',
backgroundColor: '#0366d6',
backgroundColor: '#2ca02c',
data: sizeData.map(([_, v]) => v),
}],
},

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB