🚀 Big News:Socket Has Acquired Secure Annex.Learn More
Socket
Book a DemoSign in
Socket

@sb1/ffe-chart-donut-react

Package Overview
Dependencies
Maintainers
4
Versions
102
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sb1/ffe-chart-donut-react

Donut chart in SVG

latest
Source
npmnpm
Version
101.0.3
Version published
Weekly downloads
202
-52.13%
Maintainers
4
Weekly downloads
 
Created
Source

@sb1/ffe-chart-donut-react

Beskrivelse

Ringdiagram som viser prosentvis fordeling mellom to verdier. Viser alltid to segmenter: percentage (hoyre) og 100 - percentage (venstre).

Installasjon

npm install --save @sb1/ffe-chart-donut-react

Bruk

Full dokumentasjon: https://sparebank1.github.io/designsystem/

Importere styling

@import '@sb1/ffe-chart-donut-react/less/ffe-chart-donut';

Eller kompilert CSS:

@import '@sb1/ffe-chart-donut-react/css/ffe-chart-donut.css';

Eksempler

Grunnleggende bruk med to etiketter

import { ChartDonut } from '@sb1/ffe-chart-donut-react';

<ChartDonut
    name="Avstemning"
    percentage={42}
    firstLabel="Sa nei"
    lastLabel="Sa ja"
/>;

Bruk med egendefinert label

import { ChartDonut } from '@sb1/ffe-chart-donut-react';

<ChartDonut
    name="Prosjektstatus"
    percentage={75}
    label={<span>75% fullfort</span>}
/>;

Theming med CSS custom properties

Krever base-tema fra ffe-core:

@import '@sb1/ffe-core/less/theme';

Utvikling

npm install && npm run build && npm start

Storybook kjorer pa http://localhost:6006/.

Keywords

ffe

FAQs

Package last updated on 28 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts