struct Opal::UI::BarItem

Overview

Represents a single bar item in a BarChart

Defined in:

opal/ui/components/barchart.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(label : String, value : Float64, color : Color | Symbol | String = :cyan, formatted_value : String | Nil = nil) #

[View source]

Instance Method Detail

def color : Color #

[View source]
def formatted_value : String | Nil #

[View source]
def label : String #

[View source]
def value : Float64 #

[View source]