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

examples on github pages do not escape viewBoxObject correctly #339

Open
dalvizu opened this issue Feb 8, 2017 · 1 comment
Open

examples on github pages do not escape viewBoxObject correctly #339

dalvizu opened this issue Feb 8, 2017 · 1 comment

Comments

@dalvizu
Copy link

dalvizu commented Feb 8, 2017

Hi I'm very new to react (this is my first day) so I'm not sure how to fix this:

The examples here do not work:

https://reactiva.github.io/react-d3-website/

The reason is that viewBoxObject is not escaped with double squigglys {{...}}}:

<LineChart
  legend={true}
  data={lineData}
  width='100%'
  height={400}
  viewBoxObject={
    x: 0,
    y: 0,
    width: 500,
    height: 400
  }
  title="Line Chart"
  yAxisLabel="Altitude"
  xAxisLabel="Elapsed Time (sec)"
  gridHorizontal={true}
/>

I'm not sure why this is - in code it looks like they are indeed double squigglies:

viewBoxObject={{

@ghost
Copy link

ghost commented May 3, 2017

yes, i find it too. must be add {}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant