Skip to content

analytics/chart on the fly

The analytics/chart ui for qlik-embed accepts additional properties to create a chart on the fly. A chart on the fly is a visualization which doesn’t exist in the source Qlik Sense app, and is instead generated for the current session when you supply the chart type, dimensions, and measures.

Note: Supports visualizations that work with the analytics/chart ui only. Review the visualization support table for compatibility information.

Here’s an example of a chart on the fly definition using qlik-embed web components.

<qlik-embed
  ui="analytics/chart"
  app-id="<appid>"
  type="barchart"
  dimensions='["[CategoryName]", "[Product Name]"]'
  measures='["=Sum(Sales)", "[Cost of Goods Sold]", "[GrossMargin]"]'
></qlik-embed>

To create a chart on the fly, supply values for these properties.

  • app-id: a unique Id representing a Qlik Analytics application.
  • type: The type of visualization to render. Here’s a list of available visualizations to choose from.
  • dimensions: An array wrapped in single-quotes with one to many field names or master dimensions wrapped with square brackets for Qlik script compatibility and double-quotes for each array item.
  • measures: An array wrapped in single-quotes with one to many expressions pre-fixed with an equal sign, or square brackets for Qlik script compatibility to handle field names and master measures.

Want to explore more qlik-embed? Explore all qlik-embed UIs and params.

ON THIS PAGE

Was this page helpful?