vega / react-vega

Convert Vega spec into React class conveniently
http://vega.github.io/react-vega/
Other
373 stars 67 forks source link

Generated Charts passing in data as an attribute messes up title ... extra space at top - pie chart #597

Open jschimmoeller opened 1 year ago

jschimmoeller commented 1 year ago

if you use the data attribute you will get an extra space at the top. The first graph will have extra spacing at the top.

`

  <div className="Container">
    <div className="App">
      <Vega spec={graphValues} renderer={"svg"} actions={false} />
    </div>
  </div>

`

Here is a codesandbox showing issue: https://codesandbox.io/s/keen-resonance-jl4bp6