破解版佟丽娅遭群狼威压1V2G小三的代价
AI换脸佟丽娅卷入胁迫事件,破解资源揭露暗黑剧情。...
2026-01-21
一、Echarts中的action
echarts中支持的图表行为,通过dispatchAction触发。
dispatchAction({ type: 'highlight', // 可选,系列 index,可以是一个数组指定多个系列 seriesIndex?: number|Array, // 可选,系列名称,可以是一个数组指定多个系列 seriesName?: string|Array, // 可选,数据的 index dataIndex?: number, // 可选,数据的 名称 name?: string})dispatchAction({ type: 'downplay', // 可选,系列 index,可以是一个数组指定多个系列 seriesIndex?: number|Array, // 可选,系列名称,可以是一个数组指定多个系列 seriesName?: string|Array, // 可选,数据的 index dataIndex?: number, // 可选,数据的 名称 name?: string})1)legendSelect(选中图例)
dispatchAction({ type: 'legendSelect', // 图例名称 name: string})2)legendUnSelect(取消选中图例)
dispatchAction({ type: 'legendUnSelect', // 图例名称 name: string})3)legendToggleSelect(切换图例的选中状态)
dispatchAction({ type: 'legendToggleSelect', // 图例名称 name: string})4)legendScroll(控制图例的滚动),当legend.type是scroll的时候有效
dispatchAction({ type: 'legendScroll', scrollDataIndex: number, legendId: string})1)showTip(显示提示框)有两种使用方式A:指定在相对容器的位置处显示提示框,如果指定的位置无法显示则无效。
dispatchAction({ type:'showTip', //屏幕上的x坐标 x: number, //屏幕上的y坐标 y: number, //本次显示tooltip的位置,只在本次action生效。缺省则使用option中定义的tooltip位置 position: Array.<number> | String | Function})B: 指定数据图形,根据tooltip的配置项进行显示提示框
dispatch({ type: 'showTip', // 系列的 index,在 tooltip 的 trigger 为 axis 的时候可选。 seriesIndex?: number, // 数据的 index,如果不指定也可以通过 name 属性根据名称指定数据 dataIndex?: number, // 可选,数据名称,在有 dataIndex 的时候忽略 name?: string, // 本次显示 tooltip 的位置。只在本次 action 中生效。 // 缺省则使用 option 中定义的 tooltip 位置。 position: Array.<number>|string|Function,})2)hideTip 隐藏提示框
dispatchAction({ type:'hideTip'})dispatchAction({ type: 'dataZoom', // 可选,dataZoom 组件的 index,多个 dataZoom 组件时有用,默认为 0 dataZoomIndex: number, // 开始位置的百分比,0 - 100 start: number, // 结束位置的百分比,0 - 100 end: number, // 开始位置的数值 startValue: number, // 结束位置的数值 endValue: number})2.关闭或启动toolbox中的dataZoom的刷选状态(takeGlobalCursor)
myChart.dispatchAction({ type: 'takeGlobalCursor', key: 'dataZoomSelect', // 启动或关闭 dataZoomSelectActive: true});3.视觉映射组件,只能在引入视觉映射组件之后才能使用(visualMap)选取映射的数值范围:selectDataRange
dispatchAction({ type: 'selectDataRange', // 可选,visualMap 组件的 index,多个 visualMap 组件时有用,默认为 0 visualMapIndex: number, // 连续型 visualMap 和 离散型 visualMap 不一样 // 连续型的是一个表示数值范围的数组。 // 离散型的是一个对象,键值是类目或者分段的索引。值是 `true`, `false` selected: Object|Array})4.时间轴组件,同理引入之后才能使用1)设置当前的时间点:timelineChange
dispatchAction({ type: 'timelineChange', // 时间点的 index currentIndex: number})2)切换时间轴的播放状态:timelinePlayChange
dispatchAction({ type: 'timelinePlayChange', // 播放状态,true 为自动播放 playState: boolean})5.工具栏组件相关行为,同理引入之后才能使用重置option:restore
dispatchAction({ type: 'restore'})6.饼图、地图组件、地图图表、关系图、区域选择相关行为1)饼图
dispatchAction({ type: 'pieSelect | pieUnSelect | pieToggleSelect', // 可选,系列 index,可以是一个数组指定多个系列 seriesIndex?: number|Array, // 可选,系列名称,可以是一个数组指定多个系列 seriesName?: string|Array, // 数据的 index,如果不指定也可以通过 name 属性根据名称指定数据 dataIndex?: number, // 可选,数据名称,在有 dataIndex 的时候忽略 name?: string})2)地图组件
dispatchAction({ type: 'geoSelect | geoUnSelect | geoToggleSelect', // 可选,系列 index,可以是一个数组指定多个系列 seriesIndex?: number|Array, // 可选,系列名称,可以是一个数组指定多个系列 seriesName?: string|Array, // 数据的 index,如果不指定也可以通过 name 属性根据名称指定数据 dataIndex?: number, // 可选,数据名称,在有 dataIndex 的时候忽略 name?: string})3)地图图表组件同地图组件类似,也有三个行为,如下:
dispatchAction({ type: 'mapToggleSelect', // 可选,系列 index,可以是一个数组指定多个系列 seriesIndex?: number|Array, // 可选,系列名称,可以是一个数组指定多个系列 seriesName?: string|Array, // 数据的 index,如果不指定也可以通过 name 属性根据名称指定数据 dataIndex?: number, // 可选,数据名称,在有 dataIndex 的时候忽略 name?: string})4)关系图关系图行为使用,也得引入关系图
5)区域选择相关的行为
dispatchAction({ type: 'takeGlobalCursor', // 如果想变为“可刷选状态”,必须设置。不设置则会关闭“可刷选状态”。 key: 'brush', brushOption: { // 参见 brush 组件的 brushType。如果设置为 false 则关闭“可刷选状态”。 brushType: string, // 参见 brush 组件的 brushMode。如果不设置,则取 brush 组件的 brushMode 设置。 brushMode: string }});
以上内容就是为大家推荐的form的action属性用法(form表单中action属性的作用)最佳回答,如果还想搜索其他问题,请收藏本网站或点击搜索更多问题
内容来源于网络仅供参考版权声明:所有来源标注为小樱知识网www.xiaoyin02.com的内容版权均为本站所有,若您需要引用、转载,只需要注明来源及原文链接即可。
本文标题:form的action属性用法(form表单中action属性的作用)
本文地址:https://www.xiaoyin02.com/shcs/117594.html
相关文章
热点文章
2021年独生子女补贴新政策是真的吗(独生子女证有有效期吗)
2021年国庆节阅兵仪式几点开始几点结束(2021年国庆节还有阅兵吗)
鼠目寸光一点红是什么生肖动物(鼠目寸光一点红)指什么生肖,紧密
k0到k9的玩法大全(强制gc的玩法和注意事项)
入土为安是什么生肖《入土为安》打一个生肖动物,词语解释
浙江12月底全面停工是真的吗(浙江什么时候放假停工)
如何做t(t怎么把p做哭)
北京口碑最差的三甲医院(北京301医院最擅长什么)