Giter Site home page Giter Site logo

cl-react-graph's Introduction

CL React Graphs

A ReactJS wrapper around some standard D3 charts

Setup

npm i -S cl-react-graph

Documentation

The interactive docs can be found at: https://infosum.github.io/cl-react-graph/

Developers

Running docs in development mode

If you don't have Gatsby already installed:

npm i -g gatsby

Then, to run the docs in development mode

cd docs-src
npm i
gatsby develop

the site will be available on http://localhost:8000

Publishing to NPM

Publishing is handled via a GitHub Action.

You will need to

  • npm run build (generates types)
  • ensure that the version number is bumped E.g. npm version patch -m "Upgrade to %s for reasons"
  • create a new named tag starting with 'v' E.g. git tag -a v3.3.1
  • git push --tag

Building the code

GitLab Actions should now handle this for you, although currently it seems types aren't generated, but for reference:

npm run build

Building the docs

GitLab Actions should now handle this for you, but for reference:

cd docs-src
npm run build

The docs will be built in /docs

Outstanding issues

Can be found in https://github.com/infosum/cl-react-graph/projects/1

cl-react-graph's People

Contributors

pollen8 avatar dependabot[bot] avatar martocodo avatar stusmitharoo avatar rmhonor avatar shadrech avatar iendjinn avatar crudbetter avatar

Stargazers

 avatar  avatar  avatar Dave Draper avatar John Children avatar Ben avatar

Watchers

 avatar James Cloos avatar  avatar  avatar

Forkers

shadrech pollen8

cl-react-graph's Issues

[v3] tips

decide on the best way to show tips on components - should be extensible to provide your own tip style?

When data prop is changed for LineChart element it doesn't trigger a canvas re-draw

When data is passed in that contains 2 series, it plots and draws these correctly onto the graph. However when the data is updated and a series is removed, the canvas doesn't seem to clear the old series from the visible chart. Updating the axis seems to rescale the graph but any pre-existing elements remain - unless a manual clear is used -

const svgCanvas = d3Select('svg').selectAll('*');
    svgCanvas.html(null);

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.