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-1.0.0.tar.gz (3.1 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: domophoenix-1.0.0.tar.gz
  • Upload date:
  • Size: 3.1 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-1.0.0.tar.gz
Algorithm Hash digest
SHA256 0cb7a5a1736389d66c5124d440a439b53ab8a7ce372395f7740e826a50730ccb
MD5 b9161ce9328afe7c80e820243f7d9335
BLAKE2b-256 6cecdc45a3a848a2a482744ab6eabac476bcf52e1764c54217f0d2e5a2858552

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