Skip to main content

Interactive and dynamic data visualization library

Project description

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.

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

pyVisio-0.2.0.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyVisio-0.2.0-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

Details for the file pyVisio-0.2.0.tar.gz.

File metadata

  • Download URL: pyVisio-0.2.0.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.1

File hashes

Hashes for pyVisio-0.2.0.tar.gz
Algorithm Hash digest
SHA256 be35043045da1643f4b0322e161a0d848555ca3ffff4d1280df67e3bcf4ee0ac
MD5 99056fbaa356e0e59b6594c509ffe7e9
BLAKE2b-256 f84fc0bd09a1fea87b0e20bb42cb8ea3cf92f23927a27287bb2d1bb2812c40a3

See more details on using hashes here.

File details

Details for the file pyVisio-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: pyVisio-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 12.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.1

File hashes

Hashes for pyVisio-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e828b749cd0f91a57489a277913e4f534d5a67842023f6c98a800384b1120430
MD5 a304e8607f2b1f4043e2a3b9cbab4513
BLAKE2b-256 c9dadc14727612338169c37542ec9ffd175e6e1f843e7e497eadb8413070ba4c

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