Skip to content

jantoun-scottlogic/d3-intro

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

d3-intro

This project was bootstrapped with Create React App.

This is intended to be a streamlined example of a d3 project, compatible with d3 v7.

The example is of an order depth chart for a financial trading platform.

It was created and presented by Scott Logic grads M. Beanland, JJ Gray, and E. Reid.

getData()

Generates data based on a mock aggregated order book.

It converts this into two data arrays, containing price and cumulative volume data for buy and sell orders.

DepthChart(props)

Generates the axes and paths of the depth chart.

It calls drawTooltip.

drawTooltip(props)

Adds a tooltip which appears when the mouse is moved over the chart.

The function appends an invisible overlay which detects and responds to mouse events.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 81.7%
  • HTML 12.9%
  • CSS 5.4%