Skip to content

Customization Guide for Embedding Page Styles­

After creating Dashboards and Charts using the HENGSHI SENSE intelligent analysis platform, they can be embedded into existing systems via iframe. To achieve a unified style, rich customization options are supported when embedding the iframe.

img

Customize Dashboard's iframe

Parameter List

The following parameters are supported when embedding dashboards.

Parameter NameParameter FunctionParameter TypeParameter Value
copyrightThis parameter controls the display status of the dashboard header and footer.BooleanParameter values:
true displays the header and footer, default is true.
false does not display the header and footer.
headerThis parameter controls the display status of the dashboard header.BooleanParameter values:
true displays the header, default is true.
false does not display the header.
pagerThis parameter controls the display status of the dashboard pager.BooleanParameter values:
true displays the pager, default is true.
false does not display the pager.
scrollableThis parameter controls the scrolling behavior within the dashboard.BooleanParameter values:
true supports scrolling within the dashboard, default is true.
false does not support scrolling within the dashboard.
chartAccessibleThis parameter controls the chart interaction behavior of the dashboard.BooleanParameter values:
true supports opening charts for interaction, default is true.
false does not support opening charts for interaction.
backgroundThis parameter sets the background color of the dashboard. If the dashboard theme has already set the background color, this parameter will not take effect.StringParameter value style is rgba(255,255,255,1).
wrapperBackgroundThis parameter sets the background color of the parent div element of the dashboard, which can override the dashboard theme background color.StringParameter value style is rgba(255,255,255,1).
chartTitleColorThis parameter can set the title color of charts, affecting all chart titles (except filters) within the dashboard. Use with caution.StringParameter value style is rgba(255,255,255,1).
chartGapThis parameter can set the spacing between charts within the dashboard.StringWhen using, pixel information is required, such as 10px.

The following are deprecated parameters in the dashboard embedding scenario.

Parameter NameParameter FunctionParameter TypeParameter ValueDeprecation Note
paddingThis parameter sets the padding within the dashboard.String<number>Example parameter value 0 0 0 0This parameter is no longer supported.
chartBackgroundThis parameter sets the background color of the chart control.StringExample parameter value rgba(255,255,255,1)This parameter is no longer supported.
chartPaddingThis parameter sets the padding within the chart.String<number>Example parameter value 0 0 0 0This parameter is no longer supported.
borderRadiusThis parameter sets the corner radius of the chart control.StringExample parameter value 2pxFollows the dashboard theme settings.
borderWidthThis parameter sets the size of the chart's outer border.StringExample parameter value 1pxFollows the dashboard theme settings.
borderColorThis parameter sets the color of the chart's outer border.StringParameter value style rgba(255,255,255,1)Follows the dashboard theme settings.
borderStyleThis parameter sets the style of the chart's outer border.StringCan set solid, dashed, dottedFollows the dashboard theme settings.
filterPaddingThis parameter sets the padding within the filter.String<number>Example parameter value 0 0 0 0This parameter is no longer supported.

Example

As shown in the dashboard below, modify its background color and chart title color when embedding.

Original dashboard link and style:

https://preview.hengshi.com/private/share/E454FF2E910B7B9445C8F66391B25CCA/dashboard/EC0E826AB75FD2AA2C3D755CF8374DD6C

img

Embedded dashboard link and style:

https://preview.hengshi.com/private/share/E454FF2E910B7B9445C8F66391B25CCA/dashboard/EC0E826AB75FD2AA2C3D755CF8374DD6C?wrapperBackground=rgba(180,246,254,1)&chartTitleColor=rgb(0,0,0)&copyright=false&scrollable=false

img

Customize the iframe of the Chart

Parameter List

The following parameters are supported when embedding charts.

Parameter NameParameter FunctionParameter TypeParameter Value
showActionThis parameter sets the interaction buttons in the top-right corner.BooleanParameter values:
true displays the interaction buttons in the top-right corner, default is true.
false does not display the interaction buttons in the top-right corner.
chartPaddingThis parameter sets the padding inside the chart.String<number>Example parameter value: 0 0 0 0.

The following parameters are deprecated and no longer supported.

Parameter NameParameter FunctionParameter TypeParameter ValueDeprecation Description
noFilterThis parameter controls whether to display the filter.BooleanParameter values:
true displays the filter, default is true.
false does not display the filter.
Filters are no longer supported when embedding charts.
titleColorThis parameter sets the color of the chart title.StringExample parameter value: rgba(255,255,255,1).Chart titles are no longer displayed on the embedded page.
chartBackgroundThis parameter sets the background color of the chart.StringExample parameter value: rgba(255,255,255,1).The chart background color will be overridden by the theme background color used by the chart.

HENGSHI SENSE Platform User Manual