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

zz-chart

Package Overview
Dependencies
Maintainers
1
Versions
122
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zz-chart - npm Package Compare versions

Comparing version 0.0.9 to 0.1.0

12

lib/strategy/uplot-strategy.js

@@ -97,3 +97,3 @@ import { merge } from 'lodash';

if (this.ctrl.getData().length) {
this.uPlot.redraw();
this.uPlot.redraw(false);
}

@@ -131,4 +131,8 @@ }

const shape = this.ctrl.getOption().shape;
const shapes = Object.values(shape);
const defaultType = Object.keys(shape)[0] || 'line';
let defaultType = 'line';
let shapes;
if (shape) {
shapes = Object.values(shape);
defaultType = Object.keys(shape)[0] || 'line';
}
return [

@@ -138,3 +142,3 @@ {},

const c = color || getChartColor(index);
const type = shapes.find(d => d.name === name)?.type || defaultType;
const type = shapes?.find(d => d.name === name)?.type || defaultType;
return {

@@ -141,0 +145,0 @@ stroke: c,

{
"name": "zz-chart",
"version": "0.0.9",
"version": "0.1.0",
"type": "module",

@@ -5,0 +5,0 @@ "description": "Alauda Chart",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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