We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is your feature request related to a problem? Please describe.
For now we can provide tickMarkFormatter to format time axis tick marks.
tickMarkFormatter
lightweight-charts/src/model/time-scale.ts
Lines 192 to 197 in 1afc8db
Lines 78 to 93 in 1afc8db
But we cannot override the behaviour for some special cases and call the default implementation otherwise
Describe the solution you'd like
We can change the signature in the following way:
export type TickMarkFormatter = (time: Time, tickMarkType: TickMarkType, locale: string) => string | null;
In case when this funtion returns null we can use the default tick mark formatter implementation.
null
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Is your feature request related to a problem? Please describe.
For now we can provide
tickMarkFormatter
to format time axis tick marks.lightweight-charts/src/model/time-scale.ts
Lines 192 to 197 in 1afc8db
lightweight-charts/src/model/time-scale.ts
Lines 78 to 93 in 1afc8db
But we cannot override the behaviour for some special cases and call the default implementation otherwise
Describe the solution you'd like
We can change the signature in the following way:
In case when this funtion returns
null
we can use the default tick mark formatter implementation.The text was updated successfully, but these errors were encountered: