Closed SamMatthewsIsACommonName closed 7 years ago
HI, I have an application using react-router. I've tried implementing a basic example chart class as in the demo:
import React from 'react'; import * as d3 from 'd3'; import Chart from 'd3act';
class D3Muckaround extends React.Component { render() { return ( <Chart type={"pie"} width={300} height={300} showTooltips={true} data={ { "React": 2, "Relay": 12, "GraphQL": 5, } } /> ); } } export default D3Muckaround;
However it's displaying nothing. Do I have to be specific in letting it know where to mount to the DOM or something? Any help would be greatly appreciated thanks!
HI, I have an application using react-router. I've tried implementing a basic example chart class as in the demo:
import React from 'react'; import * as d3 from 'd3'; import Chart from 'd3act';
class D3Muckaround extends React.Component { render() { return ( <Chart type={"pie"} width={300} height={300} showTooltips={true} data={ { "React": 2, "Relay": 12, "GraphQL": 5, } } /> ); } } export default D3Muckaround;
However it's displaying nothing. Do I have to be specific in letting it know where to mount to the DOM or something? Any help would be greatly appreciated thanks!