canvas-linearlinechart
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -63,4 +63,7 @@ module.exports = canvasLinearLineChart; | ||
var xAnchor = xScale(marker[0]); | ||
if (xAnchor < 20) xAnchor = 20; | ||
if (xAnchor > (width - 20)) xAnchor = width - 20; | ||
var labelWidth = marker[1].length * 12; | ||
var labelWidthH = labelWidth / 2; | ||
if (xAnchor < labelWidthH) xAnchor = labelWidthH; | ||
if (xAnchor > (width - labelWidthH)) xAnchor = width - labelWidthH; | ||
ctx.fillStyle = '#3bb2d0'; | ||
@@ -67,0 +70,0 @@ ctx.font = 'bold 20px monospace'; |
{ | ||
"name": "canvas-linearlinechart", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "linear canvas chart", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
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
2659
60