{
  "id": 22655284,
  "title": "Analyst price targets, rating gauges and EPS charts in 11 KB of plain SVG (zero dependencies)",
  "url": "https://urgent.news/2026/11/29/analyst-price-targets-rating-gauges-and-eps-charts-in-11-kb-of-plain",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-29T20:34:29.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/quotelinks/analyst-price-targets-rating-gauges-and-eps-charts-in-11-kb-of-plain-svg-zero-dependencies-gg1"
  },
  "original_language": null,
  "account": "Finance-related charts often require dedicated libraries that can weigh tens or even hundreds of kilobytes. Developers then have to add the finance-specific elements themselves, which can be time-consuming. A solution has been developed - a set of plain SVG files, open-sourced under the name quotelinks/stock-charts. This single 11 KB gzipped file contains no dependencies and no build step. To use the library, merely add a line of HTML and a script tag. Every element with the class \"ql-chart\" and a data-type attribute will be rendered when the page loads.\n\nThe library does not ship with market data, and makes no network calls except to the URL provided by the user. There are three ways to pass the data: through a static file URL, inline JSON, or via a JavaScript API. The data formats are kept simple with dates in YYYY-MM-DD format, percentages as plain numbers, and every data type having a JSON Schema for validation.\n\nThe chart library offers nine different types of charts: price-target, last 12 months of prices, analyst-gauge, ratings trend, price-chart, and range-performance. Each type provides a unique way to visualize financial data, from consensus ratings to 52-week return benchmarks. The library is fully customizable and can be self-hosted.",
  "summary": "General-purpose chart libraries are great at lines and bars. They are less great at the charts finance pages actually need: an analyst price-target fan, a Strong Sell to Strong Buy gauge, EPS beats and misses by quarter, a 52-week range bar. You end up pulling in a library weighing tens or hundreds of kilobytes and then writing the finance-specific parts yourself anyway. So we wrote those charts…",
  "summary_source": "publisher",
  "key_points": [
    "11 KB gzipped file contains no dependencies",
    "Charts rendered by adding HTML and script tag",
    "Supports nine chart types for financial data"
  ],
  "editors_take": null,
  "opinion": false,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "machine_translated": false,
  "ai_generated": true,
  "disclaimer": "Accounts, briefs, key points, the editor’s take and translations are written by software from other outlets’ reporting and may contain errors. A summary whose summary_source is \"publisher\" is the outlet’s own feed text. Always check the linked original."
}