Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
remax-chart
Advanced tools
从此 RemaxJS 也有 ECharts 图表📈套件啦~
平台 | 是否支持 |
---|---|
Web | √ |
微信小程序 | √ |
支付宝小程序 | √ |
头条小程序 | x |
# 安装依赖
npm i remax
npm i remax-chart
# or use yarn
yarn add remax
yarn add remax-chart
const option = {
xAxis: {
type: 'category',
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
},
yAxis: {
type: 'value',
},
series: [
{
data: [820, 932, 901, 934, 1290, 1330, 1320],
type: 'line',
},
],
}
import RemaxChart from 'remax-chart'
const LineChart = () => {
return <RemaxChart option={option} height="30vh" />
}
export default LineChart
- 标记为必填属性
属性名 | 值类型(默认值) |
---|---|
option * | EChartOption |
theme | string |
width | string |
height | string |
onCreated | (chart: echarts.EChart) => void |
onUpdated | () => void |
onDispose | () => void |
FAQs
echarts for remax
We found that remax-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
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.