Code Monkey home page Code Monkey logo

qssimplekpi's Introduction

Simple KPI

Simple KPI component for Qlik Sense. It can show one or several KPI using measures and one dimension (selectable, optional, it can show up to 255 values). Supports adaptive design, conditional css colors, conditional icons, infographic (with constraints, no more than 1000 icons per measure), configurable number of kpis per line, several predefined sizes, custom styles (CSS). Each measure can have a link to another sheet.

Simple KPI

Installation

Download build/qsSimpleKPI.zip, upload to qlik server or extract to appropriate folder.

Qlik Sense Desktop: unzip to a directory under [My Documents]/Qlik/Sense/Extensions.

Qlik Sense Server: import the zip file in the QMC.

Demo

Download SimpleKPIDemo.qvf

Example

You can easily add several kpis, group them accordingly and apply different ui settings (different font sizes, alignments, styles, icons, links to different sheets, responsive options).

Example

You can embedded Master Visualizations into the simple kpi object.

Example

You can add measure with some fake value (for example, empty string), then drag and drop master visualization into the value region or you can insert object id into the "Visualization" property for each measure.

Example

Infographic mode allows you to show appropriate number of icons (depends on measure, with constraints, no more than 1000 icons per measure).

Example

Configuration

Appearance

You can set icon for value or label (full icons set included).

Example

Measures

Conditional colors

Colors

Conditional colors

Conditional icons

Conditional icons

Infographic mode

You can set "Infographic mode" option for each measure. In such case expression determines icons quantity (with constraints, no more than 1000 icons per measure).

Example

Measure alignment

Example

Custom styles

You can fully customize kpis using "Styles (CSS)" property. For more details see SimpleKPIDemo.qvf ("Styles" sheet).

Example

For example, you can change font-family, font-size, background color, text color and so on, using "Styles (CSS)" property for appropriate measure.

@import url('https://fonts.googleapis.com/css?family=Indie Flower');
@import url('https://fonts.googleapis.com/css?family=Fredoka One');

& .label * {
 font-family: 'Fredoka One';
 font-size:  300%;
}

& .statistic-1  .value * {
 background-color: green;
 font-family: 'Indie Flower', sans-serif;
 color: white !important;
}

& .value * {
 background-color: yellow;
 font-family: 'Indie Flower', sans-serif;
 font-size: 900%;
 color: red !important;
}

For example, you can import "Font Awesome" and use it. Just copy and paste the following styles into "Styles (CSS)" property.

@import url('https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css');

Just copy and paste appropriate classes (see icons) into the "Icon" measure's property. For example, copy and paste the following into the "Icon" property.

fa fa-calendar

Font awesome

Maintainers

alner

License

MIT

qssimplekpi's People

Contributors

alner avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.