How to use the blessed-contrib.donut function in blessed-contrib

To help you get started, we’ve selected a few blessed-contrib examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github radareorg / radare2-extras / blessr2 / index.js View on Github external
function demoStuff() {
    var donut = contrib.donut({
        label: 'Test',
        radius: 8,
        arcWidth: 3,
        spacing: 2,
        yPadding: 2,
        width: '70%',
        height: '50%',
        left: 0,
        top: 0,
        draggable: true,
        border: config.border,
        data: [{
            percent: 60,
            label: '.text',
            color: 'green',
        }, {
github storybookjs / storybook / lib / server / src / terminal-app / dashboard.tsx View on Github external
import React from 'react';
import {} from 'react-blessed';
import { Grid, Map, createBlessedComponent } from 'react-blessed-contrib';
import contrib from 'blessed-contrib';
import throttle from 'react-throttle-render';

import { State } from '../types';

const MyBlessedWidget = createBlessedComponent(contrib.donut);

const Dashboard = ({ manager, preview, server }: State) => (
  
    
      Some text
    
    
      
        <map label="World Map!" colspan="{12}" rowspan="{4}">
        
          </map>