{"id":21880784,"url":"https://github.com/maslick/karandashee","last_synced_at":"2025-04-15T05:08:36.090Z","repository":{"id":33861841,"uuid":"162893242","full_name":"maslick/karandashee","owner":"maslick","description":"time series plot for categorical data","archived":false,"fork":false,"pushed_at":"2023-01-01T04:16:37.000Z","size":2433,"stargazers_count":3,"open_issues_count":8,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-15T05:08:29.813Z","etag":null,"topics":["categorical-data","d3","graph","mqtt","plot","reactivex","rx","series-plot","streams","time-series","websocket"],"latest_commit_sha":null,"homepage":"https://maslick.github.io/karandashee/demo/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maslick.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-12-23T13:29:32.000Z","updated_at":"2021-03-15T14:25:30.000Z","dependencies_parsed_at":"2023-01-15T03:01:37.258Z","dependency_job_id":null,"html_url":"https://github.com/maslick/karandashee","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maslick%2Fkarandashee","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maslick%2Fkarandashee/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maslick%2Fkarandashee/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maslick%2Fkarandashee/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maslick","download_url":"https://codeload.github.com/maslick/karandashee/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249010198,"owners_count":21197796,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["categorical-data","d3","graph","mqtt","plot","reactivex","rx","series-plot","streams","time-series","websocket"],"created_at":"2024-11-28T09:16:09.507Z","updated_at":"2025-04-15T05:08:36.063Z","avatar_url":"https://github.com/maslick.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# karanda-shee\n[![npm (scoped)](https://img.shields.io/npm/v/@maslick/karandashee.svg)](https://www.npmjs.com/package/@maslick/karandashee)\n[![npm download count](https://img.shields.io/npm/dt/@maslick/karandashee.svg)](https://npmcharts.com/compare/@maslick/karandashee?minimal=true)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n\ntime series plot for categorical data\n\n![screenshot](karandashee.png)\n\n## Demo\nSee [here](https://maslick.github.io/karandashee/demo/).\n\n## Features\n* a running plot with bars representing categorical events\n* input: Rx streams (e.g. live websocket or MQTT data)\n* multiple plots on one page\n* leverages ``d3 v5`` and ``rx-lite``\n* browser and node.js friendly\n\n## Usage\nInclude this into your html:\n\n```html\n\u003clink rel=\"stylesheet\" href=\"src/karandashee.css\"\u003e\n\u003cdiv id=\"karandasheeGraph\"\u003e\u003c/div\u003e\n```\n\n```html\n\u003cscript src=\"https://cdnjs.cloudflare.com/ajax/libs/d3/5.7.0/d3.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://cdn.jsdelivr.net/gh/Reactive-Extensions/RxJS/dist/rx.lite.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"dist/karandashee.min.js\"\u003e\u003c/script\u003e\n```\n\nDefine your data stream (rx-lite):\n```js\nconst items = [\"rain\", \"sunshine\", \"icy cold\", \"snow\", \"thunderstorm\", \"cloudy\", \"blizard\", \"hot\", \"tsunami\"];\n\nconst dataObservable = Rx.Observable\n    .interval(500)\n    .map(x =\u003e {\n        return {\n            item: items[x % items.length],\n            timestamp: new Date().getTime(),\n        };\n    }).share();\n```\n\nInstantiate a Karandashee object:\n```js\nlet karandasheeOptions = {\n    graphdiv: \"#karandasheeGraph\",\n    observable: dataObservable,\n    key: \"item\",\n    values: items\n};\n\nlet karandashee = new Karandashee(karandasheeOptions);\n```\n\n## Node.js\n*Karandashee* can be used either in the [Browser](https://github.com/maslick/karandashee/tree/master/demo) or in the [Node.js](https://github.com/maslick/karandashee/tree/master/example) environment.\n\n## License\n\nThis project is licenced under the [MIT License](http://opensource.org/licenses/mit-license.html).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaslick%2Fkarandashee","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaslick%2Fkarandashee","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaslick%2Fkarandashee/lists"}