Skip to content

Instantly share code, notes, and snippets.

@brianjang
brianjang / GaugeChart.js
Created June 11, 2018 10:56 — forked from emiloberg/GaugeChart.js
Gauge Chart with React Recharts (http://recharts.org)
import React from 'react';
import { Sector, Cell, PieChart, Pie } from 'recharts';
const GaugeChart = () => {
const width = 500;
const chartValue = 180;
const colorData = [{
value: 40, // Meaning span is 0 to 40
color: '#663399'
}, {