Platforms to show: All Mac Windows Linux Cross-Platform

Back to CDFinanceChartMBS class.

Previous items

CDFinanceChartMBS.setLegendStyle(font as string, fontSize as Double, fontColor as color, bgColor as color)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 11.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Same as the other setLegendStyle method, but uses color instead of integer data type for passing color values.

See also:

Some examples using this method:

CDFinanceChartMBS.setLegendStyle(font as string, fontSize as Double, fontColor as Integer, bgColor as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 9.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets legend font style and background color.

The default is Arial 8 pt black font on a semi-transparent light grey (80CCCCCC) background.

Arguments:
ArgumentDefaultDescription
font(Mandatory)The font of the legend text.
fontSize(Mandatory)The font size of the legend text in points.
fontColor(Mandatory)The color of the legend text.
bgColor(Mandatory)The background color of the legend box.

See also:

CDFinanceChartMBS.setLogScale(b as Boolean)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 9.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Determines if log scale should be used for the main chart.

The default is to use linear scale.

Arguments:
ArgumentDefaultDescription
b(Mandatory)A true value means using log scale. A false value means using linear scale.

CDFinanceChartMBS.setMargins(leftMargin as Integer, topMargin as Integer, rightMargin as Integer, bottomMargin as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 9.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets the margins around the plot area.

The default is 40 pixels for the left and right margins, and 30 pixels for the top margin and 35 pixels for the bottom margin.

Arguments:
ArgumentDefaultDescription
leftMargin(Mandatory)The distance from the left side of the plot area to the left side of the chart.
topMargin(Mandatory)The distance from the top of the plot area to the top of the chart.
rightMargin(Mandatory)The distance from the right side of the plot area to the right side of the chart.
bottomMargin(Mandatory)The distance from the bottom of the plot area to the bottom of the chart.

CDFinanceChartMBS.setNumberLabelFormat(formatString as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 9.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets the number format to use.

The default number format in FinanceChart is "P3". See Parameter Substitution and Formatting on the syntax of ChartDirector format strings.

Arguments:
ArgumentDefaultDescription
formatString(Mandatory)The format for displaying numbers.

CDFinanceChartMBS.setPercentageAxis as CDAxisMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 9.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Label the axis of the main chart in percentage unit.

By default, the axis of the main chart will be labelled in price unit. If a percentage axis is used, the axis will be labelled in percentage unit, with the first visible point of the closing price being 100%.

CDFinanceChartMBS.setPlotAreaBorder(borderColor as color, borderGap as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 11.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Same as the other setPlotAreaBorder method, but uses color instead of integer data type for passing color values.

See also:

CDFinanceChartMBS.setPlotAreaBorder(borderColor as Integer, borderGap as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 9.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets the plot area border color and the gap distance between charts.

The default is a grey (888888) border with two 2 pixels gap between charts.

Arguments:
ArgumentDefaultDescription
borderColor(Mandatory)The plot area border color.
borderGap(Mandatory)The distance between charts.

See also:

CDFinanceChartMBS.setPlotAreaStyle(bgColor as color, majorHGridColor as color, majorVGridColor as color, minorHGridColor as color, minorVGridColor as color)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 11.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Same as the other setPlotAreaStyle method, but uses color instead of integer data type for passing color values.

See also:

CDFinanceChartMBS.setPlotAreaStyle(bgColor as Integer, majorHGridColor as Integer, majorVGridColor as Integer, minorHGridColor as Integer, minorVGridColor as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 9.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets the plot area background and grid colors.

The default is a white background with light grey (DDDDDD) grid lines.

Arguments:
ArgumentDefaultDescription
bgColor(Mandatory)The plot area background color.
majorHGridColor(Mandatory)Major horizontal grid color.
majorVGridColor(Mandatory)Major vertical grid color.
minorHGridColor(Mandatory)Minor horizontal grid color. In current version, minor horizontal grid is not used.
minorVGridColor(Mandatory)Minor vertical grid color.

See also:

CDFinanceChartMBS.setToolTipDateFormat(monthFormat as string, dayFormat as string, hourFormat as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 9.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets the date/time formats to use for the tool tips under various cases.

See Parameter Substitution and Formatting on the syntax of ChartDirector format strings.

Arguments:
ArgumentDefaultDescription
monthFormat(Mandatory)The tool tip format to use if the data point spacing is one or more months (more than 30 days). The default is "[{xLabel|mmm yyyy}]".
dayFormat(Mandatory)The tool tip format to use if the data point spacing is 1 day to less than 30 days. The default is "[{xLabel|mmm d, yyyy}]".
hourFormat(Mandatory)The tool tip format to use if the data point spacing is less than 1 day. The default is "[{xLabel|mmm d, yyyy hh:nn:ss}]".

CDFinanceChartMBS.setXAxisStyle(font as string, fontSize as Double, fontColor as color, fontAngle as Double)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 11.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Same as the other setXAxisStyle method, but uses color instead of integer data type for passing color values.

See also:

CDFinanceChartMBS.setXAxisStyle(font as string, fontSize as Double, fontColor as Integer, fontAngle as Double)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 9.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets x-axis label style.

The default is Arial 8 pt black color as font with no text rotation.

Arguments:
ArgumentDefaultDescription
font(Mandatory)The font of the axis labels.
fontSize(Mandatory)The font size of the axis labels in points.
fontColor(Mandatory)The color of the axis labels.
fontAngle(Mandatory)The rotation of the axis labels.

See also:

CDFinanceChartMBS.setYAxisStyle(font as string, fontSize as Double, fontColor as color, bgColor as color)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 11.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Same as the other setYAxisStyle method, but uses color instead of integer data type for passing color values.

See also:

CDFinanceChartMBS.setYAxisStyle(font as string, fontSize as Double, fontColor as Integer, bgColor as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 9.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets y-axis label style.

The default is Arial 8 pt black color, with 14 pixels margin.

Arguments:
ArgumentDefaultDescription
font(Mandatory)The font of the axis labels.
fontSize(Mandatory)The font size of the axis labels in points.
fontColor(Mandatory)The color of the axis labels.
axisMargin(Mandatory)The margin at the top of the y-axis in pixels (to leave space for the legend box).

See also:

Previous items

The items on this page are in the following plugins: MBS ChartDirector Plugin.


The biggest plugin in space...