Platforms to show: All Mac Windows Linux Cross-Platform

CDAxisMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class ChartDirector MBS ChartDirector Plugin 8.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The Axis class represents x and y axes in XY charts.

This is an abstract class. You can't create an instance, but you can get one from various plugin functions.

  • 66 methods
    • method addLabel(pos as Double, label as string)
    • method addMark(value as Double, lineColor as color, text as string = "", font as string = "", fontsize as Double = 8) as CDMarkMBS
    • method addMark(value as Double, lineColor as Integer, text as string = "", font as string = "", fontsize as Double = 8) as CDMarkMBS
    • method addZone(startValue as Double, endValue as Double, colorvalue as color)
    • method addZone(startValue as Double, endValue as Double, colorvalue as Integer)
    • method Constructor   Private
    • method copyAxis(axis as CDAxisMBS)
    • method getAlignment as Integer
    • method getAxisImageMap(noOfSegments as Integer, mapWidth as Integer, url as string, queryFormat as string = "", extraAttr as string = "", offsetX as Integer = 0, offsetY as Integer = 0) as string
    • method getCoor(value as Double) as Integer
    • method getFormattedLabel(v as Double, options as string = "") as string
    • method getHTMLImageMap(url as string, queryFormat as string = "", extraAttr as string = "", offsetX as Integer = 0, offsetY as Integer = 0) as string
    • method getLabel(i as Double) as string
    • method getLabelTable as CDMLTableMBS
    • method getMaxValue as Double
    • method getMinValue as Double
    • method getThickness as Integer
    • method getTicks as CDArrayMBS
    • method getX as Integer
    • method getY as Integer
    • method makeLabelTable as CDMLTableMBS
    • method setAngle(angle as Double)
    • method setAutoScale(topExtension as Double = 0.1, bottomExtension as Double = 0.1, zeroAffinity as Double = 0.8)
    • method setColors(axisColor as color, labelColor as color, titleColor as color, tickColor as color)
    • method setColors(axisColor as Integer, labelColor as Integer = &hffff0002, titleColor as Integer = -1, tickColor as Integer = -1)
    • method setDateScale(formatString as string = "")
    • method setDateScale(lowerLimit as Double, upperLimit as Double, labels() as string)
    • method setDateScale(lowerLimit as Double, upperLimit as Double, majorTickInc as Double = 0, minorTickInc as Double = 0)
    • method setFormatCondition(condition as string, operand as Double = 0)
    • method setIndent(indent as boolean)
    • method setLabelAlignment(alignment as Integer, minLabelSpace as Integer = 3)
    • method setLabelFormat(formatString as string)
    • method setLabelGap(d as Integer)
    • method setLabelOffset(offset as Double)
    • method setLabels(labels() as Double, formatString as string = "") as CDTextBoxMBS
    • method setLabels(labels() as string) as CDTextBoxMBS
    • method setLabelStep(majorTickStep as Integer, minorTickStep as Integer = 0, majorTickOffset as Integer = 0, minorTickOffset as Integer = -2147483647)
    • method setLabelStyle(font as string = "", fontsize as Double = 8, fontcolor as Integer = &hffff0002, fontAngle as Double = 0) as CDTextBoxMBS
    • method setLabelStyle(font as string, fontsize as Double, fontcolor as color, fontAngle as Double = 0) as CDTextBoxMBS
    • method setLength(length as Integer)
    • method setLinearScale(formatString as string = "")
    • method setLinearScale(lowerLimit as Double, upperLimit as Double, labels() as string)
    • method setLinearScale(lowerLimit as Double, upperLimit as Double, majorTickInc as Double = 0, minorTickInc as Double = 0)
    • method setLogScale(formatString as string = "")
    • method setLogScale(lowerLimit as Double, upperLimit as Double, labels() as string)
    • method setLogScale(lowerLimit as Double, upperLimit as Double, majorTickInc as Double = 0, minorTickInc as Double = 0)
    • method setMargin(topMargin as Integer, bottomMargin as Integer = 0)
    • method setMinTickInc(value as Double)
    • method setMultiFormat(filter as Integer, format as string, labelSpan as Integer = 1, promoteFirst as boolean=true)
    • method setMultiFormat(filter1 as Integer, format1 as string, filter2 as Integer, format2 as string, labelSpan as Integer = 1, promoteFirst as boolean=true)
    • method setOffset(x as Integer, y as Integer)
    • method setReverse(value as boolean=true)
    • method setRounding(roundMin as boolean, roundMax as boolean)
    • method setTickColor(majorTickColor as color, minorTickColor as color)
    • method setTickColor(majorTickColor as Integer, minorTickColor as Integer = -1)
    • method setTickDensity(majorTickSpacing as Integer, minorTickSpacing as Integer = -1)
    • method setTickLength(majorTickLen as Integer)
    • method setTickLength(majorTickLen as Integer, minorTickLen as Integer)
    • method setTickOffset(offset as Double)
    • method setTickWidth(majorTickWidth as Integer, minorTickWidth as Integer = -1)
    • method setTitle(text as string, font as string = "", fontsize as Double = 8, fontcolor as Integer = &hffff0002) as CDTextBoxMBS
    • method setTitle(text as string, font as string, fontsize as Double, fontcolor as color) as CDTextBoxMBS
    • method setTitlePos(alignment as Integer, titleGap as Integer = 3)
    • method setWidth(width as Integer)
    • method syncAxis(axis as CDAxisMBS, slope as Double = 1.0, intercept as Double = 0.0)
    • method syncScale(axis as CDAxisMBS = nil, slope as double = 1.0, intercept as double = 0.0)

Sub classes:

Some methods using this class:

Some properties using for this class:

Some examples using this class:

Blog Entries

Release notes

  • Version 21.2
    • Fixed scaling issue with setTickDensity method in CDAxisMBS.
  • Version 17.3
    • Fixed CDAxisMBS.getThickness to respect scale factor.

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


CDArrayMBS   -   CDBarLayerMBS


The biggest plugin in space...