Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(chart): edit chart apis #2378

Merged
merged 11 commits into from
Oct 25, 2024
396 changes: 84 additions & 312 deletions examples/sites/demos/apis/chart-autonavi-map.js

Large diffs are not rendered by default.

396 changes: 83 additions & 313 deletions examples/sites/demos/apis/chart-baidu-map.js

Large diffs are not rendered by default.

1,009 changes: 762 additions & 247 deletions examples/sites/demos/apis/chart-bar.js

Large diffs are not rendered by default.

496 changes: 190 additions & 306 deletions examples/sites/demos/apis/chart-boxplot.js

Large diffs are not rendered by default.

618 changes: 337 additions & 281 deletions examples/sites/demos/apis/chart-candle.js

Large diffs are not rendered by default.

576 changes: 303 additions & 273 deletions examples/sites/demos/apis/chart-funnel.js

Large diffs are not rendered by default.

679 changes: 465 additions & 214 deletions examples/sites/demos/apis/chart-gauge.js

Large diffs are not rendered by default.

338 changes: 7 additions & 331 deletions examples/sites/demos/apis/chart-graph.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,338 +6,15 @@ export default {
type: 'component',
props: [
{
name: 'cancel-resize-check',
type: 'boolean',
defaultValue: 'false',
desc: {
'zh-CN': '是否禁用 resize 时的容器检测',
'en-US': 'Whether to disable container detection during resize'
},
mode: ['pc'],
pcDemo: ''
},
{
name: 'change-delay',
type: 'number',
defaultValue: "'0'",
desc: {
'zh-CN': '属性修改触发图表重绘回调的延迟',
'en-US': 'Delay for triggering chart redrawing callback after attribute modification'
},
mode: ['pc'],
pcDemo: ''
},
{
name: 'data',
type: 'object',
defaultValue: '',
desc: {
'zh-CN': '数据由指标和维度组成,“维度” 指的是数据的属性,“指标” 是量化衡量标准',
'en-US':
'Data consists of indicators and dimensions. Dimension refers to data attributes, and indicator refers to quantitative measurement standards.'
},
mode: ['pc'],
pcDemo: ''
},
{
name: 'events',
type: 'object',
defaultValue: '',
desc: {
'zh-CN': '事件绑定',
'en-US': 'Event binding'
},
mode: ['pc'],
pcDemo: ''
},
{
name: 'extend',
typeAnchorName: 'chart#IChartProps',
type: 'objcet',
defaultValue: '',
desc: {
'zh-CN': 'echarts 的配置项',
'en-US': 'Configuration items of echarts'
},
mode: ['pc'],
pcDemo: ''
},
{
name: 'height',
type: 'string',
defaultValue: "'400px'",
desc: {
'zh-CN': '设置图表容器的高度。',
'en-US': 'Set the height of the chart container.'
},
mode: ['pc'],
pcDemo: ''
},
{
name: 'init-options',
type: 'object',
defaultValue: '',
desc: {
'zh-CN': 'init 附加参数',
'en-US': 'Init Additional Parameters'
},
mode: ['pc'],
pcDemo: ''
},
{
name: 'judge-width',
type: 'boolean',
defaultValue: 'false',
desc: {
'zh-CN': '是否处理生成图表时的宽度问题',
'en-US': 'Do you want to process the width issue when generating charts?'
},
mode: ['pc'],
pcDemo: ''
},
{
name: 'legend-visible',
type: 'boolean',
defaultValue: 'true',
desc: {
'zh-CN': '是否显示图例',
'en-US': 'Display legend'
},
mode: ['pc'],
pcDemo: ''
},
{
name: 'not-set-unchange',
type: 'array',
defaultValue: '',
desc: {
'zh-CN': '未发生变化时不参加 setOption 的属性',
'en-US': 'The setOption attribute does not change.'
},
mode: ['pc'],
pcDemo: ''
},
{
name: 'resize-delay',
type: 'number',
defaultValue: "'200'",
desc: {
'zh-CN': '窗口 resize 事件回调的延迟',
'en-US': 'Delay of the window resize event callback'
},
mode: ['pc'],
pcDemo: ''
},
{
name: 'resizeable',
type: 'boolean',
defaultValue: 'true',
desc: {
'zh-CN': '是否处理窗口 resize 事件',
'en-US': 'Whether to process the window resize event'
},
mode: ['pc'],
pcDemo: ''
},
{
name: 'set-option-opts',
type: 'boolean | object',
defaultValue: 'true',
desc: {
'zh-CN': 'echarts setOption 的第二个参数',
'en-US': 'Echarts setOption second parameter'
},
mode: ['pc'],
pcDemo: ''
},
{
mode: []
},
{
name: 'theme',
type: 'object',
defaultValue: '',
desc: {
'zh-CN': '自定义主题名称。;自定义主题对象。',
'en-US': 'User-defined theme name. ;User-defined theme object.'
},
mode: ['pc'],
pcDemo: ''
},
{
name: 'theme-name',
type: 'string',
defaultValue: '',
desc: {
'zh-CN': '自定义主题名称,如果设置了 theme-name, 则 theme 无效',
'en-US': 'User-defined theme name. If theme-name is set, the theme is invalid.'
},
mode: ['pc'],
pcDemo: ''
},
{
name: 'tooltip-visible',
type: 'boolean',
defaultValue: 'true',
desc: {
'zh-CN': '是否显示提示框',
'en-US': 'Display dialog box'
},
mode: ['pc'],
pcDemo: ''
},
{
name: 'width',
type: 'string',
defaultValue: "'auto'",
desc: {
'zh-CN': '设置图表容器的宽度。',
'en-US': 'Set the width of the chart container.'
},
mode: ['pc'],
pcDemo: ''
},
{
name: 'width-change-delay',
type: 'number',
defaultValue: "'300'",
desc: {
'zh-CN': '容器宽度变化的延迟',
'en-US': 'Container width change delay'
},
mode: ['pc'],
pcDemo: ''
},
{
name: 'options',
type: 'object',
defaultValue: '',
desc: {
'zh-CN': '图表配置项(无法与settings混用)',
'en-US': 'Chart Configuration item (cannot be used together with settings)'
},
mode: ['pc'],
pcDemo: ''
},
{
name: 'settings',
type: 'object',
defaultValue: '',
desc: {
'zh-CN': '配置项',
'en-US': 'Chart Configuration items'
},
mode: ['pc'],
pcDemo: ''
},
{
name: 'color-mode',
type: 'object',
defaultValue: '',
desc: {
'zh-CN': '自定义颜色模式',
'en-US': 'Custom color mode'
},
mode: ['pc'],
pcDemo: ''
},
{
name: 'mark-line',
type: 'object',
defaultValue: '',
desc: {
'zh-CN': '图表标线',
'en-US': 'Chart markings'
},
mode: ['pc'],
pcDemo: ''
},
{
name: 'mark-area',
type: 'object',
defaultValue: '',
desc: {
'zh-CN': '图表标志区域',
'en-US': 'Chart symbol area'
},
mode: ['pc'],
pcDemo: ''
},
{
name: 'mark-point',
type: 'object',
defaultValue: '',
desc: {
'zh-CN': '图表标点',
'en-US': 'Chart punctuation'
},
mode: ['pc'],
pcDemo: ''
},
{
name: 'loading',
type: 'object',
defaultValue: '',
desc: {
'zh-CN': '图表加载状态',
'en-US': 'Chart loading status'
},
mode: ['pc'],
pcDemo: ''
},
{
name: 'data-empty',
type: 'object',
defaultValue: '',
desc: {
'zh-CN': '暂无数据状态',
'en-US': 'No data status available at the moment'
},
mode: ['pc'],
pcDemo: ''
},
{
name: 'before-config',
type: 'object',
defaultValue: '',
desc: {
'zh-CN': '对数据提前进行额外的处理,在数据转化为配置项开始前触发',
'en-US':
'Perform additional processing on the data in advance, triggering before the data is converted into configuration items'
},
mode: ['pc'],
pcDemo: ''
},
{
name: 'after-config',
type: 'object',
name: 'Options',
type: '',
defaultValue: '',
typeAnchorName: 'Options',
desc: {
'zh-CN': '对生成好的echarts配置进行额外的处理,在数据转化为配置项结束后触发',
'zh-CN':
'关系图目前仅支持 eCharts 原生属性配置,使用方式和 eCharts 一致。详细配置请参考:https://echarts.apache.org/examples/zh/index.html#chart-type-graph',
'en-US':
'Perform additional processing on the generated echarts configuration and trigger it after the data is converted into configuration items'
},
mode: ['pc'],
pcDemo: ''
},
{
name: 'after-set-option',
type: 'object',
defaultValue: '',
desc: {
'zh-CN': '生成图之后获取 echarts 实例',
'en-US': 'After generating the graph, obtain the echarts instance'
},
mode: ['pc'],
pcDemo: ''
},
{
name: 'after-set-option-once',
type: 'object',
defaultValue: '',
desc: {
'zh-CN': '生成图之后获取 echarts 实例(只执行一次)',
'en-US': 'After generating the graph, obtain the echarts instance (executed only once)'
'关系图目前仅支持 eCharts 原生属性配置,使用方式和 eCharts 一致。详细配置请参考:https://echarts.apache.org/examples/zh/index.html#chart-type-graph'
},
mode: ['pc'],
pcDemo: ''
Expand Down Expand Up @@ -395,9 +72,8 @@ export default {
name: 'Options',
type: 'interface',
code: `
interface Options {
// 使用方法目前仅支持 eCharts 原生属性配置, 使用方法和 echarts 一致。 详细配置请参考https://echarts.apache.org/examples/zh/index.html#chart-type-graph
}`
`
}
]
}
Loading
Loading