Giter Club home page Giter Club logo

viz's Introduction

Caravelo Viz Build Status

Business intelligence visualization components for Keen.io

Installation

[TBD]

Usage

Look through the following snippets to grasp a feeling of the usage.

// (1) Declare your Keen clients
var client = new Keen({
  projectId: '[PROJECT_ID]',
  readKey: '[READ_KEY]'
});

Keen.ready(function() {

    // (2) Define your Keen queries
    var kpi1 = new Keen.Query('count', {
      eventCollection: 'collection_name',
      timeframe: 'previous_12_months',
      filters: [{
        property_name: 'event',
        operator: 'eq',
        property_value: 'KPI1'
      }],
      interval: 'monthly'
    });
    var kpi2 = new Keen.Query('count', {
      eventCollection: 'collection_name',
      ...
    });

    // (3) Draw your scorecard
    new Viz.Scorecard('#sc01').draw([{
      name: 'KPI 1',
      client: client,
      query: kpi1,
      meta: {
        bullet: { target: 1500 }
      }
    }, {
      name: 'KPI 2',
      client: client,
      query: kpi2,
      meta: {
        bullet: { target: 500 }
      }
    }]);

});
<html>
  <head>
       ...
      <link rel="stylesheet" type="text/css" href="assets/css/cvo-viz.min.css"/>
  </head>
  <body>
    ...
    <!-- Scorecard table -->
    <table id="sc01">
       <thead>
        <tr>
          <th>Trailing Year</th>
          <th>Metric</th>
          <th>% of Target</th>
          <th>Last Month</th>
          <th>MoM</th>
        </tr>
       </thead>
       <tbody>
       <tr data-kpi-template>
        <td class="kpi-sparkline"></td>
        <td class="kpi-title"></td>
        <td>
           <div class="kpi-bullet-value"></div>
           <div class="kpi-bullet"></div>
        </td>
        <td class="kpi-last-value"></td>
        <td><span class="kpi-delta"></span></td>
      </tr>
      </tbody>
    </table>
    ...
    <!-- JS dependencies -->
    <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
    <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/keen-js/3.2.7/keen.min.js"></script>
    <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery-sparklines/2.1.2/jquery.sparkline.min.js"></script>
    <script type="text/javascript" src="assets/cvo-viz.min.js"></script>
    <script type="text/javascript" src="my-dashboard.js"></script>
  </body>
</html>

Examples

Browse the examples folder for complete use cases.

Components

Scorecards

Scorecards display progress over time. They allow you to display state indicators and provide visual feedback linked to your KPIs. Having a fast and easy way to determine the status of a business metric makes it far easier to take action and make appropriate decisions more quickly and accurately.

Screenshot [TBD]

Configuration Options [TBD]

Supported Keen Queries [TBD]

Expected Markup [TBD]

Funnels

[TBD]

Building

Javascript

$ npm run-script build-js

Styles

$ npm run-script build-css

Testing

$ npm test

viz's People

Contributors

mfornos avatar

Stargazers

Todd Dickerson avatar Nikolaus Schlemm avatar Facundo Farias avatar

Watchers

Alessio Gaeta avatar James Cloos avatar Facundo Farias avatar JoseLuis Vilar avatar

viz's Issues

Refine Scorecard

  • Allowed queries/results
  • Threshold callbacks/actions
  • Named metadata for GroupBy renders

Create live demo

In a gh-pages branch.

See keen-dashboard example collections.

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.