ReferenceLines collection
Represents an individual Chart section reference line. Reference lines are horizontal or vertical lines drawn in the Chart diagram to indicate user-defined static values.
Note the behavior of a reference line:
The reference line created for an item on the X fact axis is drawn vertically. It is drawn horizontally for an Y fact axis
For Bubble charts, both the Axis non-fact value or fact based value can be placed on the Y-axis or X-axis since the line is associated with the bubble radius.
A Pie chart cannot have any type of reference line.
The Stacked Bar and Stacked Area charts both allow axis non fact and fact based value reference lines.
The fact based reference line is always associated with some Fact column.
When the column is removed from the Chart data layout, the corresponding reference line is also removed. When the Fact is hidden or focused, , the reference line is also hidden, or focused.
This example show how to return and write the label text and value associated with a reference line to the Console:
Console.Write(ActiveDocument.Sections["Chart"].ReferenceLines[1].GetLabelText())
GetLabelText([optional] Number z), GetValue([optional] Number z), Remove(), SetValue(Value as Number)
Read write: Axis as BqChartAxisType, DrawingOrder as BqDrawingOrder, FactIndex as Number, Function as BqDataFunction, LabelFormat as String, LegendFormat as String, NumberFormat as String, ShowInLegend as Boolean, ShowLabel as Boolean