pyVisio API Reference
Table of Contents
Introduction
pyVisio is a dynamic and interactive data visualization library that provides comprehensive tools for creating various types of charts, performing data analysis, and generating reports.
Functions
line_chart
pv.line_chart(data, title="Line Chart", xlabel="X Axis", ylabel="Y Axis", color='blue', interactive=False)
Creates a line chart.
Parameters
- data: (list) List of numerical values.
- title: (str) Title of the chart.
- xlabel: (str) Label for the X-axis.
- ylabel: (str) Label for the Y-axis.
- color: (str) Color of the line.
- interactive: (bool) Specifies whether the chart is interactive.
bar_chart
pv.bar_chart(data, title="Bar Chart", xlabel="Category", ylabel="Value", color='blue', interactive=False)
Creates a bar chart.
Parameters
- data: (dict) Dictionary with categories as keys and numerical values as values.
- title: (str) Title of the chart.
- xlabel: (str) Label for the X-axis.
- ylabel: (str) Label for the Y-axis.
- color: (str) Color of the bars.
- interactive: (bool) Specifies whether the chart is interactive.
scatter_plot
pv.scatter_plot(x_data, y_data, title="Scatter Plot", xlabel="X Axis", ylabel="Y Axis", color='blue', interactive=False)
Creates a scatter plot.
Parameters
- x_data: (list) List of numerical values for the X-axis.
- y_data: (list) List of numerical values for the Y-axis.
- title: (str) Title of the chart.
- xlabel: (str) Label for the X-axis.
- ylabel: (str) Label for the Y-axis.
- color: (str) Color of the points.
- interactive: (bool) Specifies whether the chart is interactive.
pie_chart
pv.pie_chart(data, title="Pie Chart", interactive=False)
Creates a pie chart.
Parameters
- data: (dict) Dictionary with categories as keys and numerical values as values.
- title: (str) Title of the chart.
- interactive: (bool) Specifies whether the chart is interactive.
time_series_analysis
pv.time_series_analysis(data, lags=1, detect_anomalies=False, anomaly_threshold=3)
Performs time series analysis.
Parameters
- data: (list or numpy array) Numerical data.
- lags: (int) Number of lags to use in the ARIMA model.
- detect_anomalies: (bool) Specifies whether to detect anomalies.
- anomaly_threshold: (int) Threshold for detecting anomalies.
detect_anomalies_in_series
pv.detect_anomalies_in_series(data, threshold=3)
Detects anomalies in a time series.
Parameters
- data: (list or numpy array) Numerical data.
- threshold: (int) Threshold for detecting anomalies.
clean_data
pv.clean_data(data, method='fillna', fill_value=0)
Cleans the data.
Parameters
- data: (dict or pandas DataFrame) Data to be cleaned.
- method: (str) Method to use for cleaning the data ('fillna', 'dropna').
- fill_value: (any) Value to fill NaNs with if 'fillna' method is used.
set_theme
pv.set_theme(theme)
Sets the theme for the charts.
Parameters
- theme: (dict) Dictionary with keys 'background_color', 'grid_color', 'line_color', 'font_family'.
live_line_chart
pv.live_line_chart(data, title="Live Line Chart", xlabel="X Axis", ylabel="Y Axis", color='blue')
Creates a live line chart.
Parameters
- data: (list) List of numerical values.
- title: (str) Title of the chart.
- xlabel: (str) Label for the X-axis.
- ylabel: (str) Label for the Y-axis.
- color: (str) Color of the line.
live_bar_chart
pv.live_bar_chart(data, title="Live Bar Chart", xlabel="Category", ylabel="Value", color='blue')
Creates a live bar chart.
Parameters
- data: (dict) Dictionary with categories as keys and numerical values as values.
- title: (str) Title of the chart.
- xlabel: (str) Label for the X-axis.
- ylabel: (str) Label for the Y-axis.
- color: (str) Color of the bars.
generate_report
pv.generate_report(report_data, format='pdf', output_path='report.pdf')
Generates a report.
Parameters
- report_data: (dict) Dictionary with details of the report.
- format: (str) Format of the report ('pdf', 'html').
- output_path: (str) Path to save the report.
basic_analysis
pv.basic_analysis(data)
Performs basic analysis on the data.
Parameters
- data: (list) List of numerical values.
advanced_analysis
pv.advanced_analysis(data)
Performs advanced analysis on the data.
Parameters
- data: (list) List of numerical values.
Metadata
Release files for pyVisio 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyVisio-0.2.0.tar.gz | 9.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyVisio-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.9 kB
Release files / pyVisio-0.2.0.tar.gz
| Download URL | pyVisio-0.2.0.tar.gz |
|---|---|
| Size | 9.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
be35043045da1643f4b0322e161a0d848555ca3ffff4d1280df67e3bcf4ee0ac
|
|
BLAKE2b-256 checksum How to use checksums |
f84fc0bd09a1fea87b0e20bb42cb8ea3cf92f23927a27287bb2d1bb2812c40a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.12.1
|
Release files / pyVisio-0.2.0-py3-none-any.whl
| Download URL | pyVisio-0.2.0-py3-none-any.whl |
|---|---|
| Size | 12.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e828b749cd0f91a57489a277913e4f534d5a67842023f6c98a800384b1120430
|
|
BLAKE2b-256 checksum How to use checksums |
c9dadc14727612338169c37542ec9ffd175e6e1f843e7e497eadb8413070ba4c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.12.1
|