@dfsj/echarts
Version:
专业的水文曲线组件或构造函数以及通用的echart二次封装图表
12 lines (10 loc) • 769 B
JavaScript
/**
*
* @dfsj/echarts: 专业的水文曲线组件或构造函数以及通用的echart二次封装图表
* 版本: v4.0.0-alpha.9
* 作者:yangbo <1747837358@qq.com>
* 日期:2026-07-10 17:09:23
*
*
*/
import*as e from"echarts";import t from"./factory.js";e.extendChartView({type:"mark",render:function(e,o,r){var i=this;this.group.removeAll();var a=e.getData();a.each(function(e){var o=a.getItemModel(e);(o.get("gridIndex")||[0]).forEach(function(e){var a=r.getCoordinateSystems()[e],s=o.get("shape"),d=o.get("xAxisIndex"),n=o.get("yAxisIndex"),g=a.getAxis("x",d),x=a.getAxis("y",n),m=t[s];if(g&&x&&m){var f={xAxisModel:g.model,yAxisModel:x.model};i.group.add(m(o,a,f,r,0))}})})},dispose:function(){this.group.removeAll()}});