Skip to main content

Create beautiful Domo Phoenix charts with Python in Jupyter

Project description

Domo Phoenix

Build Domo Phoenix Charts using Python.

Installation

This module uses Python 3.

$ python3 -m pip install domophoenix

Usage

From your Jupyter notebook, enter the following in a cell:

data = [
    ['Low', 'Corporate', 8582.8875],
    ['High', 'Home Office', 14415.941],
    ['Low', 'Consumer', 1264.8215],
    ['Medium', 'Small Business', 21478.799],
    ['Critical', 'Consumer', 2621.97],
    ['Not Specified', 'Consumer', 2211.31],
    ['Critical', 'Corporate', 10087.1315],
    ['Not Specified', 'Corporate', 4407.138],
    ['High', 'Consumer', 11667.366],
    ['High', 'Corporate', 19503.323],
    ['Low', 'Small Business', 1735.3715],
    ['Low', 'Home Office', 10057.42],
    ['Medium', 'Home Office', 7691.02],
    ['Critical', 'Small Business', 4036.064],
    ['Not Specified', 'Small Business', 84.99],
    ['High', 'Small Business', 689.74],
    ['Critical', 'Home Office', 7416.828],
    ['Not Specified', 'Home Office', 1839.26],
    ['Medium', 'Consumer', 4280.034],
    ['Medium', 'Corporate', 7965.238]
]

columns = [
    {
      "type": 'STRING',
      "name": 'Order Priority',
      "mapping": 'SERIES'
    },
    {
      "type": 'STRING',
      "name": 'Customer Segment',
      "mapping": 'ITEM'
    },
    {
      "type": 'DOUBLE',
      "name": 'Sales',
      "mapping": 'VALUE'
    }
]

from domophoenix import DomoPhoenixPlotter
plotter = DomoPhoenixPlotter()
plotter.plot(data, columns, 'badge_vert_bar')

When you run the chart, you'll see your chart rendered!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

domophoenix-0.2.3.tar.gz (3.5 kB view details)

Uploaded Source

File details

Details for the file domophoenix-0.2.3.tar.gz.

File metadata

  • Download URL: domophoenix-0.2.3.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.2

File hashes

Hashes for domophoenix-0.2.3.tar.gz
Algorithm Hash digest
SHA256 3686f17b61aa9b4f226fc26ccfb8504aaa49d699ea6fa614446bad6eda2b6078
MD5 b42e0cbd89977f77dee7337a2c8f9a77
BLAKE2b-256 7151492b98461b7e5b1ec2a6c2b57698d1f1fbcb51aa2c99fd54d9943780ebcc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page