# techradar-component

> A React Techradar component inspired by the ThoughtWorks Technology Radar

Latest version **0.2.5** (published 2023-04-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install techradar-component
pnpm add techradar-component
yarn add techradar-component
bun add techradar-component
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.5 |
| Published | 2023-04-05 |
| First published | 2023-03-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 17 |
| Unpacked size | 37.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Luuk Bevelsborg |
| Maintainers | luukjuh123 |
| Keywords | react, typescript, tech-radar, technology-radar, react-techradar |

## Links

- npm: https://www.npmjs.com/package/techradar-component
- Repository: https://github.com/luukjuh123/techradar-component
- Homepage: https://github.com/luukjuh123/techradar-component#readme
- Issues: https://github.com/luukjuh123/techradar-component/issues
- npm.io page: https://npm.io/package/techradar-component

## Dependencies (17)

- [react](https://npm.io/package/react.md) ^18.2.0
- [d3-color](https://npm.io/package/d3-color.md) ^3.1.0
- [d3-scale](https://npm.io/package/d3-scale.md) ^4.0.2
- [d3-shape](https://npm.io/package/d3-shape.md) ^3.2.0
- [react-dom](https://npm.io/package/react-dom.md) ^18.2.0
- [typescript](https://npm.io/package/typescript.md) ^4.4.2
- [web-vitals](https://npm.io/package/web-vitals.md) ^2.1.0
- [@types/jest](https://npm.io/package/@types/jest.md) ^29.5.0
- [@types/node](https://npm.io/package/@types/node.md) ^16.7.13
- [@types/react](https://npm.io/package/@types/react.md) ^18.0.0
- [react-scripts](https://npm.io/package/react-scripts.md) 5.0.1
- [@types/react-dom](https://npm.io/package/@types/react-dom.md) ^18.0.0
- [styled-components](https://npm.io/package/styled-components.md) ^5.3.9
- [d3-scale-chromatic](https://npm.io/package/d3-scale-chromatic.md) ^3.0.0
- [@testing-library/react](https://npm.io/package/@testing-library/react.md) ^14.0.0
- [@testing-library/jest-dom](https://npm.io/package/@testing-library/jest-dom.md) ^5.14.1
- [@testing-library/user-event](https://npm.io/package/@testing-library/user-event.md) ^13.2.1

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.2.5 (latest) — 2023-04-05
- 0.2.4 — 2023-03-24
- 0.2.2 — 2023-03-24
- 0.2.1 — 2023-03-20
- 0.2.0 — 2023-03-20
- 0.1.4 — 2023-03-20
- 0.1.3 — 2023-03-20
- 0.1.2 — 2023-03-20
- 0.1.1 — 2023-03-20
- 0.1.0 — 2023-03-20

## README

# Techradar

![npm](https://img.shields.io/npm/v/techradar-component) ![GitHub top language](https://img.shields.io/github/languages/top/luukjuh123/techradar-component) ![npm](https://img.shields.io/npm/dm/techradar-component?logo=npm) ![GitHub](https://img.shields.io/github/license/luukjuh123/techradar-component) ![GitHub issues](https://img.shields.io/github/issues/luukjuh123/techradar-component) ![GitHub last commit](https://img.shields.io/github/last-commit/luukjuh123/techradar-component) ![GitHub Repo stars](https://img.shields.io/github/stars/luukjuh123/techradar-component?style=social)

This is a TypeScript React component for displaying a tech radar, with customizable quadrants, rings, and items.


## Contribution

To contribute to techradar-component, report issues on GitHub with details and steps to reproduce. For pull requests, follow coding guidelines, describe your changes, and ensure tests pass. Your participation helps improve the project for the community.

## Installation

To install, run:

```bash
npm install techradar-component

```
or:
```bash
yarn add techradar-component

```


## Usage

To use, import the `TechRadar` component from `techradar-component` and provide the necessary props:

```javascript
import React from 'react';
import { TechRadar } from 'techradar-component';


type RadarProps = {
  quadrants: string[];
  rings?: string[];
  data?: {
    id: number;
    name: string;
    quadrant: string;
    ring: string;
  }[]
  width?: number;
  fontSize?: number;
  itemFontSize?: number;
  colorScaleIndex?: number;
  radiusDiminish?: number;
}

const setup: RadarProps  = {
    rings: ['adopt', 'trial', 'assess', 'hold'],
    quadrants: ['tools', 'techniques', 'platforms', 'languages'],
    data: [
      {
        id: 1,
        name: 'D3',
        quadrant: 'tools',
        ring: 'assess',
      },
      {
        id: 2,
        name: 'TypeScript',
        quadrant: 'languages',
        ring: 'trial',
      },
      {
        id: 3,
        name: 'Storybook',
        quadrant: 'tools',
        ring: 'adopt',
      },
    ],
  }

const MyComponent = () => {
  return (
    <TechRadar
      {...setup}
    />
  );
};

```

## Props

| Prop | Type | Required | Default value | Description |
| --- | --- | --- | --- | --- |
| quadrants | string[] | Yes | - | An array of strings representing the quadrants of the radar chart |
| rings | string[] | No | - | An array of strings representing the rings of the radar chart |
| data | DataType[] | No | - | An array of objects with the following properties: id, name, quadrant, ring |
| width | number | No | 700px | The width of the TechRadar component |
| fontSize | number | No | 12px | The radius of the radar chart |
| itemFontSize | number | No | 12px | Item size differentiation than quadrant titles |
| colorScaleIndex | number | No | 200 | The item fontSize |
| radiusDiminish | number | No | 2 | The factor in which the rings are equal |


## License

This component is licensed under the MIT License.

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