Qlik Sense Extension Hexagonal Binning 23 rd September 2015 Brian Booden.

15
Qlik Sense Extension Hexagonal Binning 23 rd September 2015 Brian Booden

Transcript of Qlik Sense Extension Hexagonal Binning 23 rd September 2015 Brian Booden.

Page 1: Qlik Sense Extension Hexagonal Binning 23 rd September 2015 Brian Booden.

Qlik Sense ExtensionHexagonal Binning23rd September 2015Brian Booden

Page 2: Qlik Sense Extension Hexagonal Binning 23 rd September 2015 Brian Booden.

Agenda

• Introduction• Motivation• D3.js – Finding examples and tutorials• Find some collaborators• Make it happen

• D3 Conversion and selections• Colour and Area Binning• Support for 10k+ Points• The Lasso and Hexagonal Shaped Problems• Other Features• Demo

• Promote and share

2

Page 3: Qlik Sense Extension Hexagonal Binning 23 rd September 2015 Brian Booden.

Introduction

• Supervising Qlik Architect @ Cooper Software• Certified QlikView Designer, Developer, Administrator• 7 years Qlik experience, 15 years in IT• 3 time presenter at Qonnections• Email: [email protected]• Twitter: @brian_booden• LinkedIn: uk.linkedin.com/in/qlikviewifsexpert

Page 4: Qlik Sense Extension Hexagonal Binning 23 rd September 2015 Brian Booden.

Motivation

• MedAir International• Crisis Response• Ebola Outbreak – Sierra Leone• Teamed with Patric and Johan from

Idevio• 8 teams • Winners – Axis Group• 2nd Place – Luminaries (Seebach,

Becher, Burel)• Learned a lot about APIs for Qlik

Sense• Made me want to learn more!

Page 7: Qlik Sense Extension Hexagonal Binning 23 rd September 2015 Brian Booden.

D3 Conversion and selections

• Finding a code example• “Borrow” the CSS• Create the appropriate SVGs to make visible in Sense• Use an example static dataset (usually in the example)• Use Speros’ great D3 conversion tutorial as a guide• Get it on GitHub!

• Then, add selections…• Hook up the equivalent “click” event• Use selectValues to make the selections

7

Page 8: Qlik Sense Extension Hexagonal Binning 23 rd September 2015 Brian Booden.

The results of your work….

• How it feels when you make your first selection using your extension:

8

Page 9: Qlik Sense Extension Hexagonal Binning 23 rd September 2015 Brian Booden.

Colour and Area Binning

• 2 Ways to denote density of points in hexagons• Colour• Size (Area)

• Colour• Transpose standard Qlik Sense colour scales• Diverging, Sequential• Blues, Reds, Greens

• Size• Choose maximum and minimum hex size• Potential to add a 3rd Measure to colour sized hex based on

a separate measure

9

Page 10: Qlik Sense Extension Hexagonal Binning 23 rd September 2015 Brian Booden.

Support for 10k+ Points

• Natural limit for extensions = 10k points• Solution = Speros SenseUtils.js library• pageExtensionData : function(me, $el, layout,

callback)• Creates datapages containing max 10,000 points• Uses flattenPages : function(data) to extend dataset into

array• Call from inside paint function to initiate the callback function

and create matrix of the entire 10k+ dataset

10

Page 11: Qlik Sense Extension Hexagonal Binning 23 rd September 2015 Brian Booden.

The Lasso and hexagonal shaped problems!

• Using Speros’ awesome lasso.js….

• Can we lasso from inside the bins? We can now!• .attr("class", "lassoable")• var lasso_area = d3.select("#"+id).selectAll(".lassoable");

11

The red ‘Hit’ zoneHex layer sits on top

of ‘Hit’ zoneFull ‘Hit’ zone achieved

by attaching “lassoable” class

Page 12: Qlik Sense Extension Hexagonal Binning 23 rd September 2015 Brian Booden.

Other Features

• Sense-like styling (CSS)• SVG Issues• AngularJS solution• Multiple Properties and options

• Binning Mode (Colour or Area)• Colour range• Colour Expression (Sequential, Diverging etc)• Max Radius• Fill Mesh• Title & Static Layout• Center Hexagons

12

Page 13: Qlik Sense Extension Hexagonal Binning 23 rd September 2015 Brian Booden.

Demo

• Let’s see it, then…..

Page 14: Qlik Sense Extension Hexagonal Binning 23 rd September 2015 Brian Booden.

Branch, LinkedIn and Twitter

• Get your extension out there!• Use as many avenues as possible

• Branch, LinkedIn, Twitter, Blogs

• People will use your extension, if you promote it!

Page 15: Qlik Sense Extension Hexagonal Binning 23 rd September 2015 Brian Booden.

Download & Questions

• Download Hexagonal Binning for Qlik Sense at Qlik Branch

• http://branch.qlik.com/projects/showthread.php?351-Hexagonal-Binning

Questions?