{"url":"https://api.github.com/gists/2996785","forks_url":"https://api.github.com/gists/2996785/forks","commits_url":"https://api.github.com/gists/2996785/commits","id":"2996785","node_id":"MDQ6R2lzdDI5OTY3ODU=","git_pull_url":"https://gist.github.com/2996785.git","git_push_url":"https://gist.github.com/2996785.git","html_url":"https://gist.github.com/mbostock/2996785","files":{".block":{"filename":".block","type":"text/plain","language":null,"raw_url":"https://gist.githubusercontent.com/mbostock/2996785/raw/47fbe2f5be6e4d608598e134949111d06578bc04/.block","size":67,"truncated":false,"content":"license: gpl-3.0\nredirect: https://observablehq.com/@d3/axis-ticks\n","encoding":"utf-8"},"README.md":{"filename":"README.md","type":"text/markdown","language":"Markdown","raw_url":"https://gist.githubusercontent.com/mbostock/2996785/raw/489d5ded86fba88255a96b81fe738ee332787172/README.md","size":73,"truncated":false,"content":"An example of using an axis with explicit tick values to show the extent.","encoding":"utf-8"},"index.html":{"filename":"index.html","type":"text/html","language":"HTML","raw_url":"https://gist.githubusercontent.com/mbostock/2996785/raw/f82720a58c8f5695f7b56066a684f55f4809f78e/index.html","size":874,"truncated":false,"content":"<!DOCTYPE html>\n<meta charset=\"utf-8\">\n<style>\n\n.axis text {\n  font: 10px sans-serif;\n}\n\n.axis path,\n.axis line {\n  fill: none;\n  stroke: #000;\n  shape-rendering: crispEdges;\n}\n\n</style>\n<body>\n<script src=\"//d3js.org/d3.v3.min.js\"></script>\n<script>\n\nvar margin = {top: 100, right: 100, bottom: 100, left: 100},\n    width = 960 - margin.left - margin.right,\n    height = 500 - margin.top - margin.bottom;\n\nvar x = d3.scale.identity()\n    .domain([0, width]);\n\nvar xAxis = d3.svg.axis()\n    .scale(x)\n    .tickValues(x.domain())\n    .orient(\"bottom\");\n\nvar svg = d3.select(\"body\").append(\"svg\")\n    .attr(\"width\", width + margin.left + margin.right)\n    .attr(\"height\", height + margin.top + margin.bottom)\n  .append(\"g\")\n    .attr(\"transform\", \"translate(\" + margin.left + \",\" + margin.top + \")\");\n\nsvg.append(\"g\")\n    .attr(\"class\", \"x axis\")\n    .call(xAxis);\n\n</script>\n","encoding":"utf-8"},"thumbnail.png":{"filename":"thumbnail.png","type":"image/png","language":null,"raw_url":"https://gist.githubusercontent.com/mbostock/2996785/raw/d97b37b96aec5b3e408c9d2dd901fcc1c2873f57/thumbnail.png","size":635,"truncated":false,"content":"iVBORw0KGgoAAAANSUhEUgAAAOYAAAB4CAYAAADmBo6IAAAAGXRFWHRTb2Z0\nd2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAh1JREFUeNrs2d9q01AcwPFf\nsnZbCeJaZAz6An0Ahb5CH9obLyoIXoxeCG7euF2UgutU1qHJcsx8giHENeHz\ngZPcJXBOvuRfllK6jIjTZpQBPLdhMzaDZjNuxgvzAXujzM0B7B9hgjABYYIw\nAWGCMAFhgjABYQLCBGECwgRhAsIEYQLCBIQJwgSECcIE/o9BmwdPKcVms4my\nLCPLMrNNLzxe1+PxOIqi6GaY6/U6lstlzGazv3FC5x8xmxvM7v4+VqtVLBaL\nboZ5fHwU8/k8ptOpFaU3qqqK66urqOs68jzvWpgpvnw6j/zwTJj0xvt3b+P6\n9iZ+/8ri4vPXeDN/HScviy6FGfHz+zbSYWE16Y3R+FWcHkR8/HAeB2eD5u5Z\nt3KerHmR/dbsJ20c/O7HbcTwKIrRyIrSAynKhyqyOsXdbhf1Qx0nk0m08Fnz\nptUwgX8L039M2EPCBGECwgRhAsIEYQLCBGECwgSECcIEhAnCBIQJwgSECQgT\nhAkIE4QJCBOECQgTECYIExAmCBMQJggTECYgTBAmIEwQJiBMECYgTECYIExA\nmCBMQJggTECYgDBBmIAwQZiAMEGYgDABYYIwAWGCMAFhgjABYQLCBGECwgRh\nAsIEYQLCBIQJwgSECcIEhAnCBIQJCBOECQgThAkIE4QJCBMQJggTECYIExAm\nCBMQJiBMECbwFIOqqrbNftiM0nTAs3tscftHgAEAgNti8NkJUx0AAAAASUVO\nRK5CYII=\n","encoding":"base64"}},"public":true,"created_at":"2012-06-26T16:14:08Z","updated_at":"2019-07-31T05:09:21Z","description":"Extent Ticks","comments":0,"user":null,"comments_enabled":true,"comments_url":"https://api.github.com/gists/2996785/comments","owner":{"login":"mbostock","id":230541,"node_id":"MDQ6VXNlcjIzMDU0MQ==","avatar_url":"https://avatars.githubusercontent.com/u/230541?v=4","gravatar_id":"","url":"https://api.github.com/users/mbostock","html_url":"https://github.com/mbostock","followers_url":"https://api.github.com/users/mbostock/followers","following_url":"https://api.github.com/users/mbostock/following{/other_user}","gists_url":"https://api.github.com/users/mbostock/gists{/gist_id}","starred_url":"https://api.github.com/users/mbostock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbostock/subscriptions","organizations_url":"https://api.github.com/users/mbostock/orgs","repos_url":"https://api.github.com/users/mbostock/repos","events_url":"https://api.github.com/users/mbostock/events{/privacy}","received_events_url":"https://api.github.com/users/mbostock/received_events","type":"User","user_view_type":"public","site_admin":false},"fork_of":{"url":"https://api.github.com/gists/2996766","forks_url":"https://api.github.com/gists/2996766/forks","commits_url":"https://api.github.com/gists/2996766/commits","id":"2996766","node_id":"MDQ6R2lzdDI5OTY3NjY=","git_pull_url":"https://gist.github.com/2996766.git","git_push_url":"https://gist.github.com/2996766.git","html_url":"https://gist.github.com/mbostock/2996766","files":{},"public":true,"created_at":"2012-06-26T16:11:21Z","updated_at":"2019-07-31T05:09:30Z","description":"Zero Ticks","comments":0,"user":null,"comments_enabled":true,"comments_url":"https://api.github.com/gists/2996766/comments","owner":{"login":"mbostock","id":230541,"node_id":"MDQ6VXNlcjIzMDU0MQ==","avatar_url":"https://avatars.githubusercontent.com/u/230541?v=4","gravatar_id":"","url":"https://api.github.com/users/mbostock","html_url":"https://github.com/mbostock","followers_url":"https://api.github.com/users/mbostock/followers","following_url":"https://api.github.com/users/mbostock/following{/other_user}","gists_url":"https://api.github.com/users/mbostock/gists{/gist_id}","starred_url":"https://api.github.com/users/mbostock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbostock/subscriptions","organizations_url":"https://api.github.com/users/mbostock/orgs","repos_url":"https://api.github.com/users/mbostock/repos","events_url":"https://api.github.com/users/mbostock/events{/privacy}","received_events_url":"https://api.github.com/users/mbostock/received_events","type":"User","user_view_type":"public","site_admin":false}},"forks":[{"url":"https://api.github.com/gists/3212294","user":{"login":"mbostock","id":230541,"node_id":"MDQ6VXNlcjIzMDU0MQ==","avatar_url":"https://avatars.githubusercontent.com/u/230541?v=4","gravatar_id":"","url":"https://api.github.com/users/mbostock","html_url":"https://github.com/mbostock","followers_url":"https://api.github.com/users/mbostock/followers","following_url":"https://api.github.com/users/mbostock/following{/other_user}","gists_url":"https://api.github.com/users/mbostock/gists{/gist_id}","starred_url":"https://api.github.com/users/mbostock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbostock/subscriptions","organizations_url":"https://api.github.com/users/mbostock/orgs","repos_url":"https://api.github.com/users/mbostock/repos","events_url":"https://api.github.com/users/mbostock/events{/privacy}","received_events_url":"https://api.github.com/users/mbostock/received_events","type":"User","user_view_type":"public","site_admin":false,"name":"Mike Bostock","company":"@observablehq ","blog":"https://observablehq.com/@mbostock","location":"San Francisco, CA","email":"mike@ocks.org","hireable":null,"bio":"Building a better computational medium. Co-founder @observablehq. Creator @d3. Former @nytgraphics. Pronounced BOSS-tock.","twitter_username":"mbostock","public_repos":88,"public_gists":1043,"followers":23371,"following":0,"created_at":"2010-03-25T22:02:56Z","updated_at":"2026-04-10T07:01:19Z"},"id":"3212294","created_at":"2012-07-31T00:36:32Z","updated_at":"2019-07-31T05:09:36Z"}],"history":[{"user":{"login":"mbostock","id":230541,"node_id":"MDQ6VXNlcjIzMDU0MQ==","avatar_url":"https://avatars.githubusercontent.com/u/230541?v=4","gravatar_id":"","url":"https://api.github.com/users/mbostock","html_url":"https://github.com/mbostock","followers_url":"https://api.github.com/users/mbostock/followers","following_url":"https://api.github.com/users/mbostock/following{/other_user}","gists_url":"https://api.github.com/users/mbostock/gists{/gist_id}","starred_url":"https://api.github.com/users/mbostock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbostock/subscriptions","organizations_url":"https://api.github.com/users/mbostock/orgs","repos_url":"https://api.github.com/users/mbostock/repos","events_url":"https://api.github.com/users/mbostock/events{/privacy}","received_events_url":"https://api.github.com/users/mbostock/received_events","type":"User","user_view_type":"public","site_admin":false},"version":"9fce198f105abaa1a8c0bd6dc1fccc367da79fc8","committed_at":"2019-07-31T05:09:20Z","change_status":{"total":1,"additions":1,"deletions":0},"url":"https://api.github.com/gists/2996785/9fce198f105abaa1a8c0bd6dc1fccc367da79fc8"},{"user":{"login":"mbostock","id":230541,"node_id":"MDQ6VXNlcjIzMDU0MQ==","avatar_url":"https://avatars.githubusercontent.com/u/230541?v=4","gravatar_id":"","url":"https://api.github.com/users/mbostock","html_url":"https://github.com/mbostock","followers_url":"https://api.github.com/users/mbostock/followers","following_url":"https://api.github.com/users/mbostock/following{/other_user}","gists_url":"https://api.github.com/users/mbostock/gists{/gist_id}","starred_url":"https://api.github.com/users/mbostock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbostock/subscriptions","organizations_url":"https://api.github.com/users/mbostock/orgs","repos_url":"https://api.github.com/users/mbostock/repos","events_url":"https://api.github.com/users/mbostock/events{/privacy}","received_events_url":"https://api.github.com/users/mbostock/received_events","type":"User","user_view_type":"public","site_admin":false},"version":"eba69a9c8b3a75c5188231fecccec00e465e39aa","committed_at":"2016-02-09T01:23:20Z","change_status":{"total":1,"additions":1,"deletions":0},"url":"https://api.github.com/gists/2996785/eba69a9c8b3a75c5188231fecccec00e465e39aa"},{"user":{"login":"mbostock","id":230541,"node_id":"MDQ6VXNlcjIzMDU0MQ==","avatar_url":"https://avatars.githubusercontent.com/u/230541?v=4","gravatar_id":"","url":"https://api.github.com/users/mbostock","html_url":"https://github.com/mbostock","followers_url":"https://api.github.com/users/mbostock/followers","following_url":"https://api.github.com/users/mbostock/following{/other_user}","gists_url":"https://api.github.com/users/mbostock/gists{/gist_id}","starred_url":"https://api.github.com/users/mbostock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbostock/subscriptions","organizations_url":"https://api.github.com/users/mbostock/orgs","repos_url":"https://api.github.com/users/mbostock/repos","events_url":"https://api.github.com/users/mbostock/events{/privacy}","received_events_url":"https://api.github.com/users/mbostock/received_events","type":"User","user_view_type":"public","site_admin":false},"version":"9f7387edcfaec4189d9c59b276b08ea6d1ca670c","committed_at":"2015-10-31T00:48:30Z","change_status":{"total":2,"additions":1,"deletions":1},"url":"https://api.github.com/gists/2996785/9f7387edcfaec4189d9c59b276b08ea6d1ca670c"},{"user":{"login":"mbostock","id":230541,"node_id":"MDQ6VXNlcjIzMDU0MQ==","avatar_url":"https://avatars.githubusercontent.com/u/230541?v=4","gravatar_id":"","url":"https://api.github.com/users/mbostock","html_url":"https://github.com/mbostock","followers_url":"https://api.github.com/users/mbostock/followers","following_url":"https://api.github.com/users/mbostock/following{/other_user}","gists_url":"https://api.github.com/users/mbostock/gists{/gist_id}","starred_url":"https://api.github.com/users/mbostock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbostock/subscriptions","organizations_url":"https://api.github.com/users/mbostock/orgs","repos_url":"https://api.github.com/users/mbostock/repos","events_url":"https://api.github.com/users/mbostock/events{/privacy}","received_events_url":"https://api.github.com/users/mbostock/received_events","type":"User","user_view_type":"public","site_admin":false},"version":"d177cb3342e45a8dad9993b52ead5038c3ab7aa0","committed_at":"2015-06-11T19:38:33Z","change_status":{"total":2,"additions":1,"deletions":1},"url":"https://api.github.com/gists/2996785/d177cb3342e45a8dad9993b52ead5038c3ab7aa0"},{"user":{"login":"mbostock","id":230541,"node_id":"MDQ6VXNlcjIzMDU0MQ==","avatar_url":"https://avatars.githubusercontent.com/u/230541?v=4","gravatar_id":"","url":"https://api.github.com/users/mbostock","html_url":"https://github.com/mbostock","followers_url":"https://api.github.com/users/mbostock/followers","following_url":"https://api.github.com/users/mbostock/following{/other_user}","gists_url":"https://api.github.com/users/mbostock/gists{/gist_id}","starred_url":"https://api.github.com/users/mbostock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbostock/subscriptions","organizations_url":"https://api.github.com/users/mbostock/orgs","repos_url":"https://api.github.com/users/mbostock/repos","events_url":"https://api.github.com/users/mbostock/events{/privacy}","received_events_url":"https://api.github.com/users/mbostock/received_events","type":"User","user_view_type":"public","site_admin":false},"version":"4b710979d738de6a6176de2487e659aeb8be13f3","committed_at":"2013-08-22T15:32:34Z","change_status":{"total":5,"additions":3,"deletions":2},"url":"https://api.github.com/gists/2996785/4b710979d738de6a6176de2487e659aeb8be13f3"},{"user":{"login":"mbostock","id":230541,"node_id":"MDQ6VXNlcjIzMDU0MQ==","avatar_url":"https://avatars.githubusercontent.com/u/230541?v=4","gravatar_id":"","url":"https://api.github.com/users/mbostock","html_url":"https://github.com/mbostock","followers_url":"https://api.github.com/users/mbostock/followers","following_url":"https://api.github.com/users/mbostock/following{/other_user}","gists_url":"https://api.github.com/users/mbostock/gists{/gist_id}","starred_url":"https://api.github.com/users/mbostock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbostock/subscriptions","organizations_url":"https://api.github.com/users/mbostock/orgs","repos_url":"https://api.github.com/users/mbostock/repos","events_url":"https://api.github.com/users/mbostock/events{/privacy}","received_events_url":"https://api.github.com/users/mbostock/received_events","type":"User","user_view_type":"public","site_admin":false},"version":"c8069c5d3cb703b3b7a80cdd89c1ed5a251f814a","committed_at":"2012-10-12T03:53:36Z","change_status":{"total":0,"additions":0,"deletions":0},"url":"https://api.github.com/gists/2996785/c8069c5d3cb703b3b7a80cdd89c1ed5a251f814a"},{"user":{"login":"mbostock","id":230541,"node_id":"MDQ6VXNlcjIzMDU0MQ==","avatar_url":"https://avatars.githubusercontent.com/u/230541?v=4","gravatar_id":"","url":"https://api.github.com/users/mbostock","html_url":"https://github.com/mbostock","followers_url":"https://api.github.com/users/mbostock/followers","following_url":"https://api.github.com/users/mbostock/following{/other_user}","gists_url":"https://api.github.com/users/mbostock/gists{/gist_id}","starred_url":"https://api.github.com/users/mbostock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbostock/subscriptions","organizations_url":"https://api.github.com/users/mbostock/orgs","repos_url":"https://api.github.com/users/mbostock/repos","events_url":"https://api.github.com/users/mbostock/events{/privacy}","received_events_url":"https://api.github.com/users/mbostock/received_events","type":"User","user_view_type":"public","site_admin":false},"version":"4837e8078e3b6d76f05dc0d2cb79f8c3a413c323","committed_at":"2012-06-26T16:15:21Z","change_status":{"total":2,"additions":1,"deletions":1},"url":"https://api.github.com/gists/2996785/4837e8078e3b6d76f05dc0d2cb79f8c3a413c323"},{"user":{"login":"mbostock","id":230541,"node_id":"MDQ6VXNlcjIzMDU0MQ==","avatar_url":"https://avatars.githubusercontent.com/u/230541?v=4","gravatar_id":"","url":"https://api.github.com/users/mbostock","html_url":"https://github.com/mbostock","followers_url":"https://api.github.com/users/mbostock/followers","following_url":"https://api.github.com/users/mbostock/following{/other_user}","gists_url":"https://api.github.com/users/mbostock/gists{/gist_id}","starred_url":"https://api.github.com/users/mbostock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbostock/subscriptions","organizations_url":"https://api.github.com/users/mbostock/orgs","repos_url":"https://api.github.com/users/mbostock/repos","events_url":"https://api.github.com/users/mbostock/events{/privacy}","received_events_url":"https://api.github.com/users/mbostock/received_events","type":"User","user_view_type":"public","site_admin":false},"version":"04aa299fc6b506ff0ddc3a6debfe1b0d5286e564","committed_at":"2012-06-26T16:15:14Z","change_status":{"total":8,"additions":6,"deletions":2},"url":"https://api.github.com/gists/2996785/04aa299fc6b506ff0ddc3a6debfe1b0d5286e564"},{"user":{"login":"mbostock","id":230541,"node_id":"MDQ6VXNlcjIzMDU0MQ==","avatar_url":"https://avatars.githubusercontent.com/u/230541?v=4","gravatar_id":"","url":"https://api.github.com/users/mbostock","html_url":"https://github.com/mbostock","followers_url":"https://api.github.com/users/mbostock/followers","following_url":"https://api.github.com/users/mbostock/following{/other_user}","gists_url":"https://api.github.com/users/mbostock/gists{/gist_id}","starred_url":"https://api.github.com/users/mbostock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbostock/subscriptions","organizations_url":"https://api.github.com/users/mbostock/orgs","repos_url":"https://api.github.com/users/mbostock/repos","events_url":"https://api.github.com/users/mbostock/events{/privacy}","received_events_url":"https://api.github.com/users/mbostock/received_events","type":"User","user_view_type":"public","site_admin":false},"version":"78ab8bf4797c653f5889f55aa9f7925e53173dbd","committed_at":"2012-06-26T16:11:21Z","change_status":{"total":39,"additions":39,"deletions":0},"url":"https://api.github.com/gists/2996785/78ab8bf4797c653f5889f55aa9f7925e53173dbd"}],"truncated":false}