Parse value axis and category axis from plotArea. Also checks dateAx as category fallback.
( plotArea: SafeXmlNode, ctx: RenderContext )
| 1185 | |
| 1186 | /** Parse value axis and category axis from plotArea. Also checks dateAx as category fallback. */ |
| 1187 | function parseAxes( |
| 1188 | plotArea: SafeXmlNode, |
| 1189 | ctx: RenderContext |
| 1190 | ): { valueAxis: AxisInfo; categoryAxis: AxisInfo } { |
| 1191 | const valAx = plotArea.child('valAx') |
| 1192 | const catAx = plotArea.child('catAx') |
| 1193 | const dateAx = plotArea.child('dateAx') |
| 1194 | return { |
| 1195 | valueAxis: parseAxisNode(valAx, ctx), |
| 1196 | categoryAxis: catAx.exists() ? parseAxisNode(catAx, ctx) : parseAxisNode(dateAx, ctx), |
| 1197 | } |
| 1198 | } |
| 1199 | |
| 1200 | /** |
| 1201 | * Parse scatter/bubble axes: two valAx nodes differentiated by axPos. |
no test coverage detected