{"id":15383512,"url":"https://github.com/ebidel/spark-line","last_synced_at":"2025-04-15T19:36:24.367Z","repository":{"id":144762201,"uuid":"151170694","full_name":"ebidel/spark-line","owner":"ebidel","description":"\u003cspark-line\u003e web component for making...spark lines!","archived":false,"fork":false,"pushed_at":"2018-10-03T21:08:37.000Z","size":57,"stargazers_count":11,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T00:12:34.777Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ebidel.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}},"created_at":"2018-10-01T22:45:44.000Z","updated_at":"2023-05-04T12:32:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"7ee6fd1b-2223-4bb1-9ba2-c17b1ef635cc","html_url":"https://github.com/ebidel/spark-line","commit_stats":{"total_commits":11,"total_committers":1,"mean_commits":11.0,"dds":0.0,"last_synced_commit":"f44259a511e6899bb5eb68cff6b8fffe9e09ee6a"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ebidel%2Fspark-line","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ebidel%2Fspark-line/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ebidel%2Fspark-line/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ebidel%2Fspark-line/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ebidel","download_url":"https://codeload.github.com/ebidel/spark-line/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249139479,"owners_count":21219086,"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-10-01T14:38:24.535Z","updated_at":"2025-04-15T19:36:24.345Z","avatar_url":"https://github.com/ebidel.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# \u0026lt;spark-line\u003e\n`\u003cspark-line\u003e` is a web component for making...spark lines!\n\nIt includes data points on hover and adjusts the line/fill color based \non thresholds score values from [Lighthouse](https://github.com/GoogleChrome/lighthouse).\n\n\u003cimg width=\"1005\" alt=\"screen shot 2018-10-02 at 9 00 33 am\" src=\"https://user-images.githubusercontent.com/238208/46361086-a8063680-c621-11e8-8db7-89e57bb6c40f.png\"\u003e\n\n(Note: the Lighthhouse score gauge in the screenshot is not part of thhe component).\n\nFuture work\n- Make threshold score coloring configurable.\n- Make interactivity optional.\n- Have option to show all data points.\n\n### Usage\n\nFirst run `npm run build` to build the sass file.\n\n```html\n\u003c!-- Element doesn't use shadow dom, so styles are scoped in sass. --\u003e\n\u003clink rel=\"stylesheet\" href=\"demo/sparkline-element.min.css\"\u003e\n\n\u003c!-- Import the element definition. Note: The custom element registers itself. --\u003e\n\u003cscript type=\"module\" src=\"sparkline-element.js\"\u003e\u003c/script\u003e\n\n\u003c!-- Give it layout/size, style it up. --\u003e\n\u003cstyle\u003e\n spark-line {\n  display: inline-block;\n  width: 100%;\n  height: 75px;\n  contain: content;\n}\n\u003c/style\u003e\n\n\n\u003cspark-line values=\"[0,30,35,45,65,100,85,100]\"\u003e\u003c/spark-line\u003e\n\n\u003c!-- Fills under chart with a gradient --\u003e\n\u003cspark-line values=\"[95,92,85,75,75,78,75,80,65,45]\" fill\u003e\u003c/spark-line\u003e\n\n\u003c!-- Shows circle for last data point. --\u003e\n\u003cspark-line values=\"[0,30,35,45,65,100,85,100]\" fill showlast\u003e\u003c/spark-line\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Febidel%2Fspark-line","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Febidel%2Fspark-line","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Febidel%2Fspark-line/lists"}