{"id":25300130,"url":"https://github.com/deftio/plotly-streaming-charts-demo","last_synced_at":"2026-01-31T03:31:50.937Z","repository":{"id":148290298,"uuid":"524771857","full_name":"deftio/plotly-streaming-charts-demo","owner":"deftio","description":"Simple streaming scrolling charts in javascript using plotlyjs","archived":false,"fork":false,"pushed_at":"2022-08-14T20:51:20.000Z","size":1296,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-12T04:43:03.820Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/deftio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-14T20:21:48.000Z","updated_at":"2022-08-14T20:25:27.000Z","dependencies_parsed_at":"2023-05-19T15:45:47.716Z","dependency_job_id":null,"html_url":"https://github.com/deftio/plotly-streaming-charts-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/deftio/plotly-streaming-charts-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deftio%2Fplotly-streaming-charts-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deftio%2Fplotly-streaming-charts-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deftio%2Fplotly-streaming-charts-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deftio%2Fplotly-streaming-charts-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deftio","download_url":"https://codeload.github.com/deftio/plotly-streaming-charts-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deftio%2Fplotly-streaming-charts-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28928148,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T02:59:34.861Z","status":"ssl_error","status_checked_at":"2026-01-31T02:59:05.369Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2025-02-13T05:38:30.792Z","updated_at":"2026-01-31T03:31:50.924Z","avatar_url":"https://github.com/deftio.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Streaming / Scrolling Charts Demo\r\n\r\nQuick repo for wrapping plotly.js into simple streaming and scrolling charts.\r\n\r\nSee live demo here [streaming charts](https://deftio.github.io/plotly-streaming-charts-demo/)\r\n\r\n![](./assets/sample-charts.png)\r\n\r\n\r\n\r\n## Usage\r\nSee basic.html for a simple example or index.html for 2 charts running with different update rates inside some boxes (shown above)\r\n\r\nBSD-2 license (see LICENSE.TXT)\r\n\r\nIf python3 is installed one can run a local webserver via:\r\n```bash\r\npython3 -m http.server 8000 \r\n```\r\nThen open a browser window at localhost:8000\r\n\r\nOtherwise this should also work as a file:// url\r\n\r\n### Example code snippet\r\n```html\r\n\u003chtml\u003e\r\n\u003chead\u003e\r\n\u003cmeta http-equiv=\"content-type\" content=\"text/html; charset=UTF-8\" /\u003e\r\n\u003cscript src=\"./js/plotly.min.js\"\u003e\u003c/script\u003e\r\n\u003cscript src=\"./js/bitwrench.min.js\" \u003e\u003c/script\u003e\r\n\u003cscript src=\"./js/chart-helpers.js\"\u003e \u003c/script\u003e\r\n\u003c/head\u003e\r\n\u003cbody class=\"bw-def-page-setup bw-font-sans-serif\"\u003e\r\n\u003ch2 \u003eReal-Time Chart with Plotly.js\u003c/div\u003e\r\n\u003cdiv id=\"chart\"\u003e\u003c/div\u003e\r\n\u003cscript\u003e\r\n    // sample simulated data\r\n    function getData() {\r\n        return Math.random()-0.5;\r\n    }  \r\n\r\n    // make a new chart\r\n    newPlotlyLineChart(\r\n        \"chart\", // dom id of chart\r\n         2,      // number of traces (can be 1 to any)\r\n        {yaxis:{range:[-1,1]}} // optional layout (see plotlyjs docs)\r\n        );\r\n    \r\n    // set interval updates the chart by calling getData() every\r\n    setInterval(\r\n        function(){\r\n            updatePlotlyLineChart(\"chart\",[getData(),getData()]); // update chart\r\n        },\r\n        25 // every 25 milliseconds this is called\r\n    );\r\n\r\n\u003c/script\u003e\r\n\u003c/body\u003e\r\n\u003c/html\u003e\r\n```\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeftio%2Fplotly-streaming-charts-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeftio%2Fplotly-streaming-charts-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeftio%2Fplotly-streaming-charts-demo/lists"}