mirror of
https://github.com/VisActor/VChart
synced 2024-11-22 17:26:19 +00:00
feat: add vchart to context in params of mark function style
This commit is contained in:
parent
c374cfde17
commit
b3bbd0ddf7
@ -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);
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user