Giter Club home page Giter Club logo

datalith's People

Contributors

dependabot[bot] avatar lucafalasco avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

datalith's Issues

add docs

Use @storybook/addon-notes to document all components

[Spiral] Add custom function option as prop to get spiral coordinates

I am not sure about that, but I think responsability has failed with Spiral chart component, in particular with bubble positions.
When you generate spiral coordinates [1], you are not taking into account width and height, could be a problem?
I think we need to scale up/down coordinates according to actual height an width or they are going to be render outside of container. Or could be an issue related to g transform? [2] Or maybe because we are not separating correcly wrapper and bounds without taking into account margins?
What do you think about that? Am I missing something?

Thanks!

add onMouseOver / onMouseOut events

It would be useful to add mouse events handlers to each element of the data visualizations, in order to make it possible to pass a callback to handle those events to eventually trigger side effects.
This could be done similarly to how it currently works with the tooltip prop.
I think something like this could work:

interface Props {
  ...
  onMouseOver?: (e: React.MouseEvent, d: Datum) => void
  onMouseOut?: (e: React.MouseEvent, d: Datum) => void
}

add fillOpacity and strokeOpacity accessors

At the moment opacity can only be applied to an SVG element by setting the alpha value in the fill color accessor, but rgba is currently not allowed in the SVG spec, and can generate color issues if the SVG is exported and edited with a design tool such as Adobe Illustrator.

remove sortFn prop

Data could actually be sorted before being used.. Should also remove a lodash dependency

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.