
Research
/Security News
11 Malicious NuGet Tools Pose as Game Cheats to Drop a Windows Host-Surveillance Payload
11 malicious NuGet tools pose as game cheats to deploy Windows payloads, track hosts, and use Google Sheets for telemetry and control.
light-chart
Advanced tools
light-chart 是一个基于 F2 框架封装,专注于移动端,开箱即用的可视化解决方案,支持 H5 同时兼容 jsn 环境。完备的图形语法理论,满足各种可视化需求。
当工程需要使用 light-chart 图表库时,首先需要对 lib 目录下的 package.json 文件进行设置,引入依赖:
{
"dependencies": {
"light-chart": "*"
}
}
然后在 lib 目录下执行 npm install 完成安装。
npm install
import LightChart from 'light-chart';
export default {
components:{
ltCanvas:require("light-chart/canvas")
},
}
<lt-canvas ref="canvas" :width="750" :height="500"></lt-canvas>
export default {
mounted(){
// 对数据源格式的要求,仅仅是 JSON 数组,数组的每个元素是一个标准 JSON 对象。
const data = [
{ year: '1951 年', sales: 38 },
{ year: '1952 年', sales: 52 },
{ year: '1956 年', sales: 61 },
{ year: '1957 年', sales: 14 },
{ year: '1958 年', sales: 48 },
{ year: '1959 年', sales: 68 },
{ year: '1960 年', sales: 28 },
{ year: '1962 年', sales: 33 },
];
// Step 1: 创建 Chart 对象
let chart = new LightChart.Chart({
ltCanvas:this.$refs.canvas
});
// Step 2: 载入数据源
chart.source(data);
// Step 3:创建图形语法,绘制柱状图,由 genre 和 sold 两个属性决定图形位置,genre 映射至 x 轴,sold 映射至 y 轴
chart.interval().position('year*sales');
// Step 4: 渲染图表
chart.render();
}
}
了解更多 light-chart 的信息,请点击这里。
<web-canvas>组件FAQs
Charts for mobile visualization.
The npm package light-chart receives a total of 60 weekly downloads. As such, light-chart popularity was classified as not popular.
We found that light-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.

Research
/Security News
11 malicious NuGet tools pose as game cheats to deploy Windows payloads, track hosts, and use Google Sheets for telemetry and control.

Research
/Security News
4 compromised asyncapi packages deliver miasma botnet loader on macOS, Linux and Windows.

Research
/Security News
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.