Builder
Methods
prepare
Asynchronously executes dynamic filter code. Call before build() to execute code defined in dynamicFilter. This is an idempotent method — multiple calls will not re-execute.
build
Generates the final chart configuration (Spec). This is the most commonly used core method. If the configuration includes a dynamicFilter code, call prepare() first.
buildSpec
Converts the intermediate-layer configuration (AdvancedVSeed) to the final Spec. Use only when you need deep customization of the intermediate-layer configuration.
buildAdvanced
Generates the intermediate-layer configuration (AdvancedVSeed), i.e., the chart template. More detailed than the raw VSeed, exposing more chart internals.
getColorItems
Gets field information related to colors in the data. Commonly used to generate chart legends or color filter UIs.
getColorIdMap
Gets a detailed mapping table for color fields. Key is the color ID, Value is the detailed information.
Static Methods
getAdvancedPipeline
[Internal] Gets the template build pipeline for the specified chart type, used for debugging the VSeed → AdvancedVSeed conversion process.
getSpecPipeline
[Internal] Gets the Spec build pipeline for the specified chart type, used for debugging the AdvancedVSeed → Spec conversion process.
getTheme
Gets the configuration of the specified theme. If themeKey is not provided, returns the 'light' theme by default.
getThemeMap
Gets all registered theme configurations.
from
Static factory method for conveniently creating a Builder instance.
registerAdvancedPipeline
[Extension] Registers a template build pipeline for a new chart type.
registerSpecPipeline
[Extension] Registers a Spec build pipeline for a new chart type.
updateAdvanced
[Extension] Modifies the template build logic for an existing chart, inserting a custom Pipe to influence the generated AdvancedVSeed.
updateSpec
[Extension] Modifies the Spec build logic for an existing chart, inserting a custom Pipe to influence the final generated Spec.
registerTheme
[Extension] Registers a custom theme.
Properties
get locale
Gets the locale currently used by the Builder.
get vseed
Gets the current VSeed input data.
set vseed
Updates the VSeed input data. After updating, the cached state from prepare() will be cleared.
get isPrepared
Gets the prepare() state.
set isPrepared
Sets the prepare() state.
get advancedVSeed
Gets the current AdvancedVSeed intermediate configuration object.
set advancedVSeed
Sets the AdvancedVSeed intermediate configuration object. Typically used for caching or reusing an existing intermediate configuration.
get spec
Gets the currently generated final Spec object.
set spec
Sets the Spec object. Typically used for caching.
get performance
Gets performance statistics from the build process, including the duration of each phase (in ms).
set performance
Sets the performance statistics.