yarn start
https://angular-dashboard-demo.cube.dev/#/table
https://github.com/cube-js/cube.js/tree/master/examples/angular-dashboard-with-material-ui
cube-js/cube#5446 cube-js/cube#5656 cube-js/cube#3118 https://github.com/cube-js/cube.js/blob/master/DEPRECATION.md
https://cube.dev/docs/@cubejs-client-ngx
this.cubejs.watch(this.query).subscribe(
(resultSet) => {
console.log(resultSet.chartPivot()[0].x);
console.log(resultSet.seriesNames()[0]);
const cpivot = resultSet.chartPivot();
const pivot = resultSet.pivot();
const series = resultSet.series();
const categories = resultSet.categories();
const tableColumns = resultSet.tableColumns();
console.log('> type of data', {
resultSet,
cpivot,
pivot,
series,
categories,
tableColumns
});
},
(err) => console.log('HTTP Error', err)
);
we can find more options here , Examples aren't up to date (cube-js/cube#3118) https://github.com/cube-js/cube.js/blob/master/packages/cubejs-client-core/src/ResultSet.js#L461