UNPKG

enigma-mixin

Version:

Set of Qlik Sense enigma.js mixin

956 lines (955 loc) 399 kB
{ "variables": [], "script": "///$tab Main\r\nSET ThousandSep=',';\r\nSET DecimalSep='.';\r\nSET MoneyThousandSep=',';\r\nSET MoneyDecimalSep='.';\r\nSET MoneyFormat='$ ###0.00;-$ ###0.00';\r\nSET TimeFormat='h:mm:ss TT';\r\nSET DateFormat='M/D/YYYY';\r\nSET TimestampFormat='M/D/YYYY h:mm:ss[.fff] TT';\r\nSET FirstWeekDay=6;\r\nSET BrokenWeeks=1;\r\nSET ReferenceDay=0;\r\nSET FirstMonthOfYear=1;\r\nSET CollationLocale='en-US';\r\nSET CreateSearchIndexOnReload=1;\r\nSET MonthNames='Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec';\r\nSET LongMonthNames='January;February;March;April;May;June;July;August;September;October;November;December';\r\nSET DayNames='Mon;Tue;Wed;Thu;Fri;Sat;Sun';\r\nSET LongDayNames='Monday;Tuesday;Wednesday;Thursday;Friday;Saturday;Sunday';\r\nSET NumericalAbbreviation='3:k;6:M;9:G;12:T;15:P;18:E;21:Z;24:Y;-3:m;-6:μ;-9:n;-12:p;-15:f;-18:a;-21:z;-24:y';\r\n\r\nPackages:\r\nLoad * Inline [\r\npackage , Package\r\nqlik-saas-api , SaaS API\r\nqlik-rest-api , REST API\r\nqlik-repo-api , Repository API\r\nqlik-proxy-api, Proxy API\r\nqlbuilder , qlBuilder\r\n];\r\n\r\n\r\nNPM_Data:\r\nLOAD\r\n downloads,\r\n \"start\",\r\n \"end\",\r\n package,\r\n \"start\" as Date\r\nFROM [lib://Google_Drive - stefan.stoichev@gmail.com/root/NPM_Data.qvd]\r\n(qvd)\r\nWhere\r\n Year(\"start\") > 2021\r\n;\r\n\r\n\r\nMasterCalendar:\r\nLOAD\r\n TempDate AS Date,\r\n Year(TempDate) AS Year,\r\n Month(TempDate) AS Month,\r\n Weekday(TempDate) AS WeekDay,\r\n Date(MonthStart(TempDate), 'MMM YYYY') AS YearMonth, \r\n;\r\n\r\n//=== Generate a temp table of dates ===\r\nLOAD\r\n date(mindate + IterNo()) AS TempDate\r\n ,maxdate // Used in InYearToDate() above, but not kept\r\nWHILE mindate + IterNo() <= maxdate\r\n;\r\n\r\n//=== Get min/max dates from fact table ===/\r\nLOAD\r\n min(\"start\")-1 as mindate,\r\n max(\"end\") as maxdate\r\nRESIDENT NPM_Data\r\n;\r\n\r\n///$tab Profile Data\r\nProfileData:\r\nLOAD\r\n Profile_Date as Date,\r\n StackExchangeViews,\r\n SO_Reputation,\r\n GitHubViews\r\nFROM \r\n\t[lib://Google_Drive - stefan.stoichev@gmail.com/root/ProfileData.qvd]\r\n\t(qvd)\r\n;\r\n\r\n", "appProperties": { "qTitle": "NPM Stats UI", "qLastReloadTime": "2024-08-25T07:10:16.183Z", "qSavedInProductVersion": "12.2160.0", "qThumbnail": {}, "qUsage": "ANALYTICS", "encrypted": true, "id": "b9cb24b7-9343-40cb-903b-863c0d63856b", "published": false, "owner": "auth0|a082000000KSSZHAA5", "ownerId": "ownku6EUMs602y5xxDVYEQYj4RjwybLY", "createdDate": "2022-08-15T10:47:40.231Z", "modifiedDate": "2024-08-25T07:10:16.704Z", "hassectionaccess": false, "_resourcetype": "app", "privileges": [ "read", "update", "delete", "reload", "export", "duplicate", "change_owner", "change_space", "export_reduced", "source", "exportappdata" ], "create": [ { "resource": "sheet", "canCreate": true }, { "resource": "bookmark", "canCreate": true }, { "resource": "snapshot", "canCreate": true }, { "resource": "story", "canCreate": true }, { "resource": "dimension", "canCreate": true }, { "resource": "measure", "canCreate": true }, { "resource": "masterobject", "canCreate": true }, { "resource": "sheetgroup", "canCreate": true }, { "resource": "variable", "canCreate": true } ] }, "connections": [], "objects": { "sheet": [ { "qProperty": { "qInfo": { "qId": "kzyVjW", "qType": "sheet" }, "qMetaDef": { "title": "My new sheet (2)", "description": "" }, "creationDate": "2024-07-26T03:30:40.950Z", "rank": 1, "thumbnail": { "qStaticContentUrlDef": {} }, "columns": 24, "rows": 12, "cells": [ { "name": "RwdVpme", "type": "barchart", "col": 0, "row": 0, "colspan": 12, "rowspan": 2, "bounds": { "y": 0, "x": 0, "width": 50, "height": 16.666666666666664 } }, { "name": "jHPPqzb", "type": "sn-nlg-chart", "col": 12, "row": 0, "colspan": 12, "rowspan": 2, "bounds": { "y": 0, "x": 50, "width": 50, "height": 16.666666666666664 } }, { "name": "jydppJ", "type": "container", "col": 0, "row": 2, "colspan": 3, "rowspan": 4, "bounds": { "y": 16.666666666666664, "x": 0, "width": 12.5, "height": 33.33333333333333 } }, { "name": "EhLQVV", "type": "mekkochart", "col": 0, "row": 8, "colspan": 12, "rowspan": 4, "bounds": { "y": 66.66666666666666, "x": 0, "width": 50, "height": 33.33333333333333 } }, { "name": "EvbujT", "type": "waterfallchart", "col": 0, "row": 6, "colspan": 12, "rowspan": 2, "bounds": { "y": 50, "x": 0, "width": 50, "height": 16.666666666666664 } }, { "name": "fCtjB", "type": "map", "col": 12, "row": 6, "colspan": 12, "rowspan": 1, "bounds": { "y": 50, "x": 50, "width": 50, "height": 8.333333333333332 } }, { "name": "Emfc", "type": "histogram", "col": 12, "row": 7, "colspan": 12, "rowspan": 1, "bounds": { "y": 58.333333333333336, "x": 50, "width": 50, "height": 8.333333333333332 } }, { "name": "HGgmk", "type": "gauge", "col": 12, "row": 8, "colspan": 12, "rowspan": 1, "bounds": { "y": 66.66666666666666, "x": 50, "width": 50, "height": 8.333333333333332 } }, { "name": "wMxxGuB", "type": "distributionplot", "col": 12, "row": 9, "colspan": 12, "rowspan": 1, "bounds": { "y": 75, "x": 50, "width": 50, "height": 8.333333333333332 } }, { "name": "rjqHCdG", "type": "action-button", "col": 12, "row": 10, "colspan": 12, "rowspan": 2, "bounds": { "y": 83.33333333333334, "x": 50, "width": 50, "height": 16.666666666666664 } }, { "name": "uQWFvYT", "type": "qlik-animator", "col": 3, "row": 2, "colspan": 9, "rowspan": 1, "bounds": { "y": 16.666666666666664, "x": 12.5, "width": 37.5, "height": 8.333333333333332 } }, { "name": "AAJd", "type": "qlik-date-picker", "col": 12, "row": 2, "colspan": 12, "rowspan": 1, "bounds": { "y": 16.666666666666664, "x": 50, "width": 50, "height": 8.333333333333332 } }, { "name": "JcDBJ", "type": "sn-layout-container", "col": 12, "row": 3, "colspan": 12, "rowspan": 1, "bounds": { "y": 25, "x": 50, "width": 50, "height": 8.333333333333332 } }, { "name": "jqPjrs", "type": "sn-shape", "col": 12, "row": 4, "colspan": 12, "rowspan": 1, "bounds": { "y": 33.33333333333333, "x": 50, "width": 50, "height": 8.333333333333332 } }, { "name": "EPRXUC", "type": "sn-text", "col": 12, "row": 5, "colspan": 12, "rowspan": 1, "bounds": { "y": 41.66666666666667, "x": 50, "width": 50, "height": 8.333333333333332 } }, { "name": "YQJda", "type": "qlik-variable-input", "col": 3, "row": 3, "colspan": 9, "rowspan": 1, "bounds": { "y": 25, "x": 12.5, "width": 37.5, "height": 8.333333333333332 } }, { "name": "QtTsnj", "type": "sn-video-player", "col": 3, "row": 4, "colspan": 9, "rowspan": 2, "bounds": { "y": 33.33333333333333, "x": 12.5, "width": 37.5, "height": 16.666666666666664 } } ], "customRowBase": 12, "gridResolution": "small", "layoutOptions": { "mobileLayout": "LIST", "extendable": false }, "qChildListDef": { "qData": { "title": "/title" } }, "gridMode": "edit" }, "qChildren": [ { "qProperty": { "qInfo": { "qId": "RwdVpme", "qType": "barchart" }, "qMetaDef": {}, "qHyperCubeDef": { "qDimensions": [], "qMeasures": [], "qInterColumnSortOrder": [], "qSuppressMissing": true, "qInitialDataFetch": [ { "qLeft": 0, "qTop": 0, "qWidth": 17, "qHeight": 500 } ], "qReductionMode": "N", "qMode": "S", "qPseudoDimPos": -1, "qNoOfLeftDims": -1, "qMaxStackedCells": 5000, "qCalcCond": {}, "qTitle": {}, "qCalcCondition": { "qCond": {}, "qMsg": {} }, "qColumnOrder": [], "qExpansionState": [], "qDynamicScript": [] }, "script": "", "refLine": { "refLines": [], "dimRefLines": [] }, "showTitles": true, "title": "", "subtitle": "", "footnote": "", "disableNavMenu": false, "showDetails": true, "showDetailsExpression": false, "showDisclaimer": true, "barGrouping": { "grouping": "grouped" }, "orientation": "vertical", "scrollbar": "miniChart", "scrollStartPos": 0, "gridLine": { "auto": true, "spacing": 2 }, "dataPoint": { "showLabels": false, "showSegmentLabels": false, "showTotalLabels": true }, "color": { "auto": true, "mode": "primary", "formatting": { "numFormatFromTemplate": true }, "useBaseColors": "off", "paletteColor": { "index": 6 }, "useDimColVal": true, "useMeasureGradient": true, "persistent": false, "expressionIsColor": true, "expressionLabel": "", "measureScheme": "sg", "reverseScheme": false, "dimensionScheme": "12", "autoMinMax": true, "measureMin": 0, "measureMax": 10 }, "legend": { "show": true, "dock": "auto", "showTitle": true }, "dimensionAxis": { "continuousAuto": true, "show": "all", "label": "auto", "dock": "near", "axisDisplayMode": "auto", "maxVisibleItems": 10 }, "preferContinuousAxis": true, "measureAxis": { "show": "all", "dock": "near", "spacing": 1, "autoMinMax": true, "minMax": "min", "min": 0, "max": 10 }, "tooltip": { "auto": true, "hideBasic": false, "chart": { "style": { "size": "medium" } }, "data": {} }, "visualization": "barchart", "version": "1.35.7", "components": [], "showMiniChartForContinuousAxis": true }, "qChildren": [] }, { "qProperty": { "qInfo": { "qId": "jHPPqzb", "qType": "sn-nlg-chart" }, "qMetaDef": {}, "qHyperCubeDef": { "qDimensions": [ { "qDef": { "qGrouping": "N", "qFieldDefs": [ "Date" ], "qFieldLabels": [ "" ], "qSortCriterias": [ { "qSortByNumeric": 1, "qSortByAscii": 1, "qSortByLoadOrder": 1, "qExpression": {} } ], "qNumberPresentations": [], "qActiveField": 0, "autoSort": true, "cId": "YajAY", "othersLabel": "Others" }, "qOtherTotalSpec": { "qOtherMode": "OTHER_OFF", "qOtherCounted": { "qv": "10" }, "qOtherLimit": { "qv": "0" }, "qOtherLimitMode": "OTHER_GE_LIMIT", "qForceBadValueKeeping": true, "qApplyEvenWhenPossiblyWrongResult": true, "qOtherSortMode": "OTHER_SORT_DESCENDING", "qTotalMode": "TOTAL_OFF", "qReferencedExpression": {} }, "qOtherLabel": { "qv": "Others" }, "qTotalLabel": {}, "qCalcCond": {}, "qAttributeExpressions": [], "qAttributeDimensions": [], "qCalcCondition": { "qCond": {}, "qMsg": {} } } ], "qMeasures": [], "qInterColumnSortOrder": [ 0 ], "qInitialDataFetch": [], "qReductionMode": "N", "qMode": "S", "qPseudoDimPos": -1, "qNoOfLeftDims": -1, "qMaxStackedCells": 5000, "qCalcCond": {}, "qTitle": {}, "qCalcCondition": { "qCond": {}, "qMsg": {} }, "qColumnOrder": [], "qExpansionState": [], "qDynamicScript": [], "qLayoutExclude": { "qHyperCubeDef": { "qDimensions": [], "qMeasures": [], "qInterColumnSortOrder": [], "qInitialDataFetch": [], "qReductionMode": "N", "qMode": "S", "qPseudoDimPos": -1, "qNoOfLeftDims": -1, "qMaxStackedCells": 5000, "qCalcCond": {}, "qTitle": {}, "qCalcCondition": { "qCond": {}, "qMsg": {} }, "qColumnOrder": [], "qExpansionState": [], "qDynamicScript": [] } } }, "script": "", "showTitles": true, "title": "", "subtitle": "", "footnote": "", "disableNavMenu": false, "showDetails": false, "showDetailsExpression": false, "components": null, "nlgLanguage": "en", "verbosity": "full", "visualization": "sn-nlg-chart", "analysis": [], "isIncompleteViz": true }, "qChildren": [] }, { "qProperty": { "qInfo": { "qId": "jydppJ", "qType": "container" }, "qMetaDef": {}, "children": [ { "refId": "Bsahej", "label": "Button for navigation", "isMaster": false }, { "refId": "LjbPqq", "label": "Bar chart", "isMaster": false } ], "showTitles": false, "title": "", "subtitle": "", "footnote": "", "disableNavMenu": false, "showDetails": true, "showDetailsExpression": false, "borders": "auto", "showTabs": true, "useDropdown": true, "useScrollButton": true, "showIcons": false, "activeTab": "", "defaultTab": "", "visualization": "container", "qChildListDef": { "qData": { "visualization": "/visualization", "containerChildId": "/containerChildId", "qExtendsId": "/qExtendsId", "title": "/title", "showCondition": "/showCondition" } }, "supportRefresh": false, "hasExternalChildren": false }, "qChildren": [ { "qProperty": { "qInfo": { "qId": "2ea703ba-e60f-49a8-805e-f6d408c8de93", "qType": "qlik-button-for-navigation" }, "qMetaDef": {}, "showTitles": false, "title": "", "subtitle": "", "footnote": "", "disableNavMenu": false, "showDetails": true, "showDetailsExpression": false, "props": { "buttonLabel": "My Button", "buttonShowIcon": false, "buttonIconLui": "", "fullWidth": false, "buttonAlignment": "top-left", "buttonTextAlign": "center", "useEnabledCondition": false, "enabledCondition": 1, "actionItems": [], "navigationAction": "none", "sheetId": "", "selectedSheet": "", "selectedStory": "", "websiteUrl": "", "sameWindow": true, "buttonIconSet": "lui" }, "visualization": "qlik-button-for-navigation", "version": "2.13.0", "extensionMeta": { "translationKey": "", "icon": "align-object-center", "iconChar": "puzzle", "isLibraryItem": true, "visible": true, "IconDefinition": {}, "name": "Button for navigation", "description": "Enhance your app with buttons and actions.\nVersion: 2.13.0", "template": "qlik-button-for-navigation", "iconPath": "M14.5,9 L13,9 L13,3.3 C13,3.1 12.9,3 12.7,3 L8,3 L8,1.5 C8,0.7 7.3,0 6.5,0 C5.7,0 5,0.7 5,1.5 L5,3 L0.3,3 C0.1,3 0,3.1 0,3.3 L0,9 L1.5,9 C2.3,9 3,9.7 3,10.5 C3,11.3 2.3,12 1.5,12 L0,12 L0,15.7 C0,15.9 0.1,16 0.3,16 L5,16 L5,14.5 C5,13.7 5.7,13 6.5,13 C7.3,13 8,13.7 8,14.5 L8,16 L12.7,16 C12.9,16 13,15.9 13,15.7 L13,12 L14.5,12 C15.3,12 16,11.3 16,10.5 C16,9.7 15.3,9 14.5,9 Z", "isThirdParty": true, "type": "visualization", "version": "2.13.0", "preview": "qlik-button-for-navigation.png", "keywords": [ "actions", "bootstrap", "button", "navigation", "qlik", "qlik-sense", "qlik-sense-visualization-extension", "sense", "sheets" ], "author": "Stefan Walther", "homepage": "https://github.com/stefanwalther/sense-navigation", "license": "MIT", "repository": "", "dependencies": { "qlik-sense": ">=5.5.x" }, "deprecated": "2020-04-30", "bundle": { "id": "qlik-dashboard-bundle", "name": "Qlik Dashboard bundle", "description": "This is a set of supported objects that will facilitate dashboard creation in Qlik Sense. These can be used in addition to the objects found under \"Charts\".\n\nFor limitations and support conditions, see the documentation." }, "installer": "QlikExtensionBundler", "folder": "_dashboard-bundle", "previewIconURL": "https://cdn.qlikcloud.com/qmfe/sense-client/8.259.0/_dashboard-bundle/qlik-button-for-navigation/qlik-button-for-navigation.png" }, "qLayoutExclude": { "disabled": {} }, "containerChildId": "Bsahej" }, "qChildren": [] }, { "qProperty": { "qInfo": { "qId": "8016f3a9-7de5-4f8e-9f09-c5d8d8bf2f1e", "qType": "barchart" }, "qMetaDef": {}, "qHyperCubeDef": { "qDimensions": [ { "qDef": { "qGrouping": "N", "qFieldDefs": [ "Date" ], "qFieldLabels": [ "" ], "qSortCriterias": [ { "qSortByNumeric": 1, "qSortByAscii": 1, "qSortByLoadOrder": 1, "qExpression": {} } ], "qNumberPresentations": [], "qActiveField": 0, "autoSort": true, "cId": "zJUjgA", "othersLabel": "Others" }, "qOtherTotalSpec": { "qOtherMode": "OTHER_OFF", "qOtherCounted": { "qv": "10" }, "qOtherLimit": { "qv": "0" }, "qOtherLimitMode": "OTHER_GE_LIMIT", "qForceBadValueKeeping": true, "qApplyEvenWhenPossiblyWrongResult": true, "qOtherSortMode": "OTHER_SORT_DESCENDING", "qTotalMode": "TOTAL_OFF", "qReferencedExpression": {} }, "qOtherLabel": { "qv": "Others" }, "qTotalLabel": {}, "qCalcCond": {}, "qAttributeExpressions": [], "qAttributeDimensions": [], "qCalcCondition": { "qCond": {}, "qMsg": {} } } ], "qMeasures": [ { "qDef": { "qTags": [], "qGrouping": "N", "qDef": "Sum(downloads)", "qNumFormat": { "qType": "U", "qnDec": 10, "qUseThou": 0 }, "qAccumulate": 0, "qActiveExpression": 0, "qExpressions": [], "autoSort": true, "cId": "mPvUjM", "numFormatFromTemplate": true }, "qSortBy": { "qSortByNumeric": -1, "qSortByLoadOrder": 1, "qExpression": {} }, "qAttributeExpressions": [], "qAttributeDimensions": [], "qCalcCond": {}, "qCalcCondition": { "qCond": {}, "qMsg": {} }, "qTrendLines": [], "qMiniChartDef": { "qSortBy": { "qExpression": {} }, "qOtherTotalSpec": { "qOtherMode": "OTHER_OFF", "qOtherCounted": {}, "qOtherLimit": {}, "qOtherLimitMode": "OTHER_GT_LIMIT", "qForceBadValueKeeping": true, "qApplyEvenWhenPossiblyWrongResult": true, "qOtherSortMode": "OTHER_SORT_DESCENDING", "qTotalMode": "TOTAL_OFF", "qReferencedExpression": {} }, "qMaxNumberPoints": -1, "qAttributeExpressions": [] } } ], "qInterColumnSortOrder": [ 1, 0 ], "qSuppressMissing": true, "qInitialDataFetch": [ { "qLeft": 0, "qTop": 0, "qWidth": 17, "qHeight": 500 } ], "qReductionMode": "N", "qMode": "S", "qPseudoDimPos": -1, "qNoOfLeftDims": -1, "qMaxStackedCells": 5000, "qCalcCond": {}, "qTitle": {}, "qCalcCondition": { "qCond": {}, "qMsg": {} }, "qColumnOrder": [], "qExpansionState": [], "qDynamicScript": [], "columnOrder": [], "qLayoutExclude": { "qHyperCubeDef": { "qDimensions": [], "qMeasures": [], "qInterColumnSortOrder": [], "qInitialDataFetch": [], "qReductionMode": "N", "qMode": "S", "qPseudoDimPos": -1, "qNoOfLeftDims": -1, "qMaxStackedCells": 5000, "qCalcCond": {}, "qTitle": {}, "qCalcCondition": { "qCond": {}, "qMsg": {} }, "qColumnOrder": [], "qExpansionState": [], "qDynamicScript": [] } } }, "script": "", "refLine": { "refLines": [], "dimRefLines": [] }, "showTitles": true, "title": "", "subtitle": "", "footnote": "", "disableNavMenu": false, "showDetails": true, "showDetailsExpression": false, "showDisclaimer": true, "barGrouping": { "grouping": "grouped" }, "orientation": "vertical", "scrollbar": "miniChart", "scrollStartPos": 0, "gridLine": { "auto": true, "spacing": 2 }, "dataPoint": { "showLabels": false, "showSegmentLabels": false, "showTotalLabels": true }, "color": { "auto": true, "mode": "primary", "formatting": { "numFormatFromTemplate": true }, "useBaseColors": "off", "paletteColor": { "index": 6 }, "useDimColVal": true, "useMeasureGradient": true, "persistent": false, "expressionIsColor": true, "expressionLabel": "", "measureScheme": "sg", "reverseScheme": false, "dimensionScheme": "12", "autoMinMax": true, "measureMin": 0, "measureMax": 10 }, "legend": { "show": true, "dock": "auto", "showTitle": true }, "dimensionAxis": { "continuousAuto": true, "show": "all", "label": "auto", "dock": "near", "axisDisplayMode": "auto", "maxVisibleItems": 10 }, "preferContinuousAxis": true, "measureAxis": { "show": "all", "dock": "near", "spacing": 1, "autoMinMax": true, "minMax": "min", "min": 0, "max": 10 }, "tooltip": {