Urgent.News

What's breaking now, across hundreds of outlets.

Tech

Analyst price targets, rating gauges and EPS charts in 11 KB of plain SVG (zero dependencies)

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…

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.

The 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.

The 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.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

What a Go App Needs Before You Deploy It (with a ShardCloud Walkthrough)

go run . works on your laptop. Then you upload your app and the build log says undefined: writeJSON . Or the build succeeds, but your public URL returns 502 Bad Gateway .

  • Go application deployment requires considering platform-specific issues
  • ShardCloud builds entry point from main.go, not package files
  • Include go.mod and go.sum files for proper Go version and dependencies

How I Set Up OpenCode: A Real Agent OS (Config, Skills, MCPs, Memory)

🧠 How I Set Up OpenCode: A Real Agent OS (Config, Skills, MCPs, Memory) You have inherited a repository. At a glance: 1 config file · 40+ subagents · 123 skills · 20 commands · 8 MCP servers · 2…

  • Author sets up OpenCode, a real agent OS with config, skills, MCPs, and memory.
  • Setup features two-layer memory pipeline, deterministic file protocol, and clear project layout.

More from Sunday, 29 November 2026 →