Hi,
if you want get two axes title from one chart, you should try this:
const sheet = context.workbook.worksheets.getActiveWorksheet();
let chart = sheet.charts.getItemAt(0);
chart.load();
await context.sync();
chart.axes.categoryAxis.load("title");
chart.axes.valueAxis.load("title");
await context.sync();
console.log(chart.axes.categoryAxis.title.text);
console.log(chart.axes.valueAxis.title.text);
Gist for reference: https://gist.github.com/e51def0b25c3cfbbcfaf5c42df18ed2a