// For complete examples and data files, please go to https://github.com/aspose-cells-cloud/aspose-cells-cloud-node/
const { CellsApi, CellsCharts_GetChartValueAxisRequest  } = require("asposecellscloud");
const clientId = process.env.CellsCloudClientId;
const clientSecret = process.env.CellsCloudClientSecret;
const ApiURL = process.env.CellsCloudApiBaseUrl;
const cellsApi = new CellsApi(clientId, clientSecret,"v3.0",ApiURL);
const req = new CellsCharts_GetChartValueAxisRequest({
  name:"Book1.xlsx",
  sheetName : "Sheet4",
  chartIndex: 0,
  folder: "Temp"
});

cellsApi.cellsChartsGetChartSecondValueAxis(req)
  .then((result) => {
    console.log("successfully")
    console.log(result.response);
  })
  .catch((error) => {
    console.error('Unhandled Promise Rejection:', error);
});