Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
npm install xl-chart --save-dev
import xlChart from "xl-chart"
本插件是为BI和快速创建手机版本图表而建,提供了快速重载,销毁重载等性能优化
pc版 还在考虑开放ing,如果需要 可以私信 1772907731@qq.com
const data = Array.from(Array(6).keys()).map((item)=>{
return {
num1:Math.floor(Math.random()*1000+1),
num2:Math.floor(Math.random()*1000+1),
record:"维度"+(item+1)
};
});
new xlChart.Normal(
dom,
{
data,
dataField: ["num1", "num2"],
recordField: "record",
seriesField: {
num1: {
name: "我是数据1",
type: "line",
color: "#6BEDD1",
},
num2: {
name: "我是数据2",
type: "bar",
color: "#00C49A"
}
}
}
);
const data = Array.from(Array(6).keys()).map((item)=>{
return {
num1:Math.floor(Math.random()*1000+1),
num2:Math.floor(Math.random()*1000+1),
record:"维度"+(item+1)
};
});
new xlChart.StackX(
dom,
{
data,
dataField: ["num1", "num2"],
recordField: "record",
seriesField: {
num1: {
name: "我是数据1",
type: "bar",
stack:"1",
color: "#6BEDD1",
},
num2: {
name: "我是数据2",
type: "bar",
stack:"1",
color: "#00C49A"
}
}
}
);
const data = Array.from(Array(6).keys()).map((item)=>{
return {
num1:Math.floor(Math.random()*1000+1),
num2:Math.floor(Math.random()*1000+1),
record:"维度"+(item+1)
};
});
new xlChart.StackY(
dom,
{
data,
dataField: ["num1", "num2"],
recordField: "record",
seriesField: {
num1: {
name: "我是数据1",
type: "bar",
stack:"1",
color: "#6BEDD1",
},
num2: {
name: "我是数据2",
type: "bar",
stack:"1",
color: "#00C49A"
}
}
}
);
const data = Array.from(Array(6).keys()).map((item)=>{
return {
num1:Math.floor(Math.random()*1000+1),
num2:Math.floor(Math.random()*1000+1),
record:"维度"+(item+1)
};
});
new xlChart.BarGrey(
dom,
{
data,
dataField: ["num1", "num2"],
recordField: "record",
seriesField: {
num1: {
name: "我是数据1",
type: "line",
color: "#6BEDD1",
},
num2: {
name: "我是数据2",
type: "bar",
color: "#00C49A"
}
}
}
);
const data = Array.from(Array(6).keys()).map((item)=>{
return {
num1:Math.floor(Math.random()*1000+1),
num2:Math.floor(Math.random()*1000+1),
record:"维度"+(item+1)
};
});
new xlChart.BarExtreme(
dom,
{
data,
dataField: ["num1", "num2"],
recordField: "record",
seriesField: {
num1: {
name: "我是数据1",
type: "bar",
color: "#6BEDD1",
},
num2: {
name: "我是数据2",
type: "bar",
color: "#00C49A"
}
}
}
);
new xlChart.Pie(
dom,
{
data:{
num1:Math.floor(Math.random()*1000+1),
num2:Math.floor(Math.random()*1000+1),
num3:Math.floor(Math.random()*1000+1),
},
dataField: ["num1", "num2", "num3"],
seriesField: {
num1: {
name: "我是数据1",
color: "#6BEDD1",
},
num2: {
name: "我是数据2",
color: "#00C49A"
},
num3: {
name: "我是数据3",
color: "#FA8F67"
}
}
}
);
#reload
//可以更新任意值
const chart = new xlChart.Normal({});
chart.reloadOption({
data:[],
dataField: ["num1", "num2", "num3"],
seriesField: {
num1: {
name: "我是数据1",
type: "bar",
color: "#6BEDD1",
},
num2: {
name: "我是数据2",
type: "line",
color: "#00C49A"
},
num3: {
name: "我是数据3",
type: "line",
color: "#FA8F67"
}
}
});
#destroy
// 销毁重构
const chart = new xlChart.Normal({});
chart.destroy();
FAQs
``` npm install xl-chart --save-dev ```
The npm package xl-chart receives a total of 1 weekly downloads. As such, xl-chart popularity was classified as not popular.
We found that xl-chart 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.