import { Diagram } from "fmicon-react";
<Diagram size={24} variant="duotone" strokeWidth={1} />
Props
| Prop | Type | Default | Description |
|---|---|---|---|
size | number | string | 24 | Width and height in pixels |
variant | "linear" | "bold" | … | linear | Any of the 8 styles, plus glass-light for light backgrounds |
color | string | currentColor | Any CSS colour; inherits the text colour by default |
strokeWidth | number | 1.5 | Line weight for linear, twotone, broken and duotone |
...props | SVG attributes | – | className, aria-label, onClick and the rest |
More in Business
What is the Diagram Icon?
This line chart icon draws a zigzag line plotted against two axes, a vertical one on the left and a horizontal one along the bottom. It stands for data over time: use it to open a chart view, switch a table into a graph or label reports showing trends by day, week or month.
Axes turn a line into a measured chart, so people read the icon as real data rather than a general idea of growth. The line plots one value through time, which suits traffic, prices and temperatures. It differs from a bar chart, which compares categories, from radial rings, which show goal progress, and from a pie chart, which splits one total into shares.
When to Use the Line Chart Icon
- Data table toolbar: switches the same results between a table and a chart view without leaving the page.
- Weather app detail screen: opens the hourly temperature chart for the next two days.
- Crypto or share tracker: shows the price history of a coin or stock across selectable time ranges.
- Server monitoring tool: labels the metrics tab plotting CPU, memory and response time over the last hour.
The Diagram Icon in Duotone Style
Duotone icons pair the line with a soft tinted fill in the same colour. They add a hint of depth while staying easy to recolour with a single value.
Best for: product UI that wants a little colour without a full illustration style.
The same icon also comes in linear, outline, bold, bulk, twotone, broken and glass. See every icon in this look on the free duotone icons page.
How to Use the Diagram Icon
- Customise it. Pick a stroke weight, size and colour on the left. Thin (1 px) looks best at large sizes, Regular (1.5 px) is the default.
- Copy or download. Copy the SVG, or download SVG, PNG or WebP at any size from 16 to 512 px.
- Drop it into code. Choose React, React Native, Vue, Svelte, Angular or Flutter above and copy the ready-made
DiagramIconcomponent. - Label it. If the icon is the only thing in a button, give it a name for screen readers:
aria-label="Show line chart". If text sits next to it, usearia-hidden="true"instead.
Design Tips for the Diagram Icon
- When drawing a larger version, keep the axes thinner or lighter than the data line, so the zigzag stays the focus.
- For a table and chart toggle, use aria-pressed on each option so screen reader users know which view is showing.
- Do not add gridlines or data points to the glyph below 24 px; they turn it into noise and slow recognition.
Icons That Work Well with Diagram
Browse all business iconsDiagram Icon FAQ
Yes, line graph and line chart are two names for the same thing, and the icons look identical: a zigzag line over two axes. British teams tend to say graph in everyday speech, while chart is more common in software menus and data tools.
Use a diagram symbol, usually boxes joined by lines, for flowcharts, mind maps and architecture drawings. Use a line chart for numbers plotted over time. Mixing them confuses people, because a diagram shows how things connect while a chart shows how values change.
Yes. The diagram icon is one of 891 free, open-source icons you can use in personal and commercial work, including client projects and apps you sell. The packages are MIT licensed; keep the licence notice if you redistribute the icon files.
SVG, PNG and WebP, at any size from 16 to 512 pixels. You can also copy it as JSX or as a ready-made component for React, React Native, Vue, Svelte, Angular and Flutter, with your stroke weight and colour already applied.