Skip to main content

A web-based dashboard to analyzing your data with Python

Project description

# boardify

A web-based dashboard to analyzing your data with Python



## Installation

pip3 install boardify

## Usage

from boardify import *

# Class for the dashboard
class FruitDashboard(BasicDashboard):
def config(self): = "Fruit Company"

# Add Blocks to the dashboard

# Block contains HTML Code
class Products(BasicBlock):
def config(self): = "Products"
self.description = "A list of our products"

def data(self):
return """<ul>

# Block renders a bar chart
class NicestFruit(BasicBlock):
def config(self): = "Nicest Fruit"
self.description = "A survey of 145 people asked them \"Which is the nicest fruit?\""

def data(self):
# Define the data for the chart
data = [
{"label": "Apple", "value": 35, "color": "rgba(247, 0, 0, 0.2)"},
{"label": "Orange", "value": 20, "color": "rgba(254, 114, 0, 0.2)"},
{"label": "Banana", "value": 45, "color": "rgba(237, 250, 0, 0.2)"},
{"label": "Kiwifruit", "value": 10, "color": "rgba(12, 250, 0, 0.2)"},
{"label": "Blueberry", "value": 30, "color": "rgba(0, 85, 250, 0.2)"},
{"label": "Grapes", "value": 5, "color": "rgba(177, 0, 250, 0.2)"}

# Generate the bar chart
return BarChart(data, label="Fruits").generate()

# Run the server
dashboard = FruitDashboard()

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

boardify-0.1.0.tar.gz (2.6 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page