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.

examples on github pages do not escape viewBoxObject correctly #339

@dalvizu

Description

@dalvizu

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={{

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