From aa5ca5c7e5f2695d4f1e589d907778b3e94bd2e1 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Fri, 31 Mar 2017 17:48:53 +0200 Subject: fix measure timeline --- .../details/history/MeasureHistory.js | 1 + .../sonar-web/src/main/js/components/charts/Timeline.js | 17 ++++++++++------- 2 files changed, 11 insertions(+), 7 deletions(-) (limited to 'server/sonar-web/src/main/js') diff --git a/server/sonar-web/src/main/js/apps/component-measures/details/history/MeasureHistory.js b/server/sonar-web/src/main/js/apps/component-measures/details/history/MeasureHistory.js index 75f439d3ecc..dc1202526b1 100644 --- a/server/sonar-web/src/main/js/apps/component-measures/details/history/MeasureHistory.js +++ b/server/sonar-web/src/main/js/apps/component-measures/details/history/MeasureHistory.js @@ -122,6 +122,7 @@ export default class MeasureHistory extends React.Component { return (
xScale(d.x)).y(d => yScale(d.y)).interpolate(this.props.interpolate); + const p = d3Line().x(d => xScale(d.x)).y(d => yScale(d.y)); + if (this.props.basisCurve) { + p.curve(curveBasis); + } return ; }, -- cgit v1.2.3