![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
@kdcloudjs/kd-charts
Advanced tools
KDesign Charts 是基于金蝶的企业级设计系统 KDesign 实现的 echarts 皮肤,简单易用。
$ npm install @kdcloudjs/kd-charts -S
# 或者
$ yarn add @kdcloudjs/kd-charts -S
import React from 'react';
import * as echarts from 'echarts';
import ReactECharts from 'echarts-for-react';
import defaultTheme from '@kdcloudjs/kd-charts/theme/echarts-theme-default.js';
const DefaultOption = {
xAxis: {
type: 'category',
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
},
yAxis: {
type: 'value',
name: '单据消息订阅',
},
series: [
{
data: [120, 200, 150, 80, 70, 110, 130],
type: 'bar',
name: '生活费',
},
],
};
function kcharts() {
echarts.registerTheme('defaultTheme', defaultTheme);
return (
<div>
<ReactECharts
option={DefaultOption}
theme={'defaultTheme'}
style={{ height: 320 * 2 + 'px' }}
/>
</div>
);
}
export default kcharts;
在浏览器中使用 script
和 link
标签直接引入文件。
使用:
<script src="echarts.js"></script>
<!-- 引入 vintage 主题 -->
<script src="https://unpkg.com/@kdcloudjs/kd-charts@1.1.0/dist/echarts-theme-default.js"></script>
<script>
// 第二个参数可以指定前面引入的主题
var chart = echarts.init(document.getElementById('main'), 'vintage');
chart.setOption({
...
});
</script>
KDesign Charts 使用了 Apache License, Version 2.0. 详细 license 请查看 LICENSE
FAQs
KDesign Charts 是基于金蝶的企业级设计系统 KDesign 实现的echarts皮肤,简单易用。
The npm package @kdcloudjs/kd-charts receives a total of 3 weekly downloads. As such, @kdcloudjs/kd-charts popularity was classified as not popular.
We found that @kdcloudjs/kd-charts demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.