Giter VIP home page Giter VIP logo

data-visualization-prototypes's Introduction

Data Visualization Prototypes with Plotly

This is a personal project where I am prototyping data visualizations using Plotly. The project includes three interactive speedometer charts displayed on a responsive webpage.

Features

  • Three interactive speedometer charts.
  • Responsive design to adapt to different screen sizes.
  • Customizable chart data and appearance.

Technologies Used

  • HTML
  • CSS
  • JavaScript
  • Plotly.js

Getting Started

Prerequisites

  • A web browser to view the HTML file.

Installation

  1. Clone the repository:
    git clone https://github.com/alainrafiki/data-visualization-prototypes.git
  2. Navigate to the project directory:
    cd data-visualization-prototypes

Usage

  1. Open index.html in your web browser to view the charts.
    open index.html
  2. Customize the chart data and appearance by modifying chart.js.

File Structure

  • index.html: The main HTML file containing the structure of the webpage.
  • chart.js: JavaScript file containing the configuration and creation of the Plotly charts.
  • styles.css: CSS file for styling the webpage (if applicable).

Customization

To customize the data and appearance of the charts, modify the relevant sections in chart.js. Each chart has its own configuration for values, range, steps, and thresholds.

Example:

// Chart 1 configuration
var gaugeValue1 = 3636;
var gaugeRange1 = [0, 10000];
var gaugeSteps1 = [
    { range: [0, gaugeRange1[1] / 3], color: "red" },
    { range: [gaugeRange1[1] / 3, (2 * gaugeRange1[1]) / 3], color: "yellow" },
    { range: [(2 * gaugeRange1[1]) / 3, gaugeRange1[1]], color: "green" }
];
var thresholdValue1 = 6433;
createGaugeChart('myDiv1', gaugeValue1, gaugeRange1, gaugeSteps1, thresholdValue1);

Contributing

This is a personal project, but feel free to fork the repository and submit pull requests if you have improvements or bug fixes.

License

This project is licensed under the MIT License.

data-visualization-prototypes's People

Contributors

alainrafiki avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.