victory
victory copied to clipboard
Adding a container clips right side of chart
I've defined a simple candlestick chart which renders as:

Specifying a container (to enable zoom for example) truncates the last candlestick, like so:

<VictoryChart
width={this.state.chartWidth}
height={450}
candleWidth={55}
theme={VictoryTheme.material}
scale={{ x: 'time' }}
standalone
domainPadding={{ x: 25 }}
containerComponent={<VictoryZoomContainer style={{paddingRight: 100}}
>
...
Is this an issue or simply a usage error?
@rossdack VictoryZoomContainer adds a clipPath to the chart area so that anything rendered outside of it wont show. This is how zooming out is accomplished.
You can add padding to the clipPath it renders like so:
containerComponent={
<VictoryZoomContainer
clipContainerComponent={<VictoryClipContainer clipPadding={{ left: 10, right: 10 }} />}
/>
}