**DEPRECATED:** Please see more updated structure below.
-----
[Proposal] Each chart plugin package includes
```
My Chart
|--formDataSchema.js // #3
|--dataSchema.js // #2
|--Adaptor.jsx // #1 + #2
|--MyChart.jsx // #1
|--index.js
```
index.js
```js
export default new ChartPlugin({
// Can separate into metadata.js
metadata: {
key: 'my-chart',
label: 'MyChart',
description: 'lorem ipsum dolor',
},
// Can separate into buildQuery.js
buildQuery: (formData) => { ... }, // #3
loadAdaptor: () => import('./Adaptor.jsx'),
// Can separate into controlPanelConfig.js
controlPanelConfig: ..., // #4
});
```
[ Full content available at:
https://github.com/apache/incubator-superset/issues/5692 ]
This message was relayed via gitbox.apache.org for [email protected]