{"action":"created","issue":{"url":"https://api.github.com/repos/deeplook/sparklines/issues/8","repository_url":"https://api.github.com/repos/deeplook/sparklines","labels_url":"https://api.github.com/repos/deeplook/sparklines/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/deeplook/sparklines/issues/8/comments","events_url":"https://api.github.com/repos/deeplook/sparklines/issues/8/events","html_url":"https://github.com/deeplook/sparklines/pull/8","id":188020582,"number":8,"title":"Stacked graphs","user":{"login":"talwrii","id":2955454,"avatar_url":"https://avatars.githubusercontent.com/u/2955454?v=3","gravatar_id":"","url":"https://api.github.com/users/talwrii","html_url":"https://github.com/talwrii","followers_url":"https://api.github.com/users/talwrii/followers","following_url":"https://api.github.com/users/talwrii/following{/other_user}","gists_url":"https://api.github.com/users/talwrii/gists{/gist_id}","starred_url":"https://api.github.com/users/talwrii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/talwrii/subscriptions","organizations_url":"https://api.github.com/users/talwrii/orgs","repos_url":"https://api.github.com/users/talwrii/repos","events_url":"https://api.github.com/users/talwrii/events{/privacy}","received_events_url":"https://api.github.com/users/talwrii/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-11-08T15:24:51Z","updated_at":"2016-11-08T23:21:09Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/deeplook/sparklines/pulls/8","html_url":"https://github.com/deeplook/sparklines/pull/8","diff_url":"https://github.com/deeplook/sparklines/pull/8.diff","patch_url":"https://github.com/deeplook/sparklines/pull/8.patch"},"body":"# Motivation\r\n\r\nMany of the data sources I display with sparklines are in some way periodic. To understand what's going on it can be helpful to produce stacked periodic graphs.\r\n\r\nFor example, here is a subset of a graph of how many key presses I type per hour stack per day\r\n (imagine this has a fixed width font...)\r\n\r\n▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▅0\r\n▂▃▃▅▁▅▄▃█▄█▁▄███▅▁▁▁▁▁▁▁▁▁▁▁▂█52634\r\n▁▁▂▃▂▂▅█▂▅██▁█▇██▆██▁▁▁▁▁▁▁▁▁▁▁▁68905\r\n▂▁▁▃▂▁▁▆██▇█▁▇█▇█▄▁▁▁▁▁▁▁▁▁▁▁▄54345\r\n\r\n# Prior work\r\n\r\nR's **ggplot** provides similar features, http://docs.ggplot2.org/current/facet_grid.html, in the world of real graphs rather than hacky tools.\r\n\r\n# Potential feature creep\r\n\r\nThis definitely counts as a \"kitchen sink\" feature and there may be strong arguments for not including it. When I've wanted to this before I've achieved it through hand-coding.\r\n\r\nThe arguments for having it in sparklines are:\r\n\r\n* Making this useful approach discoverable to others\r\n* Selfishly, I want to turn this into something I can run, and inside sparklines is a convenient place to put it.\r\n* The stacked graphs want to share a common minimum and maximum\r\n\r\n# Slippery slope\r\n\r\nIt might be worth considering not whether this feature represents feature-creep, but rather whether it is a member of a class of features (graph-compositors?) that belong in another tool.\r\nThe limited nature of ascii displays may somewhat limit what such a tool could do.\r\n\r\n# As a bash one-liner\r\n\r\nIt's probably informative to compare the equivalent bash one liner for implementing this feature.\r\nThe less complex this seems to you the less strong the argument for placing this inside sparklines itself.\r\n\r\n```bash\r\nfile=$(mktemp) ; cat  > \"$file\"; cat \"$file\" sparklines -m \"$(sort -n $file | head -n 1)\" -M \"$(sort -n $file | tail -n 1) \"\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/deeplook/sparklines/issues/comments/259291072","html_url":"https://github.com/deeplook/sparklines/pull/8#issuecomment-259291072","issue_url":"https://api.github.com/repos/deeplook/sparklines/issues/8","id":259291072,"user":{"login":"talwrii","id":2955454,"avatar_url":"https://avatars.githubusercontent.com/u/2955454?v=3","gravatar_id":"","url":"https://api.github.com/users/talwrii","html_url":"https://github.com/talwrii","followers_url":"https://api.github.com/users/talwrii/followers","following_url":"https://api.github.com/users/talwrii/following{/other_user}","gists_url":"https://api.github.com/users/talwrii/gists{/gist_id}","starred_url":"https://api.github.com/users/talwrii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/talwrii/subscriptions","organizations_url":"https://api.github.com/users/talwrii/orgs","repos_url":"https://api.github.com/users/talwrii/repos","events_url":"https://api.github.com/users/talwrii/events{/privacy}","received_events_url":"https://api.github.com/users/talwrii/received_events","type":"User","site_admin":false},"created_at":"2016-11-08T23:21:09Z","updated_at":"2016-11-08T23:21:09Z","body":"`--wrap` it is! \r\n\r\nI hadn't really thought of this as line wrapping... but it very much is that, and people are used to the idea from text\r\n\r\nIn https://github.com/deeplook/sparklines/issues/9 you suggest having separators every x values? Does it make sense to implement this here as a separator option? Although, I imagine one might want multiple separated graphs on a line? \r\n\r\nP.S Did you notice the OP-SEC fail? I guess I'll just have trust you to keep my identity hidden :/"}}
{"actor":{"display_login":"talwrii"}}