Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to show equal interval of ticks with equal spacing in between ticks in x-axis? #820

Open
khalilitarle opened this issue Jan 5, 2023 · 0 comments

Comments

@khalilitarle
Copy link

khalilitarle commented Jan 5, 2023

Hi everyone,

I'm trying to show equal interval of ticks with equal spacing in between ticks in x-axis in chart component.
Can I please get some help?

I have tried to modify the tickFormat and the ticks parameters inside the XAxis component but nothing worked.
Thanks.

Edit:
Tried the following :
<ChartCanvas height={canvasHeight}
ratio={1}
width={width}
margin={margin}
type='svg'
seriesName="Executions"
data={data}
xScale={scaleTime()}
xAccessor={xAccessor}
displayXAccessor={displayXAccessor}
xExtents={xExtents}

setting xScale={scaleTime()} gave the following equal intervals on the xAxis but the numerical values are wrong.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant