victory icon indicating copy to clipboard operation
victory copied to clipboard

Failed prop type: domainPadding

Open BrRenat opened this issue 9 years ago • 3 comments

Failed prop type: Invalid prop domainPadding supplied to VictoryChart.

<VictoryChart
      height={200}
      theme={VictoryTheme.material}
      padding={20}
      domainPadding={{
        x: [5, 5],
        y: [0, 10],
      }}
      containerComponent={
        <VictoryVoronoiContainer />
      }
>
....
</VictoryChart>

BrRenat avatar Apr 20 '17 16:04 BrRenat

This is working fine for me (fiddle). Could you write which victory version you are using? Maybe a jsfiddle would help to reproduce your problem.

sto3psl avatar Apr 20 '17 19:04 sto3psl

victory version "0.18.4" victory-chart version "18.2.0"

BrRenat avatar Apr 20 '17 19:04 BrRenat

It looks like that's caused by having duplicate numbers in the array. Does changing x: [5, 5] to x: 5 accomplish what you are looking for?

joshuahenson avatar Apr 22 '17 04:04 joshuahenson