A React wrapper for the dygraphs charting library.
motiz88 / react-dygraphs Goto Github PK
View Code? Open in Web Editor NEWA React wrapper for the dygraphs charting library.
License: MIT License
A React wrapper for the dygraphs charting library.
License: MIT License
A React wrapper for the dygraphs charting library.
InvalidCharacterError: Failed to execute 'createElement' on 'Document': The tag name provided ('/static/media/Dygraph.88ee0c7d.jsx') is not a valid name.
react 16.3 version
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 ?
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} />;
}
}
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';
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.
Because of the propTypes defined on data, when dealing with multiple graphs of +180 ticks, you start to get a serious lag and browser hanging because of prop types validation
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.
axis
axisLabelColor
axisLabelFontSize
axisLabelFormatter
axisLabelWidth
axisLineColor
axisLineWidth
axisTickSize
dataWindow
drawAxesAtZero
drawAxis
drawXAxis
drawYAxis
includeZero
independentTicks
labelsUTC
logscale
panEdgeFraction
pixelsPerLabel
ticker
valueRange
xAxisHeight
xRangePad
yRangePad
I cannot find that file in git. Can it be removed?
The current code lets some malformed data through and would also block DataTable objects (how do we check for them if not with instanceof
?). See format reference.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.