Skip to content

Instantly share code, notes, and snippets.

@timelyportfolio
Created October 14, 2013 22:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timelyportfolio/6983268 to your computer and use it in GitHub Desktop.
Save timelyportfolio/6983268 to your computer and use it in GitHub Desktop.
micropolar linePlot ordinal angular scale problem
<!doctype HTML>
<meta charset = 'utf-8'>
<html>
<head>
<link rel='stylesheet' href='http://micropolar.org/style.css'>
<script src='http://d3js.org/d3.v3.min.js' type='text/javascript'></script>
<script src='http://micropolar.org/micropolar.js' type='text/javascript'></script>
<style>
.rChart {
display: block;
margin-left: auto;
margin-right: auto;
width: 400px;
height: 400px;
}
</style>
</head>
<body>
<div id='chart2a3078cf60cc' class='rChart micropolar'></div>
<script>
var chartParamschart2a3078cf60cc = {
"dom": "chart2a3078cf60cc",
"width": 400,
"height": 400,
"data": [
[ 0, 0.0074 ],
[ 2.7273, 0.0193 ],
[ 5.4545, 0.0155 ],
[ 8.1818, -0.0091 ],
[ 10.909, 0.0076 ],
[ 13.636, -0.0039 ],
[ 16.364, -0.0231 ],
[ 19.091, 0.0395 ],
[ 21.818, 0.0147 ],
[ 24.545, 0.0288 ],
[ 27.273, 0.0156 ],
[ 30, 0.0176 ],
[ 32.727, 0.0212 ],
[ 35.455, 0.0022 ],
[ 38.182, 0.0094 ],
[ 40.909, 0.0126 ],
[ 43.636, 0.0438 ],
[ 46.364, 0.0231 ],
[ 49.091, 0.0154 ],
[ 51.818, 0.0237 ],
[ 54.545, 0.0219 ],
[ 57.273, -0.0207 ],
[ 60, 0.025 ],
[ 62.727, 0.011 ],
[ 65.455, 0.0056 ],
[ 68.182, 0.0429 ],
[ 70.909, 0.0362 ],
[ 73.636, 0.0078 ],
[ 76.364, -0.0231 ],
[ 79.091, 0.0121 ],
[ 81.818, -0.0215 ],
[ 84.545, -0.0944 ],
[ 87.273, 0.0248 ],
[ 90, 0.0558 ],
[ 92.727, 0.0126 ],
[ 95.455, 0.0097 ],
[ 98.182, -0.0093 ],
[ 100.91, 0.0094 ],
[ 103.64, 0.0462 ],
[ 106.36, 0.051 ],
[ 109.09, 0.0162 ],
[ 111.82, 0.0326 ],
[ 114.55, 0.0098 ],
[ 117.27, -0.0165 ],
[ 120, -0.0045 ],
[ 122.73, -0.0006 ],
[ 125.45, 0.0035 ],
[ 128.18, 0.0147 ],
[ 130.91, -0.0102 ],
[ 133.64, 0.0123 ],
[ 136.36, 0.0575 ],
[ 139.09, 0.0202 ],
[ 141.82, 0.0339 ],
[ 144.55, 0.0123 ],
[ 147.27, 0.0049 ],
[ 150, 0.0387 ],
[ 152.73, 0.0013 ],
[ 155.45, -0.0077 ],
[ 158.18, 0.0104 ],
[ 160.91, -0.0068 ],
[ 163.64, 0.0079 ],
[ 166.36, 0.0082 ],
[ 169.09, -0.0105 ],
[ 171.82, 0.0345 ],
[ 174.55, 0.0579 ],
[ 177.27, 0.0021 ],
[ 180, 0.0207 ],
[ 182.73, 0.0161 ],
[ 185.45, -0.0312 ],
[ 188.18, 0.0011 ],
[ 190.91, 0.034 ],
[ 193.64, 0.0676 ],
[ 196.36, 0.0135 ],
[ 199.09, -0.0124 ],
[ 201.82, 0.0063 ],
[ 204.55, 0.0046 ],
[ 207.27, -0.0015 ],
[ 210, -0.0241 ],
[ 212.73, -0.0755 ],
[ 215.45, 0.0077 ],
[ 218.18, -0.0575 ],
[ 220.91, 0.0297 ],
[ 223.64, 0.0661 ],
[ 226.36, -0.0323 ],
[ 229.09, -0.0412 ],
[ 231.82, -0.0251 ],
[ 234.55, 0.0364 ],
[ 237.27, 0.0651 ],
[ 240, 0.0337 ],
[ 242.73, 0.0308 ],
[ 245.45, 0.0176 ],
[ 248.18, 0.0003 ],
[ 250.91, 0.009 ],
[ 253.64, 0.0481 ],
[ 256.36, 0.0169 ],
[ 259.09, 0.0275 ],
[ 261.82, 0.0053 ],
[ 264.55, -0.0001 ],
[ 267.27, 0.0087 ],
[ 270, -0.0043 ],
[ 272.73, 0.0082 ],
[ 275.45, 0.0259 ],
[ 278.18, 0 ],
[ 280.91, 0.0055 ],
[ 283.64, 0.0088 ],
[ 286.36, -0.0006 ],
[ 289.09, 0.0394 ],
[ 291.82, 0.044 ],
[ 294.55, 0.0001 ],
[ 297.27, 0.0215 ],
[ 300, -0.0207 ],
[ 302.73, -0.0209 ],
[ 305.45, 0.0043 ],
[ 308.18, 0.0161 ],
[ 310.91, 0.0091 ],
[ 313.64, 0.0113 ],
[ 316.36, 0.0261 ],
[ 319.09, -0.0187 ],
[ 321.82, 0.0231 ],
[ 324.55, 0.0261 ],
[ 327.27, 0.0692 ],
[ 330, 0.0145 ],
[ 332.73, 0.0397 ],
[ 335.45, -0.0011 ],
[ 338.18, -0.0267 ],
[ 340.91, 0.0216 ],
[ 343.64, -0.0144 ],
[ 346.36, 0.0161 ],
[ 349.09, 0.0068 ],
[ 351.82, 0.0427 ],
[ 354.55, 0.0117 ],
[ 357.27, 0.0115 ]
],
"type": "linePlot",
"originTheta": 0,
"radialAxisTheta": 0,
"angularDomain": [ "0", "2.73", "5.45", "8.18", "10.91", "13.64", "16.36", "19.09", "21.82", "24.55", "27.27", "30", "32.73", "35.45", "38.18", "40.91", "43.64", "46.36", "49.09", "51.82", "54.55", "57.27", "60", "62.73", "65.45", "68.18", "70.91", "73.64", "76.36", "79.09", "81.82", "84.55", "87.27", "90", "92.73", "95.45", "98.18", "100.91", "103.64", "106.36", "109.09", "111.82", "114.55", "117.27", "120", "122.73", "125.45", "128.18", "130.91", "133.64", "136.36", "139.09", "141.82", "144.55", "147.27", "150", "152.73", "155.45", "158.18", "160.91", "163.64", "166.36", "169.09", "171.82", "174.55", "177.27", "180", "182.73", "185.45", "188.18", "190.91", "193.64", "196.36", "199.09", "201.82", "204.55", "207.27", "210", "212.73", "215.45", "218.18", "220.91", "223.64", "226.36", "229.09", "231.82", "234.55", "237.27", "240", "242.73", "245.45", "248.18", "250.91", "253.64", "256.36", "259.09", "261.82", "264.55", "267.27", "270", "272.73", "275.45", "278.18", "280.91", "283.64", "286.36", "289.09", "291.82", "294.55", "297.27", "300", "302.73", "305.45", "308.18", "310.91", "313.64", "316.36", "319.09", "321.82", "324.55", "327.27", "330", "332.73", "335.45", "338.18", "340.91", "343.64", "346.36", "349.09", "351.82", "354.55", "357.27" ],
"hideFirstTick": false,
"angularTicksSuffix": "",
"tickOrientation": "horizontal",
"flip": true,
"id": "chart2a3078cf60cc"
}
chartParamschart2a3078cf60cc.containerSelector = '#chart2a3078cf60cc'
micropolar.preset[chartParamschart2a3078cf60cc.type](
chartParamschart2a3078cf60cc
)
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment