Code Monkey home page Code Monkey logo

react-dygraphs's Introduction

A React wrapper for the dygraphs charting library.

react-dygraphs's People

Contributors

greenkeeperio-bot avatar motiz88 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

Watchers

 avatar  avatar  avatar  avatar  avatar

react-dygraphs's Issues

More complex example

I am currently using your dygraph component on a dashboard application that I am working on. I am currently facing some issues with using the dygraphs options (mainly increasing the size of the chart spacing and visibility), Could you may be provide some explanation on how to use these in your component ?

Date labels

Hi, this may be something I've just completely missed, but I noticed that whilst Dygraphs should natively and automatically parse dates on the X-axis, react-dygraphs doesn't seem to do this. Is this a known bug or am I doing it wrong?

When I run the following example code, nothing shows up on the X-axis and no line is drawn, but replacing the dates with an index works fine. Any thoughts? Thanks in advance!

import React from 'react';
import Dygraph from 'react-dygraphs';

export default class Chart extends React.Component {
  render () {
    const labels = ['Date', 'Amount'];
    const graphData = [['2015-01-01',10], ['2015-01-02', 20], ['2015-01-04', 14]];
    return <Dygraph data={graphData} labels={labels} height={600} width={1200} />;
  }
}

Add type

Could not find a declaration file for module 'react-dygraphs'. '../node_modules/react-dygraphs/dist/index.js' implicitly has an 'any' type.
Try npm install @types/react-dygraphs if it exists or add a new declaration (.d.ts) file containing declare module 'react-dygraphs';

Not enough info in README

Could you please add more details about how to run this project, where it will run, installation, etc?
Currently there are no instructions, which is perplexing, and every effort I have made to run it fails.

Thank you.

Dygraphs options status

This is a master issue tracking the implementation of appropriate React-ish wrappers for all dygraphs options.

The option names link to dygraph's documentation.
Links to sub-issues, PRs, commits, etc. will be added after them as needed.
Please discuss specific options in dedicated issues and not in this thread.

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.