Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

canvas-linearlinechart

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

canvas-linearlinechart - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

7

index.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc