Line Chart Value Item - FormatHint Method

Allows you to overwrite the default hint for a chart item

Member of Line Chart Value Item (PRIM_CHRT.LineChartValueItem)

Parameters

Name Type Data Type Description
Title *Input (Optional) Unicode String Title of hint
Line1 *Input (Optional) Unicode String Line one of hint
Line2 *Input (Optional) Unicode String Line two of hint
Line3 *Input (Optional) Unicode String Line three of hint

Details

Allows you to overwrite the default hint for a chart item. This is useful to add contextual details for each item.

Example

The example shows a line chart showing profits for the quarters of 2 years.
 
The format hint is used to format the caption and value
 
 
Define_com Class(#prim_str) name(#Title)
Define_com Class(#prim_str) Name(#Line1)
 
* Quarter 1
#LineChartValue1 := 40000
#LineChartValue2 := 60000
#LineChartCaption := 'Quarter 1'
Add_Entry To_List(#LineChart)
 
#Title := #LineChartCaption.currentItem.Caption + ' 2020'
#Line1 := '$' + #LineChartValue1.asString + ' Profit'
#LineChartValue1.CurrentItem.FormatHint Title(#Title) Line1(#Line1)
 
#Title := #LineChartCaption.currentItem.Caption + ' 2019'
#Line1 := '$' + #LineChartValue2.CurrentItem.Value.asString + ' Profit'
#LineChartValue2.CurrentItem.FormatHint Title(#Title) Line1(#Line1)
 

See also

All Component Classes

Technical Reference

LANSA Version 15, April 2020