Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

D3.js Pie Chart Example

This project is an example of creating a pie chart using D3.js.

Installation

To use this example, follow these steps:

  1. Clone the repository: git clone https://github.com/UncleDreiAI/D3.js-Pie-Chart-Example.git
  2. Navigate to the project directory: cd D3.js-Pie-Chart-Example
  3. Open index.html in your preferred web browser.

Usage

Once the project is set up, you can customize the pie chart by modifying the data and styling in the index.html file.

Dependencies

This project has the following dependencies:

  • D3.js: A JavaScript library for manipulating documents based on data. You can include it in your project by adding the following script tag to your index.html file:

    <script src="https://d3js.org/d3.v7.min.js"></script>

    Make sure to include this script tag before any other scripts that rely on D3.js.

  • Express: A popular web application framework for Node.js. It provides a set of tools and features that simplify the process of building web applications and APIs. Express allows you to handle HTTP requests, define routes, manage middleware, and render dynamic views.

    To add the "express" dependency to your project, you can follow these steps:

    1. Open your terminal and navigate to the project directory:

      cd /Users/andrehinton/Projects/D3.js-Pie-Chart-Example
    2. Run the following command to install the "express" package:

      npm install express
    3. Once the installation is complete, you can include the "express" module in your project by requiring it in your JavaScript files:

      const express = require("express");

    Make sure to require the "express" module before using any of its functionalities in your code.

Contributing

Contributions are welcome! If you have any suggestions or improvements, please submit a pull request or submit a issue.

License

This project is licensed under the MIT License. See the LICENSE file for more information.

MIT License

Copyright (c) [2024] [UncleDreiAI.com] Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages