Sha256: 93ba653adf9f05855a1ced46fccf3c807d5dfae696e85cfbb0b701a4bed6bf81

Contents?: true

Size: 317 Bytes

Versions: 3

Compression:

Stored size: 317 Bytes

Contents

require_relative '../lib/tty-pie'

data = [
  { name: 'BTC', value: 5977, color: :bright_yellow },
  { name: 'BCH', value: 3045, color: :bright_green },
  { name: 'LTC', value: 2030, color: :bright_magenta },
  { name: 'ETH', value: 2350, color: :bright_cyan }
]

pie = TTY::Pie.new(data: data, radius: 10)

puts pie

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tty-pie-0.3.0 examples/basic.rb
tty-pie-0.2.0 examples/basic.rb
tty-pie-0.1.0 examples/basic.rb