StyleCode Property: unitPosition

unitPosition

Controls the position of the unit in the number pipeline.

Applies toTypeDefault
barchart > vaxis > left
barchart > vaxis > right
barchart > series > value
histogram > series > value
linechart > vaxis > left
linechart > vaxis > right
linechart > series > value
piechart > series > value
plot > series > value
plot > haxis
plot > vaxis
scalar > entry > value
scatter > series > value
scatter > haxis
summary > entry > value
table > column > value
text"auto"

Examples

// Example: barchart > vaxis > left
{ vaxis { left { unitPosition: "auto" } } }
show barchart "My Chart" a1b6 with
  sum(Quantity)
  group by Category

// Example: barchart > vaxis > right
{ vaxis { right { unitPosition: "auto" } } }
show barchart "My Chart" a1b6 with
  sum(Quantity)
  group by Category

// Example: barchart > series > value
show barchart "My Chart" a1b6 with
  sum(Quantity) { value { unitPosition: "auto" } }
  group by Category

// Example: histogram > series > value
show histogram "My Histogram" a1 tomato with
  PO.Delay { value { unitPosition: "auto" } }

// Example: linechart > vaxis > left
{ vaxis { left { unitPosition: "auto" } } }
show linechart "My Chart" a1b6 with
  Day.StockOnHand
  Day.StockOnOrder

// Example: linechart > vaxis > right
{ vaxis { right { unitPosition: "auto" } } }
show linechart "My Chart" a1b6 with
  Day.StockOnHand
  Day.StockOnOrder

// Example: linechart > series > value
show linechart "My Chart" a1b6 with
  Day.StockOnHand { value { unitPosition: "auto" } }
  Day.StockOnOrder

// Example: piechart > series > value
show piechart "My Chart" a1b6 with
  sum(Quantity) { value { unitPosition: "auto" } }
  group by Category

// Example: plot > series > value
show plot "My Plot" a1d4 with
  Sales.Quantity { value { unitPosition: "auto" } }
  Sales.Discount

// Example: plot > haxis
show plot "My Plot" a1d4 with
  Sales.Quantity
  Sales.Discount { unitPosition: "auto" }

// Example: plot > vaxis
{ vaxis { unitPosition: "auto" } }
show plot "My Plot" a1d4 with
  Sales.Quantity
  Sales.Discount

// Example: scalar > entry > value
show scalar "My Scalar" a1 tomato with
  sum(Quantity) { value { unitPosition: "auto" } }

// Example: scatter > series > value
show scatter "My Plot" a1d4 with
  Sales.Quantity { value { unitPosition: "auto" } }
  Sales.Discount

// Example: scatter > haxis
show scatter "My Plot" a1d4 with
  Sales.Quantity
  Sales.Discount { unitPosition: "auto" }

// Example: summary > entry > value
show summary "My Scalar" a1b3 tomato with
  sum(Quantity) { value { unitPosition: "auto" } }
  sum(NetAmount)

// Example: table > column > value
show table "My Table" a1c4 tomato with
  Orders.Date { value { unitPosition: "auto" } }
  Orders.Quantity

Details

The auto value is resolved based on the value of unit. It is right, except for the following units: €, $, £. These units use left. Surrounding spaces are ignored when recognizing them.