GithubHelp home page GithubHelp logo

jjxie / picasso.js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from qlik-oss/picasso.js

0.0 1.0 0.0 10.45 MB

A charting library streamlined for building interactive visualizations for the Qlik product suites.

Home Page: https://picassojs.com/

License: MIT License

JavaScript 99.00% HTML 0.94% CSS 0.01% Shell 0.01% EJS 0.04%

picasso.js's Introduction

CircleCI Coverage Status

picasso.js

A charting library streamlined for building interactive visualizations for the Qlik product suites.

Examples

Getting started

Installing

npm install picasso.js

Usage

import picasso from 'picasso.js';

picasso.chart({
  element: document.querySelector('#container'), // container must have a width and height specified
  settings: {
    scales: {
      budget: { max: 5000, min: 0 },
      sales: { max: 11000, min: 3000, invert: true },
    },
    components: [
      {
        type: 'axis',
        scale: 'budget',
        layout: {
          dock: 'bottom',
        },
      },
      {
        type: 'axis',
        scale: 'sales',
        layout: {
          dock: 'left',
        },
      },
      {
        type: 'point',
        data: [
          { sales: 7456, margin: 0.3, budget: 4557 },
          { sales: 5603, margin: 0.7, budget: 2234 },
          { sales: 8603, margin: 0.6, budget: 4121 },
          { sales: 4562, margin: 0.4, budget: 1234 },
          { sales: 9873, margin: 0.9, budget: 3453 },
        ],
        settings: {
          x: { scale: 'budget', fn: (d) => d.scale(d.datum.value.budget) },
          y: { scale: 'sales', fn: (d) => d.scale(d.datum.value.sales) },
          size: (d) => d.datum.value.margin,
        },
      },
    ],
  },
});

More examples and documentation can be found at qlik.dev

Run examples locally

See and try out picasso features by starting the development studio by running:

yarn start

Contributing

Please follow the instructions in our contributing guide.

picasso.js's People

Contributors

miralemd avatar cbt1 avatar renovate[bot] avatar quanho avatar nilzona avatar veinfors avatar carlhannes avatar t-wizard avatar dependabot[bot] avatar tassekatt avatar streamside avatar bao-ho avatar devisscher avatar peol avatar stoffeastrom avatar jjxie avatar aritz-cracker avatar carlioth avatar axelssonhakan avatar joakim-ronning avatar johanlahti avatar ozhishu avatar niklasbruce avatar pontusnyman avatar skokenes avatar

Watchers

James Cloos 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.