Analytics module

Hello there,
Does anybody have documentation for the Analytics module or examples of how to use components?
for example, I couldn’t understand props for the OrgUnitDimension module. what type of objects to be passed? Where can I get d2.context ?

Thanks.
Regards, Ulanbek

Hi @Ulanbek - the Analytics library is not well-documented, it is used to share code between core DHIS2 analytics apps and hasn’t been designed for external consumption. With that said, you may of course use the library if it is helpful - the d2 context comes from the legacy (now deprecated) data access library d2 - you can learn more by viewing the code of the Data Visualizer application, which uses the OrgUnitDimension component.

If you share more information about your use-case we may consider documenting and exposing some analytics components in the future.