Appearance
Interface: ChartPropsAxisVal ​
Extended by ​
Properties ​
secondaryValAxis? ​
optionalsecondaryValAxis?:boolean
Whether data should use secondary value axis (instead of primary)
A combo subchart plots on the secondary category and value axes together, because a plot's two axes have to cross each other. When no subchart sets secondaryCatAxis, the secondary category axis is written hidden, as PowerPoint does for a series moved to its secondary axis; catAxes[1] can show it.
Default ​
ts
falseshowValAxisTitle? ​
optionalshowValAxisTitle?:boolean
valAxes? ​
optionalvalAxes?:ChartPropsAxisVal[]
Multi-Chart prop: array of val axes
valAxisCrossBetween? ​
optionalvalAxisCrossBetween?:"between"|"midCat"
Controls where axis values are plotted relative to tick marks
'between'= values plotted between tick marks (default for bar/column/line)'midCat'= values plotted on tick marks (default for scatter/area)- PowerPoint: Format Axis > Axis Options > Axis crosses > On tick marks / Between tick marks
valAxisCrossesAt? ​
optionalvalAxisCrossesAt?:number|"autoZero"
valAxisDisplayUnit? ​
optionalvalAxisDisplayUnit?:"hundreds"|"thousands"|"tenThousands"|"hundredThousands"|"millions"|"tenMillions"|"hundredMillions"|"billions"|"trillions"
valAxisDisplayUnitLabel? ​
optionalvalAxisDisplayUnitLabel?:boolean
valAxisHidden? ​
optionalvalAxisHidden?:boolean
valAxisLabelColor? ​
optionalvalAxisLabelColor?:string
valAxisLabelFontBold? ​
optionalvalAxisLabelFontBold?:boolean
valAxisLabelFontFace? ​
optionalvalAxisLabelFontFace?:string
valAxisLabelFontItalic? ​
optionalvalAxisLabelFontItalic?:boolean
valAxisLabelFontSize? ​
optionalvalAxisLabelFontSize?:number
valAxisLabelFormatCode? ​
optionalvalAxisLabelFormatCode?:string
valAxisLabelPos? ​
optionalvalAxisLabelPos?:"none"|"high"|"low"|"nextTo"
valAxisLabelRotate? ​
optionalvalAxisLabelRotate?:number
valAxisLine? ​
optionalvalAxisLine?:StrokeProps
The value axis line, as a stroke — the same StrokeProps the other two axes and every gridline take. See ChartPropsAxisCat.catAxisLine.
valAxisLineColor? ​
optionalvalAxisLineColor?:string
Value-axis line colour.
Deprecated ​
Use valAxisLine.color.
valAxisLineShow? ​
optionalvalAxisLineShow?:boolean
Draw the value-axis line at all.
Deprecated ​
Use valAxisLine.type: 'none' to suppress it.
Default ​
ts
truevalAxisLineSize? ​
optionalvalAxisLineSize?:number
Value-axis line width in points.
Deprecated ​
Use valAxisLine.width.
valAxisLineStyle? ​
optionalvalAxisLineStyle?:"dash"|"solid"|"dot"
Value-axis line dash.
Deprecated ​
Use valAxisLine.dashType, which takes the full ST_PresetLineDashVal set.
valAxisLogScaleBase? ​
optionalvalAxisLogScaleBase?:number
PowerPoint: Format Axis > Axis Options > Logarithmic scale - Base
- range: 2-1000 (
ST_LogBase); a value outside it clamps with a warning, andNaNthrows
valAxisMajorTickMark? ​
optionalvalAxisMajorTickMark?:"none"|"cross"|"in"|"out"
valAxisMajorUnit? ​
optionalvalAxisMajorUnit?:number
Spacing between major tick marks on the value axis (c:majorUnit, ST_AxisUnit).
- above 0; anything else warns and leaves the element off
- PowerPoint: Format Axis > Axis Options > Units > Major
valAxisMaxVal? ​
optionalvalAxisMaxVal?:number
Axis maximum (c:max). A value that is not a finite number throws.
valAxisMinorTickMark? ​
optionalvalAxisMinorTickMark?:"none"|"cross"|"in"|"out"
valAxisMinorUnit? ​
optionalvalAxisMinorUnit?:number
Spacing between minor tick marks on the value axis (c:minorUnit) — the sibling valAxisMajorUnit had had for years, while the category and series axes carried both.
- PowerPoint: Format Axis > Axis Options > Units > Minor
valAxisMinVal? ​
optionalvalAxisMinVal?:number
Axis minimum (c:min). A value that is not a finite number throws.
valAxisOrientation? ​
optionalvalAxisOrientation?:"maxMin"|"minMax"
valAxisTitle? ​
optionalvalAxisTitle?:string
valAxisTitleColor? ​
optionalvalAxisTitleColor?:string
valAxisTitleFontFace? ​
optionalvalAxisTitleFontFace?:string
valAxisTitleFontSize? ​
optionalvalAxisTitleFontSize?:number
valAxisTitleRotate? ​
optionalvalAxisTitleRotate?:number
valGridLine? ​
optionalvalGridLine?:OptsChartGridLine
valLabelFormatCode? ​
optionalvalLabelFormatCode?:string
Value label format code
- this also directs Data Table formatting
Examples ​
ts
'#%' // round percentts
'0.00%' // shows values as '0.00%'ts
'$0.00' // shows values as '$0.00'