react-d3 / react-d3-example

Several examples for demontrate the power of react-d3
http://reactd3.org
33 stars 65 forks source link

Why Chart component not working? #5

Open Beace opened 8 years ago

Beace commented 8 years ago

my code:

<Chart>
<LineChart
              showXGrid= {true}
              showYGrid= {true}
              margins= {margins}
              title={title}
              data={ChartData}
              width={width}
              height={height}
              chartSeries={ChartSeries}
              x={x}
            />
</Chart>

It's blank on my webpage.When I delete Chart Component,it working!Why?

Anima-t3d commented 7 years ago

I think the docs are outdated. I came across the same issue... It seems like <Chart> is the generic component to use when you want to create a chart of a type that is not yet supported. If you want to use a <LineChart> just use that component.