
Security News
How Enterprise Security Is Adapting to AI-Accelerated Threats
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.
@twp0217/react-echarts
Advanced tools
Apache ECharts component for React(基于 React 的 Apache ECharts 组件)
npm install echarts @twp0217/react-echarts --save
import React from 'react';
import ECharts, { EChartsOption } from '@twp0217/react-echarts';
export default () => {
const option: EChartsOption = {
title: {
text: 'ECharts 入门示例',
},
tooltip: {},
legend: {
data: ['销量'],
},
xAxis: {
data: ['衬衫', '羊毛衫', '雪纺衫', '裤子', '高跟鞋', '袜子'],
},
yAxis: {},
series: [
{
name: '销量',
type: 'bar',
data: [5, 20, 36, 10, 10, 20],
},
],
};
return <ECharts option={option} />;
};
参考
EChartsCoreProps,差异 API 如下:
| 名称 | 说明 | 类型 | 默认值 |
|---|---|---|---|
FAQs
Apache ECharts component for React
We found that @twp0217/react-echarts 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
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.