Skip to content

Flexiboy/ChartOMaker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chart O' Maker

Authors Julien MARTIN-PRIN (@Flexiboy)

This project is solely reserved to the use of the Author, and Abdallah Benmansour and Loris Dalleau for creating content for Bourseko. Any other use is prohibited

Installing requirements

This requirement installation is only working for UNIX like computer (Mac), you will have to install dependencies on your own if you run Windows

In order to run the program, you will need to install the following on your machine:

  • python3
  • tkinter
  • sjvisualizer
  • pyqt5

For Mac and UNIX user, you can execute the script requirements.sh using the commands below:

sudo chmod +x requirements.sh
./requirements.sh

Using the app - CLI (temporarily unavailable)

CLI for this program is temporarily unavailable This program allows you to run it through CLI. You can choose between 2 modes, either --generate that allows you to generate a new visualization, or --set that allows you to modify the settings (you can also do it manually by modifying values in the src/helpers/settings.json JSON file). Here is a short description of all the arguments available and their short description:

  • To generate a visualization:
    • -f or --file_name (required): path to the excel file
    • -t or --title (required): title for the visualization
    • -st or --sub_title (optional): the sub title for the visualization
    • -d or --duration (optional, default to 0.25): the duration of the visualization
    • --bar (optional, default to False if not specified): to have a bar chart visualization
    • --pie (optional, default to False if not specified): to have a pie chart visualization
    • --line (optional, default to False if not specified): to have a line chart visualization
    • --area (optional, default to False if not specified): to have a area chart visualization

Please note one of --bar, --pie, --line or --area is required

Example of use:

> python3 -m chart_o_maker.app --generate --line --file_name "../sample_datasets/LVMHvsHermes.xlsx" --title "LVMH vs Hermes"
  • To change settings:
    • --logo (optional): used to change path to logo
    • --sjvisualizer_logo (optional): used to hide/unhide (True is shown) "made with sjvisualizer" logo
    • --record (optional): used to enable/disable (True is enabled) auto-record functionnality
    • --video_format (optional): used to change video format to portrait or landscape
    • --resolution (optional): used to change video resolution (e.g. 480p, 720p, 1080p)
    • --output_file_name (optional): used to change the name of the output file in case auto-record is enabled

Please note at least one argument is needed to change the settings

Example of use:

> python3 chart_o_maker.app --set --logo "path_to_logo.jpg" --sjvisualizer_logo False --record True --video_format "landscape" --resolution "720p" --output_file_name "new_video.mp4"

Using the app - Graphics interface

A new graphics interface has been added to the app. You can have an overview of the GUI (Graphics User Interface) below:

Chart O' Maker GUI

To invoke the CLI, just type the following command from src/ folder:

> python3 -m chart_o_maker.app

Please note that, while some settings appear on the GUI, those are not mapped onto sjvisualizer. This will come on future version

Bar chart

Pie chart

Line chart

https://github.com/Flexiboy/ChartOMaker/blob/main/Images/LineChartExample.mp4

Line Chart example (comparing LVMH and Hermes share price from 2014 to 2024)

Area chart

More functionnalities will be brought to this app in the future, stay tuned

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors