GithubHelp home page GithubHelp logo

jacques09098 / react-native-segmented-progress-bar Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fattahmuhyiddeen/react-native-segmented-progress-bar

0.0 1.0 0.0 14 KB

React Native component for having segmented or multipart progress bar

License: MIT License

Shell 2.92% JavaScript 97.08%

react-native-segmented-progress-bar's Introduction

react-native-segmented-progress-bar

React Native component for having segmented or multipart progress bar

Installation

yarn add react-native-segmented-progress-bar

Usage sample

This code

<SegmentedProgressBar
  showSeparatorValue
  borderRadius={3}
  values={[0, 18.5, 23.0, 27.5, 40]}
  colors={['grey', 'green', 'orange', 'red']}
  labels={['underweight','normal','overweight','obese']}
  position={21}
/>

will generate this

Simulator Screen Shot - iPhone 11 Pro Max - 2019-10-14 at 14 26 38

Properties

Prop Type Description Default Required
labels array of strings Labels that will appear below the chart. If not defined, the label will not appear undefined Optional
values array of numbers Cumulative numbers that define how large each segment should be undefined Required
colors array of strings (color in any format (like white or #ffffff or rgb(255,255,255))) Number of elements in this array should be less than 1 element from value array undefined Required
height number Height of the progress bar only not including the label 8 Optional
borderRadius number Border Radius of the bar undefined Optional
showSeparatorValue boolean If true, label on the top that display values of borders between each segments will be displayed false Optional

react-native-segmented-progress-bar's People

Contributors

fattahmuhyiddeen avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.