0.4.0 • Published 10 months ago

toy-block-charts v0.4.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

ToyBlockCharts

Introduction

Charts that looks like they were made out of toy blocks.
Please use it as an alternative if you find the expression of pie charts to be stiff.

This library is currently in the early stages of development. We are constantly working to improve and optimize our codebase, which may lead to some breaking changes. We recommend regularly checking the latest release logs and documentation.

Installation

npm install toy-block-charts

Usage

Stable Balanced

stable balanced chart

<StackedBlockChart
  stackType="stable-balanced"
  data={[
    { name: "apple", value: 10 },
    { name: "banana", value: 20 },
    { name: "orange", value: 30 },
    { name: "grape", value: 40 },
    { name: "kiwi", value: 50 },
  ]}
/>

Unstable Inverted

unstable inverted chart

<StackedBlockChart
  stackType="unstable-inverted"
  data={[
    { name: "apple", value: 10 },
    { name: "banana", value: 20 },
    { name: "orange", value: 30 },
    { name: "grape", value: 40 },
    { name: "kiwi", value: 50 },
  ]}
/>

Shuffled

shuffled chart

<StackedBlockChart
  stackType="shuffled"
  data={[
    { name: "apple", value: 10 },
    { name: "banana", value: 20 },
    { name: "orange", value: 30 },
    { name: "grape", value: 40 },
    { name: "kiwi", value: 50 },
  ]}
/>

Acknowledgment of Color Scheme

I have referenced the color settings from the website "ColorLisa"

0.4.0

10 months ago

0.3.0

11 months ago

0.2.0

1 year ago

0.1.0

1 year ago