The arguments that are passed to the fn function of the plugin definition. For example, the layout and keys in the following plugin: const pointPlugin = { info: { name: 'point-plugin', type: 'component-definition', }, fn: ({ layout, keys }) => { const componentDefinition = { key: keys.components.point, type: 'point', settings: { // Some new settings that make use of // the data in layout and keys }, }; return componentDefinition; }, ;
Properties
- keys objectRequired
The keys (references) to different types of chart internals
keys properties
- COMPONENT objectRequired
The unique keys of the existing components available in the chart. They are useful if you want to extend or override the existing components.
COMPONENT properties
- POINT stringRequired
The point component
- X_AXIS stringRequired
The x-axis component
- Y_AXIS stringRequired
The y-axis component
-
- SCALE objectRequired
The scales associated with the measures. They are useful if you want to, via plugin, add a new component that uses the same scale as one of the measures.
SCALE properties
- X stringRequired
The scale used for positioning items along the x axis
- Y stringRequired
The scale used for positioning items along the y axis
-
-
- layout objectRequired
The layout from the enigma model.