Skip to content

Commit

Permalink
fixes #92 (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
veggiesaurus authored Dec 12, 2018
1 parent 87c6c79 commit da30329
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"@blueprintjs/core": "^3.8.0",
"@blueprintjs/icons": "^3.3.0",
"@blueprintjs/select": "^3.2.1",
"chart.js": "^2.7.3",
"chart.js": "veggiesaurus/Chart.js#midpoint_step_interpolation",
"chartjs-plugin-annotation": "^0.5.7",
"glslify-loader": "^1.0.2",
"golden-layout": "^1.5.9",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,8 @@ export class PlotContainerComponent extends React.Component<PlotContainerProps>
else {
datasetConfig.pointRadius = 0;
datasetConfig.showLine = true;
datasetConfig.steppedLine = !this.props.interpolateLines;
// @ts-ignore TODO: Remove once Chart.js types are updated
datasetConfig.steppedLine = this.props.interpolateLines ? false : "midpoint";
datasetConfig.borderWidth = 1;
datasetConfig.borderColor = lineColor;
}
Expand Down

0 comments on commit da30329

Please sign in to comment.