StyleCode Property: textColor

textColor

Specifies the color of text for the text color pipeline.

Applies to Type Default
assert
barchart > series
barchart > series > value
file > column > append
file > column > prepend
file > column > value
form
gauge
label
markdown
menu > entry
scalar
scalar > entry > value
slicepicker > entry
slicetree > entry
summary > entry > value
table > column > append
table > column > prepend
table > column > value
tabs > tab
tabs > tab > badge
color, default default

Examples

// Example: assert
myAssertion = false

show assert "My Assert" a1b1 { textColor: "#FF6347" } with
  myAssertion

// Example: barchart > series
table Items = with
  [| as SKU, as Category, as Quantity |]
  [| "AAA", "CAT_1", 10 |]
  [| "BBB", "CAT_2", 20 |]
  [| "CCC", "CAT_1", 30 |]

show barchart "My BarChart" a1b6 with
  sum(Items.Quantity) { textColor: "#FF6347" }
  group by Items.Category

// Example: barchart > series > value
table Items = with
  [| as SKU, as Category, as Quantity |]
  [| "AAA", "CAT_1", 10 |]
  [| "BBB", "CAT_2", 20 |]
  [| "CCC", "CAT_1", 30 |]

show barchart "My BarChart" a1b6 with
  sum(Items.Quantity) { value { sc } }
  group by Items.Category

// Example: form
read form with
  SKU: text
  Maximum: number

show form "My Form" a1b1 { textColor: "#FF6347" } with
  SKU
  Maximum          

// Example: gauge
show gauge "My gauge" a1b2 { textColor: "#FF6347" } with 0.5      

// Example: label
show label "My Label" a1b1 { textColor: "#FF6347" }

// Example: markdown
show markdown "My Markdown" a1b3 { textColor: "#FF6347" } with fSome markdown textf

// Example: menu > entry
show menu "" a1b3 with
  "Section" { textColor: "#FF6347" }

// Example: scalar
myValue = 123

show scalar "My Scalar" a1b1 { textColor: "#FF6347" } with
  myValue

// Example: scalar > entry > value
myValue = 123

show scalar "My Scalar" a1b1 with
  myValue { value { textColor: "#FF6347" } }

// Example: slicepicker > entry
table Items = with
  [| as Id |]
  [| "A" |]
  [| "B" |]
  [| "C" |]
  
table Slices[slice] = slice by [Items.Id] title: "Slice \{Items.Id}"

show slicepicker "Pick a slice" a1b3 with
  same(Items.Id) { textColor: "#FF6347" }

// Example: slicetree > entry
table Items = with
  [| as Id |]
  [| "A" |]
  [| "B" |]
  [| "C" |]
  
table Slices[slice] = slice by [Items.Id] title: "Slice \{Items.Id}"

show slicetree "Pick a slice" a1b3 with
  same(Items.Id) { textColor: "#FF6347" }

// Example: summary > entry > value
table Sales = with
  [| as Quantity, as NetAmount |]
  [| 10, 40 |]
  [| 2, 10 |]
  [| 1, 20 |]

show summary "My Summary" a1b3 with
  sum(Sales.Quantity) { value { textColor: "#FF6347" } }
  sum(Sales.NetAmount)

// Example: table > column > append
table Orders = with
  [| as Date, as Quantity |]
  [| date(2023,02,21), 150 |]
  [| date(2023,02,22), 250 |]

show table "My Table" a1c4 with
  Orders.Date { append { textColor: "#FF6347" } }
  Orders.Quantity

// Example: table > column > prepend
table Orders = with
  [| as Date, as Quantity |]
  [| date(2023,02,21), 150 |]
  [| date(2023,02,22), 250 |]

show table "My Table" a1c4 with
  Orders.Date { prepend { textColor: "#FF6347" } }
  Orders.Quantity

// Example: table > column > value
table Orders = with
  [| as Date, as Quantity |]
  [| date(2023,02,21), 150 |]
  [| date(2023,02,22), 250 |]

show table "My Table" a1c4 with
  Orders.Date { value { textColor: "#FF6347" } }
  Orders.Quantity

// Example: tabs > tab
show tabs "My Tabs" a1b3 with
  "tab1" { textColor: "#FF6347" }
  "tab2"

// Example: tabs > tab > badge
show tabs "My Tabs" a1b3 with
  "tab1" { badge { textColor: "#FF6347" } }
  "tab2"

User Contributed Notes
0 notes + add a note