feat: add vchart to context in params of mark function style

This commit is contained in:
lixuefei.1313 2023-09-11 18:38:03 +08:00 committed by Weixing Zhang
parent c374cfde17
commit b3bbd0ddf7

View File

@ -268,6 +268,7 @@ export abstract class BaseSeries<T extends ISeriesSpec> extends BaseModel<T> imp
protected _buildMarkAttributeContext() {
this._markAttributeContext = {
vchart: this._option.globalInstance,
globalScale: (key: string, value: string | number) => {
return this._option.globalScale.getScale(key)?.scale(value);
},