New charts.py
module for easy and interactive data visualization
#122
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR was made by the team Black Oil Pyrates in HACKTUDO.
Description:
This PR introduces a new
ThreeWChart
class to the3W
repository, enabling the creation of interactive visualizations from 3W dataset files using Plotly. TheThreeWChart
module provides an intuitive way to display time-series data with background shapes indicating key class transitions, along with a custom legend for better event understanding.Code Overview:
ThreeWChart
class:class_mapping
: Maps class IDs to descriptive event names.class_colors
: Assigns colors to each class for visual distinction._load_data
: Loads and preprocesses the dataset from a Parquet file._get_background_shapes
: Generates background shapes based on class transitions._add_custom_legend
: Adds a custom legend with event names and colors to the chart.plot
: Generates the interactive chart with class annotations and displays it using Plotly.Example Usage:
Dependencies: