An open API service indexing awesome lists of open source software.

https://github.com/ejw-data/d3-horizontal-bar-custom

Custom D3js horizontal bar chart
https://github.com/ejw-data/d3-horizontal-bar-custom

d3js html-css-javascript

Last synced: 8 months ago
JSON representation

Custom D3js horizontal bar chart

Awesome Lists containing this project

README

          

# d3-horizontal-bar-custom

Author: Erin James Wills, ejw.data@gmail.com

![D3 Scatter Plot](./assets/images/barchart-d3.png)
Photo by [Jack B](https://unsplash.com/@nervum?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText) on [Unsplash](https://unsplash.com/s/photos/candlestick-chart?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText)

## Overview


This repo uses d3.js to create a custom horizontal bar chart or sometimes called lollipop chart. This was a weekend project that started with the code used in the [d3-scatter plot repo]() and modified the same data set to show differences from the average.


## Technologies
* HTML/CSS/JS
* D3.js


## Data Source
I believe the original dataset came from Kaggle and was one of their Quality of Life datasets.


## Setup and Installation
1. Clone the repo to your local machine
1. Open repo folder in an IDE like VSCode
1. Using a virtual server like the VSCode extention LiveServer
1. Run `index.html`

## Example

![D3 Horizontal Bar Chart](./assets/images/d3-horizontal-bar-example.png)