Skip to content

Commit

Permalink
fix: stop rounding offset
Browse files Browse the repository at this point in the history
Stop rounding the offset so as to prevent step-change discontinuities. Improves the visual appearance of BarSeries when zooming out.
  • Loading branch information
dev-nll authored and markmcdowell committed Jul 12, 2021
1 parent 2dc53ee commit 7944b2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/series/src/BarSeries.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export class BarSeries extends React.Component<BarSeriesProps> {
plotData,
});

const offset = Math.floor(0.5 * barWidth);
const offset = 0.5 * barWidth;

return plotData
.map((d) => {
Expand Down

0 comments on commit 7944b2d

Please sign in to comment.