This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function arrangeLabels() { | |
var move = 1; | |
while (move > 0) { | |
move = 0; | |
svg.selectAll(".place-label") | |
.each(function() { | |
var that = this, | |
a = this.getBoundingClientRect(); | |
svg.selectAll(".place-label") | |
.each(function() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Create a listobject, sort by a expression and include a expression. | |
* Tested on QIX Engine API 1.1 | |
* Alexander Karlsson - http://github.com/mindspank - akl@qlik.com | |
*/ | |
//Your server you want to connect to. | |
var config = { | |
host: 'sense-demo.qlik.com', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(console){ | |
console.save = function(data, filename){ | |
if(!data) { | |
console.error('Console.save: No data') | |
return; | |
} | |
if(!filename) filename = 'console.json' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Data = { | |
title: 'Member State', | |
row: [{ | |
state: 'S', | |
qText: 'Europe' | |
},{ | |
state: 'S', | |
qText: 'Asia' | |
},{ | |
state: 'S', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var CORE = { | |
host: 'sense-demo.qlik.com', | |
isSecure: true, | |
appname: null | |
}; | |
var APP1 = { | |
host: 'sense-demo.qlik.com', | |
isSecure: true, | |
appname: '5621cc5b-0bad-49d8-94c3-bef3aa5d8e84' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var qsocks = require('qsocks'); | |
var fs = require('fs'); | |
var request = require('request'); | |
// Set our request defaults, ignore unauthorized cert warnings as default QS certs are self-signed. | |
// Export the certificates from your Qlik Sense installation and refer to them | |
var r = request.defaults({ | |
rejectUnauthorized: false, | |
host: 'usrad-akl', | |
key: fs.readFileSync(__dirname + '/client_key.pem'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define(["jquery"], function ($) { | |
return { | |
initialProperties: { | |
version: 1.0, | |
qHyperCubeDef: { | |
qDimensions: [], | |
qMeasures: [], | |
qInitialDataFetch: [{ | |
qWidth: 2, | |
qHeight: 50 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create a Generic Object that contains multiple generic objects. | |
var qsocks = require('qsocks'); | |
//Connect to Qlik Sense Desktop | |
qsocks.Connect().then(function(global) { | |
//Open document Sales Discovery | |
global.openDoc('Sales Discovery.qvf').then(function(app) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var qsocks = require('qsocks'); | |
var serializeApp = require('serializeapp'); | |
var fs = require('fs-extra') | |
var Promise = require('promise'); | |
qsocks.Connect() | |
.then(function(global) { | |
return global.openDoc('Executive Dashboard.qvf') | |
}) | |
.then(function(app) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var qsocks = require('qsocks'); | |
var serializeApp = require('serializeapp'); | |
var fs = require('fs-extra') | |
var Promise = require('promise'); | |
function create() { | |
qsocks.Connect() | |
.then(function(global) { | |
return global.openDoc('Executive Dashboard.qvf') | |
}) |
OlderNewer