WithChartItems (SetDataPointItem - Colour)

Defines the colour and transparency of a specific data point from a series in the currently initialised chart definition.

Syntax

WithChartItems( InstructionType, SeriesName, DataPointIndex, InstructionSubType, ColourName, Transparency );

Parameters

Parameter Name Type Description Optional? Default Value
InstructionType Integer or String Must be set to either the integer 23 or the string "SetDataPointItem". No n/a
SeriesName String The name of the series that containing the intended data point. No n/a
DataPointIndex String The zero-based index of the data point to update. This index is assigned to all data points based on the order in which they were added, beginning from 0. No n/a
InstructionSubType Integer or String Must be set to either the integer 3 or the string "Colour". No n/a
ColourName String A standard HTML colour to apply to the data point. For a full list of valid colours, refer to this MSDN article. Yes "Black"
Transparency Integer The level of transparency of the data point, ranging from 0 (invisible) to 255 (opaque). Yes 255

Output

If successful, the function will return True; otherwise, it will return False.