Skip to content

Commit

Permalink
re
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismiceli committed Apr 30, 2024
1 parent 189ca0b commit b502795
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/svgGraphs.js
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ const {barLineGraph, stackedAreaGraph, pieGraph} = (function () {
}, []);

if (seriesToRender === "line" && seriesData.type === "line") {
let lineOffset = xValues.lengh < 2 ? (x(1) - x(0)) / 2 : 0;
let lineOffset = xValues.length < 2 ? (x(1) - x(0)) / 2 : 0;
const line = d3.line()
.x((d, i) => x(i) + lineOffset)
.y(({value}) => y(value));
Expand Down

0 comments on commit b502795

Please sign in to comment.