UNPKG

@nebula.js/sn-line-chart

Version:
106 lines (105 loc) 3.55 kB
{ "scriptappy": "1.1.0", "info": { "name": "@nebula.js/sn-line-chart:plugins", "description": "Line chart plugins API definitions", "version": "1.43.2", "license": "MIT", "stability": "experimental", "x-qlik-visibility": "public" }, "entries": { "pluginArguments": { "description": "The arguments that are passed to the fn function of the plugin definition.", "kind": "namespace", "entries": { "keys": { "description": "The keys (references) to different types of chart internals", "entries": { "COLLECTION": { "description": "The data collections the users can use to get data from", "entries": { "MAIN": { "description": "The main data collection", "type": "string" } }, "kind": "object" }, "COMPONENT": { "description": "The unique keys of the existing components available in the chart.\nThey are useful if you want to extend or override the existing components.", "entries": { "LINE": { "description": "The line component", "type": "string" }, "MAJOR_AXIS": { "description": "The major axis component", "type": "string" }, "MAJOR_AXIS_TIME_INNER": { "description": "The major axis time inner component", "type": "string" }, "MAJOR_AXIS_TITLE": { "description": "The major axis title component", "type": "string" }, "MINOR_AXIS": { "description": "The minor axis component", "type": "string" }, "MINOR_AXIS_TITLE": { "description": "The minor axis title component", "type": "string" } }, "kind": "object" }, "SCALE": { "description": "The scales associated with the line chart\nThey are useful if you want to, via plugin, add a new component that\nuses the same scale as one of the measures.", "entries": { "MAIN": { "description": "The main scales", "entries": { "MAJOR": { "description": "The main major scale", "type": "string" }, "MINOR": { "description": "The main minor scale", "type": "string" } }, "kind": "object" } }, "kind": "object" } }, "kind": "object" }, "layout": { "description": "The layout from the enigma model.", "type": "object" } } } }, "definitions": { "getPluginArgs": { "description": "Prepare important chart internals for the users to build their own plugins", "kind": "function", "params": [ { "name": "layoutService", "type": "object" } ], "returns": { "description": "Chart internals that will be exposed to the users.", "type": "#/entries/pluginArguments" } } } }