David Pomerenke
commited on
Commit
·
68e918f
1
Parent(s):
de40d0a
Add symbols for progress plot
Browse files
frontend/src/components/HistoryPlot.js
CHANGED
@@ -28,14 +28,15 @@ const HistoryPlot = ({ data }) => {
|
|
28 |
y: {
|
29 |
label: 'Language Proficiency Score'
|
30 |
},
|
31 |
-
|
32 |
legend: true
|
33 |
},
|
34 |
marks: [
|
35 |
Plot.dot(models, {
|
36 |
x: d => d.creation_date,
|
37 |
y: d => d.average,
|
38 |
-
|
|
|
39 |
title: d =>
|
40 |
`${d.provider_name} - ${d.name} (${
|
41 |
d.size?.toLocaleString('en-US', { notation: 'compact' }) || '?B'
|
@@ -54,7 +55,7 @@ const HistoryPlot = ({ data }) => {
|
|
54 |
x: d => d.creation_date,
|
55 |
y: d => d.maxAverage,
|
56 |
curve: 'step-after',
|
57 |
-
strokeOpacity: 0.
|
58 |
}
|
59 |
)
|
60 |
]
|
|
|
28 |
y: {
|
29 |
label: 'Language Proficiency Score'
|
30 |
},
|
31 |
+
symbol: {
|
32 |
legend: true
|
33 |
},
|
34 |
marks: [
|
35 |
Plot.dot(models, {
|
36 |
x: d => d.creation_date,
|
37 |
y: d => d.average,
|
38 |
+
symbol: "provider_name",
|
39 |
+
stroke: "provider_name",
|
40 |
title: d =>
|
41 |
`${d.provider_name} - ${d.name} (${
|
42 |
d.size?.toLocaleString('en-US', { notation: 'compact' }) || '?B'
|
|
|
55 |
x: d => d.creation_date,
|
56 |
y: d => d.maxAverage,
|
57 |
curve: 'step-after',
|
58 |
+
strokeOpacity: 0.3
|
59 |
}
|
60 |
)
|
61 |
]
|