Chart pie icon

Added in v0.2.0

A free pencil-style chart pie icon, drawn by code from 1 circle and 1 polyline. Use it as an SVG, a React component, or by name. MIT licensed.

chart-pie

01Use it

Use chart-pie

One package, four ways in. The icon inherits currentColor and is decorative unless you give it a title. Install it with npm i @matita/icons.

React

import { ChartPie } from '@matita/icons/react';

<ChartPie size={24} />

// or by name
import { SketchIcon } from '@matita/icons/react';
<SketchIcon name="chart-pie" />

JavaScript

import { ChartPie, toSvg } from '@matita/icons';

toSvg(ChartPie, { size: 24 });   // SVG string

SVG

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" overflow="visible" class="sketch-icon sketch-icon-chart-pie" data-sketch="" aria-hidden="true"><path d="M20.33 10.87C20.25 11.46 20.19 13.33 19.84 14.45C19.5 15.56 18.93 16.62 18.27 17.56C17.61 18.5 16.83 19.53 15.88 20.09C14.94 20.66 13.71 20.88 12.61 20.95C11.51 21.02 10.3 20.92 9.28 20.52C8.26 20.12 7.3 19.34 6.5 18.54C5.7 17.74 4.93 16.76 4.47 15.7C4.01 14.64 3.78 13.37 3.75 12.19C3.71 11.01 3.87 9.74 4.24 8.62C4.62 7.49 5.22 6.34 5.98 5.45C6.75 4.57 7.78 3.74 8.82 3.3C9.87 2.85 11.12 2.73 12.26 2.77C13.4 2.82 14.62 3.04 15.65 3.56C16.67 4.07 17.64 4.93 18.39 5.84C19.15 6.76 19.81 7.89 20.18 9.04C20.56 10.19 20.69 11.53 20.63 12.76C20.57 14 19.95 15.84 19.81 16.46" stroke-width="1.424"/><path d="M11.91 3Q11.67 7.42 12.18 11.82Q16.07 13.93 19.68 16.48" stroke-width="1.712"/></svg>

Pencil variant

import '@matita/icons/pencil.css';
import { ChartPie } from '@matita/icons/react';

<ChartPie size={32} pencil />

The file is icons/chart-pie.svg in the package (pencil/chart-pie.svg for the pencil variant). Matita 0.7.0.

02How it's drawn

The recipe for chart-pie

Chart pie is not stored as a drawing. It is a recipe of 1 circle and 1 polyline on a 24 by 24 grid, and a small program draws it like a pencil would. The wobble comes from the name, so it always comes out the same.

A · Recipe
C 12 12 8.5;
P 12 3.5 12 12 19.4 16.2
B · Plotted
C · Drawn
How it works

03Takes, sizes, pencil

Same icon, every way

Pass a seed for another take of the same recipe. The wobble is capped, so it still reads at 16 px.

seed 0
seed 1
seed 2
seed 3
seed 4

Five seeds of chart-pie. Seed 0 is the default.

wobble 0
wobble 0.25
wobble 0.5
wobble 0.75
wobble 1

chart-pie from exact shapes (wobble 0) to the full hand (wobble 1, the default). The exact version is also a ready-made file: exact/chart-pie.svg.

16 px
20 px
24 px
32 px
48 px
96 px

True pixel sizes.

Ink
Pencil