MCPcopy Index your code
hub / github.com/Reggino/react-svg-gauge

github.com/Reggino/react-svg-gauge @1.0.6

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.0.6 ↗ · + Follow
6 symbols 11 edges 5 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

React SVG Gauge

Simple SVG Gauge component, inspired by JustGage

Demo

Sample Gauge

https://reggino.github.io/react-svg-gauge

Sample implementation


import React, { Component } from 'react';
import Gauge from 'react-svg-gauge';

export default class App extends Component {
    render() {
        return (



                <Gauge value={this.state.value} width={400} height={320} label="This is my Gauge" />



        );
    }
}


Options

  • label (default: "React SVG Gauge")
  • min (default: 0)
  • max (default: 100)
  • value (default: 40)
  • width (default: : 400)
  • height (default: 320)
  • color (default: '#fe0400')
  • backgroundColor (default: '#edebeb')
  • topLabelStyle (style object)
  • valueLabelStyle (style object)
  • minMaxLabelStyle(style object)

Styling can be done via Style-properties, or by applying CSS to SVG Text elements.

Core symbols most depended-on inside this repo

getHexColor
called by 3
example/App.js
constructor
called by 0
example/App.js
render
called by 0
src/Gauge.js

Shape

Class 3
Function 2
Method 1

Languages

TypeScript100%

Modules by API surface

src/Gauge.js3 symbols
example/App.js3 symbols

For agents

$ claude mcp add react-svg-gauge \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact