Skip to content

Commit

Permalink
Changed visible range to display the line to fix all the data and wit…
Browse files Browse the repository at this point in the history
…hout gaps
  • Loading branch information
timocov committed Jan 28, 2022
1 parent 577ca28 commit 9f80905
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function HeroChart(): JSX.Element {
orangeSeries.setData(data.orangeData as LineData[]);
blueSeries.setData(data.blueData as LineData[]);

c.timeScale().setVisibleLogicalRange({ from: 1, to: data.orangeData.length - 2 });
c.timeScale().setVisibleLogicalRange({ from: 0.5, to: data.orangeData.length - 1.5 });

const resizeListener = () => {
const { width, height } = container.getBoundingClientRect();
Expand Down

0 comments on commit 9f80905

Please sign in to comment.