Editing User:Fbstj/edits-pie
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 263: | Line 263: | ||
{ "type": "filter", "test": "datum.sliceSize > 2" }, |
{ "type": "filter", "test": "datum.sliceSize > 2" }, |
||
// Remove namespace from the text - keeps only text after the first ':' symbol, limits to 40 chars. |
// Remove namespace from the text - keeps only text after the first ':' symbol, limits to 40 chars. |
||
{ "type": "formula", "field": "name", "expr": "substring(datum.name, 1+indexof(datum.name,':'), 40) +': '+ datum.editcount |
{ "type": "formula", "field": "name", "expr": "substring(datum.name, 1+indexof(datum.name,':'), 40) +': '+ datum.editcount" }, |
||
// Determine the side of the pie chart we are on - left or right. |
// Determine the side of the pie chart we are on - left or right. |
||
{ "type": "formula", "field": "invert", "expr": "datum.layout_mid*180/PI < 180 ? 1 : -1" }, |
{ "type": "formula", "field": "invert", "expr": "datum.layout_mid*180/PI < 180 ? 1 : -1" }, |