
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
g2plot-lollipop
Advanced tools
基于G2Plot的棒棒糖图
它是柱状图的变形,采用圆+线进行绘制,圆心的位置代表数据值
npm install --save g2plot-lollipop
import { Lollipop } from 'g2plot-lollipop'
const data = [
{
type: '家具家电',
sales: 38,
},
{
type: '粮油副食',
sales: 52,
},
{
type: '生鲜水果',
sales: 61,
},
{
type: '美容洗护',
sales: 145,
},
{
type: '母婴用品',
sales: 48,
},
{
type: '进口食品',
sales: 38,
},
{
type: '食品饮料',
sales: 38,
},
{
type: '家庭清洁',
sales: 38,
},
];
const lollipop = new Lollipop('container', {
data,
xField:'type',
yField: 'sales',
radiusRatio: 0.4
})
lollipop.render()
diameterRatio(number) 圆直径占比 (0,1)
其余API与G2Plot柱状图配置保持一致
👤 MrSmallLiu
Give a ⭐️ if this project helped you!
Copyright © 2020 MrSmallLiu.
This project is MIT licensed.
FAQs
Lollipop based on G2Plot v2
We found that g2plot-lollipop 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.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.