Cube is visualization-agnostic, so you can build any user interface for your application.
The client has methods to communicate with Cube API Gateway and retrieve and process data. It is designed to work with existing charting libraries including Chart.js, D3.js, and more.
The client provides methods to solve common tasks:
Learn more in the documentation for
Here are the typical steps to query and visualize analytical data:
- Import the
@cubejs-client/corepackage. This package provides all the necessary methods.
- Transform data for visualization. The result set has convenient methods,
chartPivot, to prepare data for charting.
- Visualize the data. Use tools of your choice to draw charts and create visualizations.
# npm npm install --save @cubejs-client/core # Yarn yarn add @cubejs-client/core