Skip to content

"# Format" does not apply formatting to some values #274

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

Closed
alexander-daniel opened this issue Feb 22, 2016 · 6 comments
Closed

"# Format" does not apply formatting to some values #274

alexander-daniel opened this issue Feb 22, 2016 · 6 comments

Comments

@alexander-daniel
Copy link
Contributor

Not sure if it's a bug or not, so forgive me if this is expected behaviour!

I've set the # Format in the Layout Panel, however the axes labels for 1000 and 1001 do not conform to that format. Only the axes labels that aren't associated to data points show the formatted style.

screen shot 2016-02-22 at 2 26 58 pm

@mdtusz
Copy link
Contributor

mdtusz commented Feb 22, 2016

@alexander-daniel This may be related to this which should be merged in today or tomorrow.

@etpinard
Copy link
Contributor

This looks like the intended behaviour (cc @alexcjohnson)

http://codepen.io/etpinard/pen/RrzXmv

the layout.separators attribute respects significant values in the data.

Note that the comma can be forced in with layout.xaxis.tickformat.

@etpinard
Copy link
Contributor

Oops I spoke too soon. This behaviour is not due to significant values in the data, but to the fact that all 4-digit integers all show up w/o separators by design.

See relevant code here.

@rantler
Copy link

rantler commented Feb 29, 2016

I'm trying to experiment with the linked codepen example to for the separators using layout.xaxis.tickformat but I can't get it working. Is there a working example one can link to?

@mdtusz
Copy link
Contributor

mdtusz commented Feb 29, 2016

Hi Rantler,

What problem are you encountering with the codepen example? As mentioned above, not displaying a comma with 4 digit values seems to be by design. More documentation on tickformat usage can be found here.

@rantler
Copy link

rantler commented Feb 29, 2016

Thanks, I'll keep experimenting. I was just hoping for a working example of forcing the format that we're looking for since the by-design behavior isn't meeting our needs.

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

4 participants