Platforms to show: All Mac Windows Linux Cross-Platform
Back to CDFinanceChartMBS class.
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 |
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 |
The default is Arial 8 pt black font on a semi-transparent light grey (80CCCCCC) background.
Arguments:
Argument | Default | Description |
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 |
The default is to use linear scale.
Arguments:
Argument | Default | Description |
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 |
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:
Argument | Default | Description |
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 |
The default number format in FinanceChart is "P3". See Parameter Substitution and Formatting on the syntax of ChartDirector format strings.
Arguments:
Argument | Default | Description |
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 |
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 |
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 |
The default is a grey (888888) border with two 2 pixels gap between charts.
Arguments:
Argument | Default | Description |
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 |
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 |
The default is a white background with light grey (DDDDDD) grid lines.
Arguments:
Argument | Default | Description |
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 |
See Parameter Substitution and Formatting on the syntax of ChartDirector format strings.
Arguments:
Argument | Default | Description |
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 |
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 |
The default is Arial 8 pt black color as font with no text rotation.
Arguments:
Argument | Default | Description |
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 |
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 |
The default is Arial 8 pt black color, with 14 pixels margin.
Arguments:
Argument | Default | Description |
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:
The items on this page are in the following plugins: MBS ChartDirector Plugin.