You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 10, 2021. It is now read-only.
I recently started looking into the Superset codebase and having a hard time grasping how some parts work.
In the SuperChart component, which I assume works as a parent component for all chart types that Superset has, it uses a SuperChartCore component, which has the core logic of it.
I think createLoadableRenderer takes care of rendering the chart based on the chartType string passed in. However, I am still not sure how getChartComponentRegistry() works.
They are registered in superset/supersetfrontend, which in turn calls Preset.ts that calls each plugin's register() function that puts each part of the plugin into different registries...
The codebase on this repo has been moved to the main Apache Superset repo, and consequently the repo is in the process of being archived. See the Superset Improvement Proposal for details: apache/superset#13013 . While all currently open issues and PRs will be closed, we encourage you to reopen this issue on the main repo if it is still relevant.
I recently started looking into the
Superset
codebase and having a hard time grasping how some parts work.In the
SuperChart
component, which I assume works as a parent component for all chart types thatSuperset
has, it uses aSuperChartCore
component, which has the core logic of it.superset-ui/packages/superset-ui-core/src/chart/components/SuperChartCore.tsx
Line 102 in 4bda6f5
In this part of the code,
I think
createLoadableRenderer
takes care of rendering the chart based on thechartType
string passed in. However, I am still not sure howgetChartComponentRegistry()
works.I looked into the file https://github.com/apache-superset/superset-ui/blob/4bda6f5305ea51225bd3eaed93d19a2f93a3f04c/packages/superset-ui-core/src/chart/registries/ChartComponentRegistrySingleton.ts to understand further.
What I am missing is, if I try to debug what
getChartComponentRegistry()
tries to return, I see something likebut I am not sure where the
items
come from. I don't see anywhere in the code that puts in theloaders
into theitems
object.Please help me understanding the logic. Thanks!
The text was updated successfully, but these errors were encountered: