victory
victory copied to clipboard
Failed prop type: domainPadding
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>
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.
victory version "0.18.4" victory-chart version "18.2.0"
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?