
Research
/Security News
Coruna Respawned: Compromised art-template npm Package Leads to iOS Browser Exploit Kit
Compromised npm package art-template delivered a Coruna-like iOS Safari exploit framework through a watering-hole attack.
@clunch/line
Advanced tools
📈 折线图组件,包括折线和曲线、单条、多条、背景、渐变等常见的折线图。

首先,需要安装npm包(目前我们仅支持npm方式管理):
npm install --save clunch @clunch/line
然后注册组件:
import Clunch from 'clunch';
import line from '@clunch/line';
Clunch.series('ui-line',line);
然后,你就可以使用这个组件了:
<ui-line data='Array' ruler='Array<String>'/>
[[19,22,32],[1,22,3],[1,2,63],...]或[51,23,3,...])["一月","二月","三月",...])除了上面的必输项外,还有下列可选项:
| 属性 | 类型 | 描述 | 默认值 | 可选值 |
|---|---|---|---|---|
| x | number | 图形左上角位置横坐标 | 0 | |
| y | number | 图形左上角位置纵坐标 | 0 | |
| width | number | 图形宽 | 画布的宽 | |
| height | number | 图形高 | 画布的高 | |
| colors | Array<string> | 线条的颜色 | 内置循环色 | |
| max-value | number | 最大值 | 动态计算得出 | |
| min-value | number | 最小值 | 动态计算得出 |
由于此组件是基于Clunch开发的,我们默认你已经掌握了相关知识。
Copyright (c) 2021 hai2007 走一步,再走一步。
FAQs
📈 折线图组件,包括折线和曲线、单条、多条、背景、渐变等常见的折线图。
The npm package @clunch/line receives a total of 10 weekly downloads. As such, @clunch/line popularity was classified as not popular.
We found that @clunch/line demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
Compromised npm package art-template delivered a Coruna-like iOS Safari exploit framework through a watering-hole attack.

Company News
As AI accelerates how code is written and shipped, Socket is scaling to protect the software supply chain from the growing wave of attacks targeting open source dependencies.

Company News
Socket is scaling to defend open source against supply chain attacks as AI accelerates software development.