@density/chart-count-graph
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -140,3 +140,7 @@ 'use strict'; | ||
var yPosition = yScale(i.count); | ||
return total + 'H' + xPosition + 'V' + yPosition; | ||
if (xPosition >= 0) { | ||
return total + 'H' + xPosition + 'V' + yPosition; | ||
} else { | ||
return total; | ||
} | ||
}, ''); | ||
@@ -143,0 +147,0 @@ |
@@ -137,3 +137,7 @@ import './styles.scss'; | ||
const yPosition = yScale(i.count); | ||
return `${total}H${xPosition}V${yPosition}`; | ||
if (xPosition >= 0) { | ||
return `${total}H${xPosition}V${yPosition}`; | ||
} else { | ||
return total; | ||
} | ||
}, ''); | ||
@@ -140,0 +144,0 @@ |
{ | ||
"name": "@density/chart-count-graph", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "Count Graph chart", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
# Count Graph Chart | ||
A graph of counts over time for a given space. | ||
A graph of counts over time for a given space. [npm](https://npmjs.com/@density/chart-count-graph) | ||
![Chart Example](chart.gif) | ||
![Chart Example](https://i.imgur.com/IucfBdE.gif) | ||
@@ -6,0 +6,0 @@ # Using this chart |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
509137
1330
1