diff options
| author | alyssaf16 <alyssa_feinberg@brown.edu> | 2024-02-22 00:47:01 -0500 |
|---|---|---|
| committer | alyssaf16 <alyssa_feinberg@brown.edu> | 2024-02-22 00:47:01 -0500 |
| commit | 5eea93139bf95f761ef1511fd356c853346cc201 (patch) | |
| tree | 37a49c5b0f972e7ded9cc1759604098309a6aa91 /src/client/views/nodes/DataVizBox/utils | |
| parent | 6347450d819adad872eab40737b2c72200c5e675 (diff) | |
| parent | d04821dee28fdecda33ff7773dd5a1567202842c (diff) | |
Merge branch 'master' into alyssa-starter
Diffstat (limited to 'src/client/views/nodes/DataVizBox/utils')
| -rw-r--r-- | src/client/views/nodes/DataVizBox/utils/D3Utils.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/nodes/DataVizBox/utils/D3Utils.ts b/src/client/views/nodes/DataVizBox/utils/D3Utils.ts index 10bfb0c64..336935d23 100644 --- a/src/client/views/nodes/DataVizBox/utils/D3Utils.ts +++ b/src/client/views/nodes/DataVizBox/utils/D3Utils.ts @@ -61,6 +61,6 @@ export const yGrid = (g: d3.Selection<SVGGElement, unknown, null, undefined>, wi ); }; -export const drawLine = (p: d3.Selection<SVGPathElement, unknown, null, undefined>, dataPts: DataPoint[], lineGen: d3.Line<DataPoint>) => { - p.datum(dataPts).attr('fill', 'none').attr('stroke', 'rgba(53, 162, 235, 0.5)').attr('stroke-width', 2).attr('class', 'line').attr('d', lineGen); +export const drawLine = (p: d3.Selection<SVGPathElement, unknown, null, undefined>, dataPts: DataPoint[], lineGen: d3.Line<DataPoint>, extra: boolean) => { + p.datum(dataPts).attr('fill', 'none').attr('stroke', 'rgba(53, 162, 235, 0.5)').attr('stroke-width', 2).attr('stroke', extra? 'blue' : 'black').attr('class', 'line').attr('d', lineGen); }; |
