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

Make ChartXAxisRenderer calculate labelsWidth based on string output by custom ChartXAxisValueFormatter #851

Closed
DarkInsight opened this issue Mar 17, 2016 · 1 comment

Comments

@DarkInsight
Copy link

XAxis values for my chart is a series of date string in the format of "2016-02-15T06:00:00.000Z";
I format these date strings using a custom ChartXAxisValueFormatter, for example, if the chart is zoomed out, the x axis labels are shown as "16 Mar", "17 Mar" and etc; if the chart is zoomed in, the labels are shown as "04:30pm", "05:00pm" and etc.

Using a default ChartXAxisRenderer, I noticed that it calculate the labelsWidth using the original date string like "2016-02-15T06:00:00.000Z", instead of the formatted string output. May I know how should I solve this issue?

@danielgindi
Copy link
Collaborator

This is a duplicate (#561), we're working on this.

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

2 participants