@density/chart-historical-counts
Advanced tools
Comparing version 1.3.1 to 1.3.2
@@ -178,3 +178,3 @@ 'use strict'; | ||
var yPosition = yScale(i.count); | ||
if (xPosition >= 0) { | ||
if (xPosition > 0) { | ||
return total + 'H' + xPosition + 'V' + yPosition; | ||
@@ -187,3 +187,3 @@ } else { | ||
graphGroup.select('.historical-counts-path').attr('d', pathPrefix + linePath + pathSuffix); | ||
graphGroup.select('.historical-counts-path-outline').attr('d', pathPrefix + linePath + ('H' + graphWidth)); | ||
graphGroup.select('.historical-counts-path-outline').attr('d', 'M0,' + yScale(initialCount) + linePath + ('H' + graphWidth)); | ||
@@ -190,0 +190,0 @@ // Draw the axes in the svg |
@@ -173,3 +173,3 @@ import './styles.scss'; | ||
const yPosition = yScale(i.count); | ||
if (xPosition >= 0) { | ||
if (xPosition > 0) { | ||
return `${total}H${xPosition}V${yPosition}`; | ||
@@ -184,3 +184,3 @@ } else { | ||
graphGroup.select('.historical-counts-path-outline') | ||
.attr('d', pathPrefix + linePath + `H${graphWidth}`); | ||
.attr('d', `M0,${yScale(initialCount)}` + linePath + `H${graphWidth}`); | ||
@@ -187,0 +187,0 @@ |
{ | ||
"name": "@density/chart-historical-counts", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": "Historical Counts chart", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
608085