Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Qlik Recently introduced Qlik Anonymous Access service for public use cases, and this has been met with excitement. We can again deliver solutions to customers that want to create public facing solutions embedding objects (Apps/Sheets/Charts) from Qlik Cloud analytics directly into a website, with the ability to adopt themes.
To deliver a solution is not difficult, but does have many moving parts. The result is seamless and works well.
Note: As this is a PUBLIC service, you will get a tenant that is based in Sweden (as of Nov 24)
See example: Qlik Anonymous Access - Demo
crossorigin="anonymous"
type="application/javascript"
src="https://cdn.jsdelivr.net/npm/@qlik/embed-web-components@1/dist/index.min.js"
data-host="https://yourdomain.se.qlikcloud.com/" //DC tenant//
data-client-id="a934a6b54xxx0b300a209836c3c50b5d"
data-access-code="c2x7b787-14e8-43e8-b9x9-8420187ef43a.alVXxPrVK9Jt9zXiCxmJmBHxxx6DRAvfJItM_dDjeBQ"
data-auth-type="anonymous"
<meta charset="UTF-8"> <!-- Defines the character encoding for the document (per your region) -->
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- Sets the viewport width and initial scale (essential for responsive design) -->
<style>
.analyticsbar { <!-- Defines a CSS class for the analytics bar object -->
width: 100%; <!-- Sets the width of the object (you could use a value) -->
height: 600px; <!-- Sets the height of the object (essential) -->
border: 1px solid #bbb; <!-- Sets the border style, color, and width -->
flex: 2 0 auto; <!-- Defines the flexibility of the object -->
border-radius: 3px; <!-- Rounds the corners of the object -->
box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.2); <!-- Adds a shadow effect to the object -->
position: relative; <!-- Sets the positioning context of the object -->
box-sizing: border-box; <!-- Defines how the box model is calculated -->
overflow: auto; <!-- Enables scrolling if the content overflows the object -->
}
</style>
<qlik-embed
ui="analytics/sheet"
app-id="<APP_ID_FROM_QLIK_ANALYTICS>"
theme="<NAME_OF_THEME>"
object-id="<SHEET_ID_FROM_APP>"
context:json="{theme:'<THEME_NAME>', language:'<LANGUAGE>' interactions:{select: false, edit: false}}"
></qlik-embed>
<style>
/*.chartlayout { width: 100%;
display: grid; grid-template-rows: repeat(3, 1fr); grid-template-columns: repeat(3, 1fr); gap: 8px;}*/
.chartlayout { width: 100%; display: grid; grid-template-rows: auto auto; /* Two rows */ grid-template-columns: repeat(4, 1fr); /* First row has 4 equal columns */ gap: 8px;}
.chartlayout div:nth-child(5) { grid-column: span 4; /* Make the 5th item (second row) span all columns */} .layout { width: 100%;
display: grid; grid: "header header header" auto "leftSide body rightSide" 1fr "footer footer footer" auto / auto 1fr auto; gap: 8px;}
.header { grid-area: header; }.leftSide { grid-area: leftSide; }.body { grid-area: body; }.rightSide { grid-area: rightSide; }.footer { grid-area: footer; }
.analyticsbar { width: 935px; height: 600px; border: 1px solid #bbb; flex: 2 0 auto; border-radius: 3px; box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.2); position: relative; box-sizing: border-box; overflow: auto; }
.analyticschart { width: 200px; height: 200px; border: 1px solid #bbb; // flex: 2 0 auto; border-radius: 3px; box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.2); position: relative; box-sizing: border-box; overflow: auto; }@media (max-width: 768px) { .chartlayout { grid-template-columns: 1fr; grid-template-rows: auto; } .chartlayout > div { grid-column: 1; width: 100%; } .analyticschart { width: 100%; height: 200px; } .analyticsbar { width: 100%; height: 600px; } .chartlayout div:nth-child(5) { grid-column: span 1; }}
</style>