{"id":13397869,"url":"https://github.com/kmandov/d3-horizon-chart","last_synced_at":"2025-03-14T00:32:45.751Z","repository":{"id":150392809,"uuid":"52778815","full_name":"kmandov/d3-horizon-chart","owner":"kmandov","description":"D3.js plug-in that draws horizon charts using canvas","archived":false,"fork":false,"pushed_at":"2016-09-26T15:15:59.000Z","size":653,"stargazers_count":132,"open_issues_count":2,"forks_count":10,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-09-18T15:22:35.393Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://kmandov.github.io/d3-horizon-chart/","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/kmandov.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-02-29T09:17:55.000Z","updated_at":"2024-09-18T02:18:47.000Z","dependencies_parsed_at":"2023-04-25T06:03:19.527Z","dependency_job_id":null,"html_url":"https://github.com/kmandov/d3-horizon-chart","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kmandov%2Fd3-horizon-chart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kmandov%2Fd3-horizon-chart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kmandov%2Fd3-horizon-chart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kmandov%2Fd3-horizon-chart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kmandov","download_url":"https://codeload.github.com/kmandov/d3-horizon-chart/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243505047,"owners_count":20301546,"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":[],"created_at":"2024-07-30T18:01:49.986Z","updated_at":"2025-03-14T00:32:43.535Z","avatar_url":"https://github.com/kmandov.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","Charts"],"sub_categories":[],"readme":"[![d3 horizon chart](http://kmandov.github.io/d3-horizon-chart/img/d3-horizon-charts-lead-01.png)](http://kmandov.github.io/d3-horizon-chart/)\n\n# d3-horizon-chart\n\n[![npm version](https://badge.fury.io/js/d3-horizon-chart.svg)](http://badge.fury.io/js/d3-horizon-chart)\n\n`d3-horizon-chart` is a d3 plugin that draws horizon charts using an Html5 Canvas.\nIt provides an easy way to visualize large amounts of time series data.\n\nThe plugin is heavily inspired by [cubism.js](https://square.github.io/cubism/), but doesn't make assumptions about real-time metrics and back-end servers such as Cube/Graphite.\nThis makes it a good fit when you just want to plot your data as a horizon chart.\n\n`d3-horizon-chart` follows the [latest plugin guidelines](https://bost.ocks.org/mike/d3-plugin/) using D3’s new 4.0 module pattern.\n\n\n## Examples\n\n- [Drawing a single horizon chart](http://bl.ocks.org/kmandov/a1abe4aa380fb8b4bd0b4c081a76ce13)\n- [Loosing resolution when using area chart](http://bl.ocks.org/kmandov/5af65af3875c5c4afcdc0d675f60bb45)\n- [Horizon charts preserve resolution at smaller heights](http://bl.ocks.org/kmandov/6e91165d4f32534ec4cab806b18b6684)\n- [Visualizing stock data using horizon charts](http://bl.ocks.org/kmandov/dcb94f02e71e3560eb3255f2de3120e4)\n\n\nCheck out the [project page](http://kmandov.github.io/d3-horizon-chart/) for more examples.\n\n## Installing\n\nIf you use NPM, `npm install d3-horizon-chart`. Otherwise, download the [latest release](https://github.com/kmandov/d3-horizon-chart/releases/latest).\n\n## API Reference\n\n\u003ca name=\"horizon\" href=\"#horizon\"\u003e#\u003c/a\u003e \u003cb\u003ehorizonChart\u003c/b\u003e()\n\nConstructs a new horizonChart generator with the default settings.\n\n\u003ca name=\"horizon_height\" href=\"#horizon_height\"\u003e#\u003c/a\u003e \u003ci\u003ehorizon\u003c/i\u003e.\u003cb\u003eheight\u003c/b\u003e([\u003ci\u003eheight\u003c/i\u003e])\n\nIf \u003ci\u003eheight\u003c/i\u003e is specified, sets the height of the chart to the specified number and returns this horizonChart generator. If \u003ci\u003eheight\u003c/i\u003e is not specified, returns the current height accessor, which defaults to:\n\n```js\nfunction height() {\n  return 30;\n}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkmandov%2Fd3-horizon-chart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkmandov%2Fd3-horizon-chart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkmandov%2Fd3-horizon-chart/lists"}