Plugin structure for chart/visualizations/expressions #107500
Labels
impact:medium
Addressing this issue will have a medium level of impact on the quality/strength of our product.
Meta
Team:Visualizations
Visualization editors, elastic-charts and infrastructure
After some discussion we figured, that we should strive to the following folder structure for visualization related plugins:
(1) This folder will contain all plugins offering a chart function and it's corresponding renderer. They are meant to be used among other plugins, e.g. every renderer/chart function that is supposed to be used shared between Visualize, Lens or Canvas should be extracted to here. We originally discussed having only one plugin for all chart_expressions. We decided against this, since we expect there do be different owners of those, and thus separate plugins make it easier to handle that.
(2) This folder will contain the legacy visualization types (i.e. visualize visualizations). If their renderer/expression is not shared with any other plugin, it can be contained within the
vis_type_*
plugin in this folder. If it's sharing a renderer/expression with Lens or Canvas, the renderer must be extracted into thechart_expression
folder (see 1). When moving folders here we will strip of thevis_type_
of the folder name since it's kind of redundant. It should nevertheless remain in the plugin's id.The text was updated successfully, but these errors were encountered: