Greenlandic Summer 2015 PC-Axis International, Stockholm 2015Lars Pedersen.

Post on 19-Jan-2016

226 views 0 download

Tags:

Transcript of Greenlandic Summer 2015 PC-Axis International, Stockholm 2015Lars Pedersen.

Greenlandic Summer 2015

PC-Axis International, Stockholm 2015 Lars Pedersen

Visitors: Business as usual ?

www.stat.gl http://bank.stat.gl

2013 2014 2015 2013 2014 2015

Desktop 93 81 77 97 94 92

Cell 3 10 14 1 2 4

Tablet 4 9 9 2 4 4

Smartphones :

50 shades of gray:

On iPhones it is pure sadism:

https://github.com/sylvain-hamel/safarimobile-multiline-selecthttp://www.stat.gl/demo/testselect/experiments/experiments.html

! Important repare this ios feature

! Important

! Is it done better?

• Multilingual px-files• Translation of pxweb to Danish & Greenlandic

• Short addresses• Visible table id

• Responsive design

• Last updated statbank files for our front page

• The (important) little things

Moving to pxweb 2015R1

MATRIX="BEXSTM1";

DESCRIPTION="Population July 1st. <em>[BEESTM1]</em>";DESCRIPTION[da]="Befolkningen pr 1. juli 2011-2015 <em>[BEDSTM1]</em>";DESCRIPTION[kl]="1. Juli innuttaasut 2011-2015 <em>[BENSTM1]</em>";

The language specific files does not exist and generates an 404 error-> catch the error, use language code to find right file in menu.xml

Short language specific addresses

Using saved queries in operation

1) Do data & use2) Do px-file & use3) Add Testbank & use4) Do Excel -> Word -> testsite -> website5) Copy Statbank

Recommended work-flow

Standardizing px-files with a sas macro

UserStats

Aggregations– They do not behave as in pcaxis/pxweb 2008

Calculations– Decimals / using constant value is needed

Observed UserConfusion- Address line : session information is visible

Some bugs

api

www.tourismstat.gl

api & saved queries (api light)

• When showing table on screen – url and query (POST method)

• When saving a saved query– the response can be fetched as GET

How can this be used?

enable cross-origin resource sharing

Remove enableCors

Add as response header insteadActivate saved queriesActivate JSON-STAT format

Indicators & real responsive charts

www.stat.gl/demo

keyfigures & indicators

www.stat.gl/demo

• Eurostat data brought to you by Finland• http://pxnet2.stat.fi/PXWeb/sq/388fce4b-65c3-49eb-959a-c3dd81dbbcb7

• Nordic data brought to you by Denmark• http://91.208.143.100/pxweb/norden/sq/265aeeda-d9e2-4f54-b432-e9002911d07b

• Globalization indicators by UNECE• http://w3.unece.org/PXWeb2015/sq/f9fdd927-0af9-44d6-88d0-31120f9a62f3

• Population in Sweden by SCB• http://www.statistikdatabasen.scb.se/sq/5292

• A little of everything brougth to you by yours truly

samples – copy/paste links to www.stat.gl/demo

• a learning ressource – open source• Free (MIT license)• Github (StatisticsGreenland)

• To allow it used on your site:– Fix ‘enable cross-origin resource sharing’– Enable ‘saved queries’– Enable ‘JSON-STAT format’

www.stat.gl/demo