ChartKitBETA

Free line chart generator

Plot changes across ordered labels, such as weeks, quarters, or milestones. Export a URL you can paste into Markdown, HTML, or an AI-written brief.

Chart builder

Adjust fields and copy URL, HTML, Markdown, or an AI prompt. See the [URL parameters](/docs/url-parameters) reference if you are editing links by hand.

line

Preview

Monthly Revenue

Copy

Show snippets
URL
https://getchartkit.com/api/chart?type=line&labels=Jan,Feb,Mar,Apr,May&s0=12000,18000,15000,22000,27000&s0name=Revenue&title=Monthly%20Revenue&w=700&h=420&valueFormat=compact
HTML
<img src="https://getchartkit.com/api/chart?type=line&labels=Jan,Feb,Mar,Apr,May&s0=12000,18000,15000,22000,27000&s0name=Revenue&title=Monthly%20Revenue&w=700&h=420&valueFormat=compact" alt="Monthly Revenue" width="700" height="420" />
Markdown
![Monthly Revenue](https://getchartkit.com/api/chart?type=line&labels=Jan,Feb,Mar,Apr,May&s0=12000,18000,15000,22000,27000&s0name=Revenue&title=Monthly%20Revenue&w=700&h=420&valueFormat=compact)

What line charts are good for here

Line charts connect points in order. ChartKit treats your `labels` as categories (for example `W1,W2,W3`), not as dates it needs to parse, so you control the exact text shown under each tick.

This page sets `type=line`. You can add a second series for before/after or plan-vs-actual. For filled areas, use the chart maker and choose Area.

Use cases

  • Rolling metrics in a founder update: active users, error rate, or pipeline by week.
  • Content or growth experiments where you compare a treatment and control line over the same dates.
  • A single PNG or SVG for a wiki page that does not run custom JavaScript.

Examples

Single trend

https://getchartkit.com/api/chart?type=line&labels=Jan,Feb,Mar,Apr,May&s0=1100,1240,1180,1320,1405&s0name=Hours&title=Billable+hours&valueFormat=compact&w=720&h=400&format=svg

Two lines, shared labels

https://getchartkit.com/api/chart?type=line&labels=T1,T2,T3,T4&s0=88,91,87,94&s0name=Latency+p50&s1=120,118,121,119&s1name=Latency+p95&title=API+latency+ms&w=760&h=420&legend=true&format=svg

PNG for print or PDF

https://getchartkit.com/api/chart?type=line&labels=2019,2020,2021,2022,2023&s0=2.1,2.4,2.9,3.2,3.5&s0name=ARR+M%24&title=ARR&valueFormat=number&format=png&w=680&h=380

How it works

  1. Enter labels in the left-to-right order you want on the chart. Put matching counts in `s0`; optional `s1` follows the same order.
  2. Use `valueFormat` to keep Y-axis text short (`compact` for 1.2M-style ticks, `percent` for share data).
  3. Copy the embed format your channel needs: raw URL, `<img>`, or Markdown.

Use with ChatGPT or Claude

Give the model an ordered list of periods and one or two number series. Ask explicitly for `type=line` and a ChartKit URL; then paste the Markdown image into your doc.

If you already use the bar chart generator for snapshots, the parameter names are the same - only `type` changes.

FAQ

Is this line chart generator free to try?

Yes for normal trial use on the public host. For high volume or white-label needs, confirm the latest terms on the main site.

Can I embed the chart in Markdown?

Yes. Use the Markdown copy field: it wraps your chart URL as a remote image.

Does the line chart run JavaScript on my readers’ browsers?

No. The chart is a rendered image at a URL, like a static file from a CDN.

Can ChatGPT generate ChartKit line chart URLs?

Yes, with the parameter list in context. The AI prompt button on this page is tuned for that.

What if my dates include spaces or commas?

Use short labels without commas (for example `2024-01`) or encode them carefully. Commas separate categories in `labels`, so each label should be one short piece of text.

More ChartKit tools