Skip to content

Commit

Permalink
fix(stories): adding showTicks={false} to XAxis in StockChart
Browse files Browse the repository at this point in the history
We don't want to reserve the space for this axis.

Resolves react-financial#509
  • Loading branch information
markmcdowell committed Apr 30, 2021
1 parent 72c4287 commit 4966ea7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/stories/src/features/StockChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class StockChart extends React.Component<StockChartProps> {
<BarSeries fillStyle={this.volumeColor} yAccessor={this.volumeSeries} />
</Chart>
<Chart id={3} height={chartHeight} yExtents={this.candleChartExtents}>
<XAxis showGridLines showTickLabel={false} />
<XAxis showGridLines showTicks={false} showTickLabel={false} />
<YAxis showGridLines tickFormat={this.pricesDisplayFormat} />
<CandlestickSeries />
<LineSeries yAccessor={ema26.accessor()} strokeStyle={ema26.stroke()} />
Expand Down

0 comments on commit 4966ea7

Please sign in to comment.