struct Opal::UI::PieSlice

Overview

Represents a single slice of data in a PieChart.

Defined in:

opal/ui/components/pie_chart.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]