Giter Site home page Giter Site logo

traveltimn / dc-d3-top-eu-restaurants Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 123 KB

Top 100 Restaurants in 31 EU Cities - sample DC/D3 project

Home Page: https://traveltimn.github.io/dc-d3-top-eu-restaurants/

CSS 19.25% JavaScript 69.49% HTML 11.26%
dc-js d3-js crossfilter-js javascript jquery leafletjs

dc-d3-top-eu-restaurants's Introduction

10DEC2020 - Update branch from master to main.


D3.js is a JavaScript library (created by Mike Bostock)

If you plan on making a data dashboard, you should consider the following steps:

  • OBTAIN DATA
    • Kaggle is great source of free data!
  • FILTER DATA [optional]
    • If desired and/or permitted, remove any unnecessary columns+rows from your data.
  • ASSIGN CHARTS
    • Decide which charts your data will best portray to users. (examples below)
  • CONVERT DATA [optional]
  • DESIGN PROJECT
    • This is where your artistic abilities create your dashboard wireframes!
  • < C O D E >
    • The moment you've been waiting for - building your dashboard!

EXAMPLE DC.JS CHART TYPES

barChart barChart (stack) chloropleth
dataCount dataTable donutChart
heatMap lineChart pieChart
rowChart scatterPlot selectMenu

full list of dc.js examples

INSPIRATION

Still stuck for ideas and want some inspiration?

Here are a few examples of data dashboard projects from other Code Institute students that I thoroughly enjoyed!

! IMPORTANT NOTES !

UPDATED VERSIONS

dc.js (version 3.0+) and D3 (version 5+) do not work with queue.js

Newer versions of dc.js and D3 do not work with queue.js, which is what was displayed in the course videos. Be careful when searching for help online with problems on your project. Check which version(s) of dc.js and D3 are being used.

COLORS

With the newer versions, color for charts has been expanded. You can select a default color scheme for all charts, or select a scheme for each chart individually.

D3 Scale Chromatic Color Schemes

To set a default color for all charts, you could use the schemeSpectral[11]

dc.config.defaultColors(d3.schemeSpectral[11]);

This will assign a color palette with 11 options (value must be minimum of 3).

Further color options can be seen on ColorBrewer2.org

DEMO

Now for a demo I've created using the new D3 | dc.js versions, just to highlight a few examples of charts in action.

Sample Project:

dc-d3-top-eu-restaurants's People

Contributors

traveltimn avatar

Watchers

 avatar  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.