Notes from Email exchange from Ben


Druid queries and JSON queries in Superset are almost one in the same

NiFi pulls every minute (but eventually OpenLMIS will push) published directly to Kafka and Hadoop/Druid. Kafka passes it to Druid. 

Outcome: need to further articulate 


Superset instructions

Sources → Druid Datasources includes stock_card_line_items, which is what all the visualizations are based on right now.

Think of a "data source" as a table.

Each slice refers to a single data-source. The same applies to filters. 

A "slice" is a singe component (ie: visualization) within a dashboard.

A filer will modify all the slices on a dashboard that use the filter's datasource.

        It's thus ideal, if possible, to have a single table per dashboard. That way, you can rely on just a single filter within the dashboard. (Otherwise, because you need a filter per data source, you can end up with filters which seem redundant to the user.)

Clay will look into whether we can embed Superset's charts in other pages (eg: within OpenLMIS).

metrics vs dimensions.
       Dimension: The data you want to report on or group by.       
       Metrics: The numbers/calculations associated with your dimensions.

When creating a graph, using a time granularity of a day or a month (rather than the default of a day) can make the line smoother.

Customization

A Superset installation includes and serves all of its web assets (HTML, images, etc.) in a manner which makes them easy to edit. Branding the UI this way is trivial but would complicate future upgrades. As the screenshot below suggests, however, Superset offers built-in support for the use of custom CSS. This CSS applies to the entirety of the page (as opposed to just the dashboard area) and presents a sustainable approach to the introduction of modest visual customizations.



Meanwhile, screenshot below suggests, Superset supports the inclusion of arbitrary HTML within slices.

By choosing a slice type of "Markup," "Separator," or "iFrame," developers may specify HTML for the slice. It can include any number of iFrames which, in turn, render other slices. A dashboard could thus potentially be comprised of a single slice which includes many others in a carefully arranged and annotated manner.


TODO: