Skip to content

Instantly share code, notes, and snippets.

@doub1ejack
Last active February 17, 2023 03:11
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 doub1ejack/36dd06bb628379fc78748352b47d5351 to your computer and use it in GitHub Desktop.
Save doub1ejack/36dd06bb628379fc78748352b47d5351 to your computer and use it in GitHub Desktop.
Service Design vega word cloud
{
"$schema": "https://vega.github.io/schema/vega/v5.json",
"width": 900,
"height": 600,
"padding": 0,
"data": [
{
"name": "table",
"values": [
"Agile methodologies", "Agile methodologies", "Agile methodologies", "Analysis & synthesis", "Analysis & synthesis", "Axure", "Azure DevOps", "Azure DevOps", "Balsamiq", "Business requirements", "Communication", "Communication", "Communication", "Conceptual modeling", "Content strategy", "Context mapping", "Data-driven research", "design operations", "Design thinking", "Design thinking", "Design thinking", "Evidence reviews", "Expert interviews", "Expert interviews", "Facilitation", "Facilitation", "front end development", "human centered", "human centered", "human centered", "InDesign", "Information architecture", "Information architecture", "Interaction design", "Interaction design", "Interaction design", "Interaction design", "Interaction design", "Invision", "Jira", "journey maps", "journey maps", "journey maps", "leadership", "leadership", "Mentoring", "Mockups", "Multi disciplinary", "needs statements", "Omnigraffle", "Onboarding", "Open source dev", "Persona development", "Persona development", "Persona development", "Photoshop", "Presentation", "Primary research", "Process improvement", "Product backlog", "Product management", "Proof of concept", "Prototype", "Prototype", "Prototype", "Research planning", "Roadmaps", "Roadmaps", "Roadmaps", "Secondary research", "Service blueprints", "Service blueprints", "Service blueprints", "Service design", "Service design", "Sketch", "Stakeholder engagement", "Stakeholder engagement", "Stakeholder engagement", "stakeholder interviews", "stakeholder mapping", "storyboards", "storyboards", "System thinking", "task analysis", "usability testing", "usability testing", "usability testing", "usability testing", "User engagement", "User engagement", "User experience", "User experience design", "User experience design", "User flows", "User flows", "User flows", "User requirements analysis", "User requirements analysis", "User research", "User research", "User research", "User stories", "User stories", "Visual design", "Visual design", "Wireframes", "Wireframes", "Wireframes"
],
"transform": [
{
"type": "countpattern",
"field": "data",
"case": "upper",
"pattern": "(\\s*(\\w+)\\s*){1,}",
"stopwords": "(i|me|my|myself|we|us|our|ours|ourselves|you|your|yours|yourself|yourselves|he|him|his|himself|she|her|hers|herself|it|its|itself|they|them|their|theirs|themselves|what|which|who|whom|whose|this|that|these|those|am|is|are|was|were|be|been|being|have|has|had|having|do|does|did|doing|will|would|should|can|could|ought|i'm|you're|he's|she's|it's|we're|they're|i've|you've|we've|they've|i'd|you'd|he'd|she'd|we'd|they'd|i'll|you'll|he'll|she'll|we'll|they'll|isn't|aren't|wasn't|weren't|hasn't|haven't|hadn't|doesn't|don't|didn't|won't|wouldn't|shan't|shouldn't|can't|cannot|couldn't|mustn't|let's|that's|who's|what's|here's|there's|when's|where's|why's|how's|a|an|the|and|but|if|or|because|as|until|while|of|at|by|for|with|about|against|between|into|through|during|before|after|above|below|to|from|up|upon|down|in|out|on|off|over|under|again|further|then|once|here|there|when|where|why|how|all|any|both|each|few|more|most|other|some|such|no|nor|not|only|own|same|so|than|too|very|say|says|said|shall)"
},
{
"type": "formula",
"as": "angle",
"expr": "[-45, 0, 45][~~(random() * 3)]"
},
{
"type": "formula",
"as": "weight",
"expr": "if(datum.text=='VEGA', 600, 300)"
}
]
}
],
"scales": [
{
"name": "color",
"type": "ordinal",
"domain": {"data": "table", "field": "text"},
"range": ["#d5a928", "#652c90", "#939597"]
}
],
"marks": [
{
"type": "text",
"from": {"data": "table"},
"encode": {
"enter": {
"text": {"field": "text"},
"align": {"value": "center"},
"baseline": {"value": "alphabetic"},
"fill": {"scale": "color", "field": "text"}
},
"update": {"fillOpacity": {"value": 1}},
"hover": {"fillOpacity": {"value": 0.5}}
},
"transform": [
{
"type": "wordcloud",
"size": [900, 600],
"text": {"field": "text"},
"rotate": {"field": "datum.angle"},
"font": "Helvetica Neue, Arial",
"fontSize": {"field": "datum.count"},
"fontWeight": {"field": "datum.weight"},
"fontSizeRange": [12, 30],
"padding": 2
}
]
}
]
}
@doub1ejack
Copy link
Author

Load this gist into the vega editor at https://vega.github.io/editor/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment