Skip to content
This repository was archived by the owner on May 18, 2019. It is now read-only.
This repository was archived by the owner on May 18, 2019. It is now read-only.

Can't create charts with this package #347

@ankit6373

Description

@ankit6373

I installed react-d3 package in my react project but It is giving this error

download

Here is my component:

`

    import React, { Component } from 'react';
    import { PieChart } from 'react-d3';

    class CusBarChart extends Component {

         state  = {
              pieData : [
                 {label: 'A', value: 5},
                 {label: 'B', value: 6},
                 {label: 'F', value: 7}
             ]
          }

         render() {
                return (
                     <div className="content">
                            <PieChart
                                data={this.state.pieData}
                                width={400}
                                height={400}
                                radius={100}
                                innerRadius={20}
                                sectorBorderColor="white"
                                title="Pie Chart"
                            />
                       </div>
                );
          }
      }

     export default CusBarChart;

`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions