1.0.5 • Published 2 years ago

skills-radar-chart v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Skills Radar Chart

Skills Radar Chart a React library for Easy creating Radar Chart for showing your data such as skills.

MIT License

Installation

Use the package manager npm to install json-pretty-textarea.

npm i skills-radar-chart

Usage

# import 
import { RadarChart } from "skills-radar-chart";
# return
  <RadarChart
    rawData={SkillsArray}
    skillPercentage="skillPercentage"
    skillName="skillName"
    label="Skills"
    backgroundColor="rgba(255, 99, 132, 0.2)"
    borderColor={["blue", "red", "green", "yellow"]}
    borderWidth="5"
    pointBackgroundColor="rgb(54, 162, 235)"
    pointBorderColor={["blue", "red", "green", "yellow"]}
    pointHoverBackgroundColor="#fff"
    pointHoverBorderColor="rgb(54, 162, 235)"
    borderDash={[2, 5]}
    borderDashOffset="8"
    angleLines="rgba(255, 99, 132, 0.2)"
    grid="rgba(255, 99, 132, 0.2)"
    pointLabels="rgba(255, 99, 132, 0.2)"
    ticks="rgba(255, 99, 132, 0.2)"
    ShowLegend={false}
  />

alt text


PropertytypeDefaultDescription
rawDatajson dataMockDocumentSource File json
skillPercentagedatawhitekey colum (number)
skillNamelabelgreenkey colum (Name)
ShowLegendlegend show1rem{true} / {false}
borderWidthCSSnumberonly Number no px or rem
labellegend Texttextcss color/array of colors
borderDashCSSnumber2,0only Number no px or rem
borderDashOffsetCSSnumberonly Number no px or rem
backgroundColorCSSbluecss color/array of colors
pointBackgroundColorCSSbluecss color/array of colors
pointHoverBackgroundColorCSSbluecss color/array of colors
pointHoverBorderColorCSSbluecss color/array of colors
borderColorCSSmagentacss color/array of colors
angleLinesCSSredcss color/array of colors
gridCSSbluecss color/array of colors
pointLabelsCSSredcss color/array of colors
ticksCSSredcss color/array of colors

CodeSandBox Sample

Skills Radar Charthttps://codesandbox.io/s/skills-radar-chart-nzbjxi

Contributing

For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT MIT License