Skip to content

Instantly share code, notes, and snippets.

@cosh
Last active April 28, 2025 18:29
Show Gist options
  • Save cosh/c9247c0cf9cd2cecc6921e69447090f3 to your computer and use it in GitHub Desktop.
Save cosh/c9247c0cf9cd2cecc6921e69447090f3 to your computer and use it in GitHub Desktop.
let jakh = "Just another Kusto hacker";
let base = range skip from 0 to strlen(jakh) step 1
| extend jakhString = jakh
| extend ['char'] = substring(jakh, skip, 1)
| project-away jakhString
| project ['char'], id = strcat(['char'], skip)
| serialize;
let nodes = base
| where isnotempty( next(id));
base
| extend dest = next(id)
| where isnotempty(next(dest))
| project src = id, dest
| make-graph src --> dest with nodes on id
//run in KE and configure Layout = Grouped, Nodes - Labels = char, Density to the max
@cosh
Copy link
Author

cosh commented Apr 28, 2025

image

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