Giter VIP home page Giter VIP logo

splash's People

Contributors

jackfletch avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

csf0630p

splash's Issues

Loading external img

The color legend is loading an image from d3's repo to show the color scheme. This should be served locally.

Refactor BarChart from victory to custom Voronoi

Victory's event propagation is quite slow, and for some reason victory's charts re-render all elements when only the hover element changes. Similar to the LeftRightChart, change BarChart to use the custom Voronoi implementation for performance gains.

Smooth hexagonal bin shootingPct

Hexagonal bins are difficult to smooth values between. Write a function that applies a simple kernel over the hexbins to even out the shooting percentage between nearby bins. This will help with the varied colors behind the 3-pt line.

Refactor duplicated chart size configuration and scale initialization

As noted (and found to be problematic) in #17, code similar to the following exist in all of the chart components:

const margin = {top: 20, right: 20, bottom: 20, left: 20};
const svgWidth = 540;
const svgHeight = 500;
const width = svgWidth - margin.left - margin.right;
const height = svgHeight - margin.top - margin.bottom;
const x = scaleLinear()
  .domain([0, maxDistance])
  .range([0, width]);
const y = scaleLinear()
  .domain([0, 1])
  .range([height, 0]);

Refactoring this duplicated configuration to a reusable component/function/hook would be wise.

Victory is slow

Victory is a great React visualization library. However, its charts are quite slow for this project's use case due to re-rendering every time a prop changes.

I have implemented some custom charting components (e.g., #23) and removed all of the most victory charting components (e.g., #26). Because I'm favoring my custom components over victory's, I want to cleanse the project of any remaining mention of the library.

Show cursor in all applicable charts simultaneously

The charts using victory as a charting library do not respond to the hover prop that holds the current hover distance. Instead, they pass a built-in label component to victory's VictoryVoronoiContainer, which dictates which data point is hovered.

Change these charts to respond to hover instead of using the built-in label component method.

Add left-right charts

Left-right charts will showcase a player's tendencies towards a specific side of the court.

Uncolored hexagon bin in HexShotchart

There is an uncolored hexagon bin (located near half court) in Lebron's 2019-20 season shotchart. I believe this is a bug associated with a shot from within maxDistance but its bin is centered beyond maxDistance.

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.