{"action":"created","issue":{"url":"https://api.github.com/repos/gionkunz/chartist-js/issues/322","labels_url":"https://api.github.com/repos/gionkunz/chartist-js/issues/322/labels{/name}","comments_url":"https://api.github.com/repos/gionkunz/chartist-js/issues/322/comments","events_url":"https://api.github.com/repos/gionkunz/chartist-js/issues/322/events","html_url":"https://github.com/gionkunz/chartist-js/issues/322","id":78101184,"number":322,"title":"Create bands on line charts","user":{"login":"Theadd","id":78041,"avatar_url":"https://avatars.githubusercontent.com/u/78041?v=3","gravatar_id":"","url":"https://api.github.com/users/Theadd","html_url":"https://github.com/Theadd","followers_url":"https://api.github.com/users/Theadd/followers","following_url":"https://api.github.com/users/Theadd/following{/other_user}","gists_url":"https://api.github.com/users/Theadd/gists{/gist_id}","starred_url":"https://api.github.com/users/Theadd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Theadd/subscriptions","organizations_url":"https://api.github.com/users/Theadd/orgs","repos_url":"https://api.github.com/users/Theadd/repos","events_url":"https://api.github.com/users/Theadd/events{/privacy}","received_events_url":"https://api.github.com/users/Theadd/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gionkunz/chartist-js/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-05-19T14:02:37Z","updated_at":"2015-06-10T07:55:43Z","closed_at":null,"body":"Is it possible to limit the area drawn by a serie to the value of another serie as in [grafana](http://play.grafana.org/dashboard/db/new-features-in-v19?panelId=4&fullscreen) or [dygraphs](http://dygraphs.com/gallery/#g/synchronize)?"},"comment":{"url":"https://api.github.com/repos/gionkunz/chartist-js/issues/comments/110641927","html_url":"https://github.com/gionkunz/chartist-js/issues/322#issuecomment-110641927","issue_url":"https://api.github.com/repos/gionkunz/chartist-js/issues/322","id":110641927,"user":{"login":"gionkunz","id":2203704,"avatar_url":"https://avatars.githubusercontent.com/u/2203704?v=3","gravatar_id":"","url":"https://api.github.com/users/gionkunz","html_url":"https://github.com/gionkunz","followers_url":"https://api.github.com/users/gionkunz/followers","following_url":"https://api.github.com/users/gionkunz/following{/other_user}","gists_url":"https://api.github.com/users/gionkunz/gists{/gist_id}","starred_url":"https://api.github.com/users/gionkunz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gionkunz/subscriptions","organizations_url":"https://api.github.com/users/gionkunz/orgs","repos_url":"https://api.github.com/users/gionkunz/repos","events_url":"https://api.github.com/users/gionkunz/events{/privacy}","received_events_url":"https://api.github.com/users/gionkunz/received_events","type":"User","site_admin":false},"created_at":"2015-06-10T07:55:43Z","updated_at":"2015-06-10T07:55:43Z","body":"@maftieu that's also an interesting approach! But then it will be hard to attach band options like custom class name etc. I also thought of something like this:\r\n\r\n```javascript\r\nvar chart = new Chartist.Line('.ct-chart', {\r\n  labels: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'],\r\n  series: [\r\n    {name: 'max', data: [12, 9, 7, 8, 5, 4, 6, 2, 3, 3, 4, 6]},\r\n    {name: 'avg', data: [6, 7, 5, 7.5, 4, 3, 5.5, 2, 3, 3, 4, 6]},\r\n    {name: 'min',  data: [4,  5, 3, 7, 3, 5, 5, 3, 4, 4, 5, 5]}\r\n  ]\r\n}, {\r\n  plugins: [Chartist.plugins.ctBands({\r\n      bands: [\r\n        {lower: 'avg', upper: 'max', className: 'avg-to-max'},\r\n        {lower: 'min', upper: 'avg', className: 'avg-to-min'}\r\n      ],\r\n      removeSeries: ['avg']\r\n  })]\r\n})\r\n```\r\n\r\nWhere `removeSeries` would remove those series (including points, lines and regular areas) after the bands were created. I want to make sure someone can still show some lines and / or points if desired but can also remove series that were only used to draw the bands.\r\n\r\nI think this functionality fits nicely into a plugin. What do you think? It's just a matter of including an other script and referencing the plugin on the chart."}}