diff options
| author | bobzel <zzzman@gmail.com> | 2024-03-10 09:48:15 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2024-03-10 09:48:15 -0400 |
| commit | 36d18da80e5e5e1c6cae0dc21c1677a7ab9c1d77 (patch) | |
| tree | 69dae37de1312ff8704e661a8e9dda98da30346a /src/client/views/nodes/DataVizBox/utils | |
| parent | 2279f029ce19c9f7f886a6966ea5f23be9468890 (diff) | |
| parent | a9eb266296d1b71f1016c867f39e20299c011eea (diff) | |
Merge branch 'master' into eleanor-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); }; |
