A customizable data visualization library
Project description
Custom Viz Lib
A customizable data visualization library
Overview
Custom Viz Lib is a library for easily creating interactive and customizable data visualizations.
Features
- Create interactive graphs and charts
- Customizable themes and styles
- Support for data storytelling
Customization Details
Chart Types
BarChart: Bar ChartLineChart: Line Chart
Themes
DarkTheme: Dark ThemeLightTheme: Light Theme
Data Loading
load_csv(file_path): Function to load data from a CSV file
Utilities
normalize_data(data): Function to normalize data to a range of 0 to 1
Installation
pip install custom_viz_lib
Usage
from custom_viz_lib import chart, theme
# Load data
data = [...]
# Create a chart
bar_chart = chart.BarChart(data)
bar_chart.apply_theme(theme.DarkTheme())
bar_chart.show()
Example 1: Using in Google Colab to create a bar chart
!pip install custom_viz_lib
from custom_viz_lib.chart import BarChart
from custom_viz_lib.theme import DarkTheme
# Sample data
data = [1, 2, 3, 4, 5]
chart = BarChart(data)
chart.apply_theme(DarkTheme())
chart.show()
Example 2: Using in Google Colab to create a line chart
!pip install custom_viz_lib
from custom_viz_lib.chart import LineChart
from custom_viz_lib.theme import LightTheme
# Sample data
data = [10, 20, 15, 25, 30]
chart = LineChart(data)
chart.apply_theme(LightTheme())
chart.show()
Example 3: Using in Google Colab to load data from a CSV file and create a bar chart
!pip install custom_viz_lib
import pandas as pd
from custom_viz_lib.chart import BarChart
from custom_viz_lib.theme import DarkTheme
from custom_viz_lib.data_loader import load_csv
# Path to CSV file
file_path = 'path/to/your/data.csv'
# Load data
data = load_csv(file_path)['column_name'].tolist()
chart = BarChart(data)
chart.apply_theme(DarkTheme())
chart.show()
Example 4: Using in Google Colab to normalize data and create a line chart
!pip install custom_viz_lib
from custom_viz_lib.chart import LineChart
from custom_viz_lib.theme import LightTheme
from custom_viz_lib.utils import normalize_data
# Sample data
data = [10, 20, 15, 25, 30]
# Normalize data
normalized_data = normalize_data(data)
chart = LineChart(normalized_data)
chart.apply_theme(LightTheme())
chart.show()
License
This project is licensed under the MIT License.
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
custom_viz_lib-1.0.1.tar.gz
(2.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file custom_viz_lib-1.0.1.tar.gz.
File metadata
- Download URL: custom_viz_lib-1.0.1.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.9.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
93a389c3e6d0417e45c9c885bb63464098073242ae868c42e43526277324feae
|
|
| MD5 |
d0c24c0510d0e3959d98ecde02a1fe5c
|
|
| BLAKE2b-256 |
e245090d28b5d91e439f15e0f27be9f6d97437951be639338a09e4798b31a43f
|
File details
Details for the file custom_viz_lib-1.0.1-py3-none-any.whl.
File metadata
- Download URL: custom_viz_lib-1.0.1-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.9.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b7db0540795df815ecd2bc584eb4d0ed6eb1e7bc1b0453f5e03d7afebd438dd5
|
|
| MD5 |
0779d71c80e64e610e34f1f87af99e05
|
|
| BLAKE2b-256 |
05e617eee6889fc7ebe7277a5521919923e8622f26b9a9038207b5080ddaeeb7
|