Skip to main content
Interania

Embed a chart in an external application

0votes
11updates
56views

You can use the Embed Chart option to embed a dashboard chart in a web page or tool that supports HTML iframes.

This feature is disabled by default. Contact Interana Support to enable this feature.

The code is iframe code that references the query parameters as a URL. For example: 

<iframe width="100%" height="336" src="https://demo.interana.com/?view=stackedarea&#38;
table=wikipedia&#38;drillstate={%22start%22:1489474800000,%22end%22:1491894000000,
%22agg_arg%22:%22%22,%22aggregate%22:[%22COUNT_STAR%22],%22do_not_sample%22:%22true%22,
%22granularity%22:43200000,%22max_groups%22:%225%22,%22group_by%22:[%22wiki%22],
%22order_by%22:[{%22text%22:%22Count%20Events%22,%22direction%22:%22desc%22,
%22type%22:%22COUNT_STAR%22,%22key%22:0,%22arg%22:null}],%22show_all_others%22:%22true%22,
%22time_window%22:{%22num%22:%220%22,%22unit%22:%22auto%22},%22time_rate%22:%22auto%22,
%22time_zone_offset%22:284400000,%22filter_type%22:%22inputs%22,%22filters%22:{},
%22global_filters%22:[]}&#38;time_labels={%22start%22:%22last%2028%20days%22,
%22end%22:%22today%22}&#38;title=%20&#38;embed=1" frameborder="0"}></iframe>

When the application (or web page) is accessed, the embed code will run the query. Because of this, the person accessing the page must either be logged in to the Interana instance used to generate the embed code, or they will be prompted with a login dialog inside the embedded iframe. 

Example

This embedded chart is from the Interana Live Demo

  • Was this article helpful?