{"id":19772188,"url":"https://github.com/recordevolution/widget-linechart","last_synced_at":"2026-01-12T14:52:01.559Z","repository":{"id":197228626,"uuid":"697330628","full_name":"RecordEvolution/widget-linechart","owner":"RecordEvolution","description":"Record Evolution Line Chart Widget","archived":false,"fork":false,"pushed_at":"2026-01-10T11:32:44.000Z","size":592,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-01-11T03:38:12.683Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/RecordEvolution.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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-09-27T14:07:37.000Z","updated_at":"2026-01-10T11:32:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"7a421a5e-9b4d-4761-8e2c-d57088e2760b","html_url":"https://github.com/RecordEvolution/widget-linechart","commit_stats":null,"previous_names":["recordevolution/widget-linechart"],"tags_count":57,"template":false,"template_full_name":null,"purl":"pkg:github/RecordEvolution/widget-linechart","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RecordEvolution%2Fwidget-linechart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RecordEvolution%2Fwidget-linechart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RecordEvolution%2Fwidget-linechart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RecordEvolution%2Fwidget-linechart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RecordEvolution","download_url":"https://codeload.github.com/RecordEvolution/widget-linechart/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RecordEvolution%2Fwidget-linechart/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28340411,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T12:22:26.515Z","status":"ssl_error","status_checked_at":"2026-01-12T12:22:10.856Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":"2024-11-12T05:05:42.335Z","updated_at":"2026-01-12T14:52:01.538Z","avatar_url":"https://github.com/RecordEvolution.png","language":"TypeScript","readme":"# \\\u003cwidget-linechart\u003e\n\nThis webcomponent follows the [open-wc](https://github.com/open-wc/open-wc) recommendation.\n\n## Installation\n\n```bash\nnpm i @record-evolution/widget-linechart\n```\n\n## Usage\n\n### Bundled Application (Vite/Webpack)\n\nWhen using a bundler, install the widget and its peer dependencies:\n\n```bash\nnpm i @record-evolution/widget-linechart echarts@^6.0.0 tinycolor2@^1.6.0\n```\n\nThen import and use:\n\n```html\n\u003cscript type=\"module\"\u003e\n    import '@record-evolution/widget-linechart/widget-linechart.js'\n\u003c/script\u003e\n\n\u003cwidget-linechart-1.6.27\u003e\u003c/widget-linechart-1.6.27\u003e\n```\n\nThe bundler will automatically deduplicate echarts across multiple widgets.\n\n### CDN / Import Maps\n\nFor CDN usage without a bundler, configure an import map with all dependencies:\n\n```html\n\u003cscript\u003e\n    // Polyfill for Node.js process.env required by echarts\n    window.process = { env: { NODE_ENV: 'production' } };\n\u003c/script\u003e\n\n\u003cscript type=\"importmap\"\u003e\n    {\n        \"imports\": {\n            \"echarts/core\": \"https://cdn.jsdelivr.net/npm/echarts@6.0.0/core.js\",\n            \"echarts/charts\": \"https://cdn.jsdelivr.net/npm/echarts@6.0.0/charts.js\",\n            \"echarts/components\": \"https://cdn.jsdelivr.net/npm/echarts@6.0.0/components.js\",\n            \"echarts/renderers\": \"https://cdn.jsdelivr.net/npm/echarts@6.0.0/renderers.js\",\n            \"echarts/features\": \"https://cdn.jsdelivr.net/npm/echarts@6.0.0/features.js\",\n            \"zrender/\": \"https://cdn.jsdelivr.net/npm/zrender@6.0.0/\",\n            \"tslib\": \"https://cdn.jsdelivr.net/npm/tslib@2.8.1/tslib.es6.mjs\",\n            \"tinycolor2\": \"https://cdn.jsdelivr.net/npm/tinycolor2@1.6.0/+esm\"\n        }\n    }\n\u003c/script\u003e\n\n\u003cscript\n    type=\"module\"\n    src=\"https://cdn.jsdelivr.net/npm/@record-evolution/widget-linechart@1.6.27/dist/widget-linechart.js\"\n\u003e\u003c/script\u003e\n\n\u003cwidget-linechart-1.6.27\u003e\u003c/widget-linechart-1.6.27\u003e\n```\n\n**Note:** Version matching is critical - echarts 6.0.0 requires zrender 6.0.0 exactly.\n\n## Dependencies\n\nThis widget has been optimized to externalize heavy dependencies:\n\n- **echarts** (^6.0.0) - Chart rendering engine (~300KB)\n- **tinycolor2** (^1.6.0) - Color manipulation utilities\n\nBundle size: ~36KB (down from 625KB with bundled echarts)\n\n## Expected data format\n\nPlease take a look at the src/default-data.json to see what data is expected to make the widget show content.\n\n## Features\n\n- **Chart types:** line, bar, scatter (via `dataseries[].type`)\n- **Time series:** Set `axis.timeseries: true` for date-based x-axis\n- **Multi-chart:** Use `advanced.chartName` to split series into separate charts\n- **Pivot/Split:** `data[].pivot` auto-generates series per distinct value\n- **Adaptive animation:** Animation duration automatically matches data update frequency for smooth continuous transitions\n- **Dynamic theming:** Supports ECharts theme objects\n\n## Performance Optimizations\n\n- Efficient data-only updates using `setOption()` merge mode\n- Full rebuild only on configuration changes (detected via config fingerprinting)\n- ResizeObserver-based chart resizing (no polling)\n- Adaptive animation timing based on actual update intervals\n\n## Tooling configs\n\nFor most of the tools, the configuration is in the `package.json` to reduce the amount of files in your project.\n\n## Local Demo with Vite\n\n```bash\nnpm start\n```\n\nTo run a local development server that serves the basic demo at http://localhost:8000/demo/\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frecordevolution%2Fwidget-linechart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frecordevolution%2Fwidget-linechart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frecordevolution%2Fwidget-linechart/lists"}