{"action":"created","issue":{"url":"https://api.github.com/repos/altair-viz/altair/issues/276","repository_url":"https://api.github.com/repos/altair-viz/altair","labels_url":"https://api.github.com/repos/altair-viz/altair/issues/276/labels{/name}","comments_url":"https://api.github.com/repos/altair-viz/altair/issues/276/comments","events_url":"https://api.github.com/repos/altair-viz/altair/issues/276/events","html_url":"https://github.com/altair-viz/altair/issues/276","id":193362173,"number":276,"title":"proper `format` usage in Axis? (includes repro case)","user":{"login":"jowens","id":976970,"avatar_url":"https://avatars.githubusercontent.com/u/976970?v=3","gravatar_id":"","url":"https://api.github.com/users/jowens","html_url":"https://github.com/jowens","followers_url":"https://api.github.com/users/jowens/followers","following_url":"https://api.github.com/users/jowens/following{/other_user}","gists_url":"https://api.github.com/users/jowens/gists{/gist_id}","starred_url":"https://api.github.com/users/jowens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jowens/subscriptions","organizations_url":"https://api.github.com/users/jowens/orgs","repos_url":"https://api.github.com/users/jowens/repos","events_url":"https://api.github.com/users/jowens/events{/privacy}","received_events_url":"https://api.github.com/users/jowens/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-12-04T17:10:45Z","updated_at":"2016-12-06T04:41:21Z","closed_at":null,"body":"Trying to get `format` working with axis. I am using `format='.1'`, which I hope is equivalent to \"either decimal or exponent notation, rounded to significant digits\" (https://github.com/d3/d3-format/blob/master/README.md#format). It is trying to format the number `9.999999974752427e-07`, which I would hope would give me 1.0e-6 or something like that. Instead it's printing the entire number. \r\n\r\n`format` doesn't appear to do anything (no matter what I set it to). However, `format` works fine in the `mark_text` call.\r\n\r\n```\r\nd = {'do_a': [9.999999974752427e-07,\r\n              ],\r\n     'do_b': [9.999999974752427e-07,\r\n              ],\r\n     'm_teps': [859.5197143554688,\r\n                ],\r\n     }\r\n\r\ndf = pandas.DataFrame(d)\r\n\r\nchart = Chart(df).mark_text(format='d',\r\n                            fontSize=5,\r\n                            applyColorToBackground=True).encode(\r\n    row=Row('do_a:O',\r\n            axis=Axis(format='.1',\r\n                      title='do_a',\r\n                      ),\r\n            ),\r\n    column=Column('do_b:O',\r\n                  axis=Axis(format='.1',\r\n                            title='do_b',\r\n                            ),\r\n                  ),\r\n    color='m_teps',\r\n    text='m_teps',\r\n).configure_scale(\r\n    textBandWidth=20,\r\n    bandSize=20\r\n)\r\n```\r\n\r\n![do_ab_random](https://cloud.githubusercontent.com/assets/976970/20867793/2be87762-ba01-11e6-927e-9e573b928d1d.png)\r\n"},"comment":{"url":"https://api.github.com/repos/altair-viz/altair/issues/comments/265059162","html_url":"https://github.com/altair-viz/altair/issues/276#issuecomment-265059162","issue_url":"https://api.github.com/repos/altair-viz/altair/issues/276","id":265059162,"user":{"login":"domoritz","id":589034,"avatar_url":"https://avatars.githubusercontent.com/u/589034?v=3","gravatar_id":"","url":"https://api.github.com/users/domoritz","html_url":"https://github.com/domoritz","followers_url":"https://api.github.com/users/domoritz/followers","following_url":"https://api.github.com/users/domoritz/following{/other_user}","gists_url":"https://api.github.com/users/domoritz/gists{/gist_id}","starred_url":"https://api.github.com/users/domoritz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domoritz/subscriptions","organizations_url":"https://api.github.com/users/domoritz/orgs","repos_url":"https://api.github.com/users/domoritz/repos","events_url":"https://api.github.com/users/domoritz/events{/privacy}","received_events_url":"https://api.github.com/users/domoritz/received_events","type":"User","site_admin":false},"created_at":"2016-12-06T04:41:21Z","updated_at":"2016-12-06T04:41:21Z","body":"See https://github.com/vega/vega-lite/issues/1763"}}
{"actor":{"display_login":"domoritz"}}