# somehow-circle

> somehow-circle — part of somehow —

Latest version **1.2.0** (published 2022-12-03) · 0 weekly downloads

## Install

```sh
npm install somehow-circle
pnpm add somehow-circle
yarn add somehow-circle
bun add somehow-circle
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2022-12-03 |
| First published | 2019-10-10 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 145.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Spencer Kelly |
| Maintainers | spencermountain |

## Links

- npm: https://www.npmjs.com/package/somehow-circle
- Homepage: https://github.com/spencermountain/somehow-circle
- npm.io page: https://npm.io/package/somehow-circle

## Dependencies (2)

- [d3-shape](https://npm.io/package/d3-shape.md) 2.0.0
- [spencer-color](https://npm.io/package/spencer-color.md) ^0.1.0

## Recent versions

- 1.2.0 (latest) — 2022-12-03
- 1.0.1 — 2020-09-07
- 1.0.0 — 2020-06-29
- 0.0.2 — 2019-10-12
- 0.0.1 — 2019-10-10

## README

<div align="center">
  <div><b>somehow-circle</b></div>
  <img src="https://user-images.githubusercontent.com/399657/68222691-6597f180-ffb9-11e9-8a32-a7f38aa8bded.png"/>
  <div>— part of <a href="https://github.com/spencermountain/somehow">somehow</a> —</div>
  <div>WIP svelte infographics</div>
  <div align="center">
    <sub>
      by
      <a href="https://spencermounta.in/">Spencer Kelly</a> 
    </sub>
  </div>
</div>
<div align="right">
  <a href="https://npmjs.org/package/somehow-circle">
    <img src="https://img.shields.io/npm/v/somehow-circle.svg?style=flat-square" />
  </a>
</div>
<img height="25px" src="https://user-images.githubusercontent.com/399657/68221862-17ceb980-ffb8-11e9-87d4-7b30b6488f16.png"/>

**work in progress**

a **svelte** component to draw circular infographics.

`npm i somehow-circle`

```html
<script>
  import { Round, Arc, Circle, Line, Label } from 'somehow-circle'
</script>

<Round rotate="0" margin="10">
  <Arc from="-45" to="45" color="blue" width="8" />
  <Arc from="-10" to="-5" color="red" width="8" />
  <Circle radius="73" />
  <Line length="70" angle="30" />
  <label angle="32" radius="68" text="30°" color="grey" size="8" />
</Round>
```

![image](https://user-images.githubusercontent.com/399657/92408329-2bccd580-f10b-11ea-80f2-774d41cb5daf.png)

a Svelte component that has two automatically-resizing scales - a round one, and a radial one.
This lets you easily plot data into a pie-chart-like form, and automatically fit the scales to the data, and responsively fit the graph to the page.

the svg will resize responsively to fit your container.

work-in-progress!

### See also

- [somehow-input](https://github.com/spencermountain/somehow-input)
- [somehow-ticks](https://github.com/spencermountain/somehow-ticks)
- [somehow-calendar](https://github.com/spencermountain/somehow-calendar)
- [somehow-maps](https://github.com/spencermountain/somehow-maps)

MIT

---
_Source: https://npm.io/package/somehow-circle · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
