GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing docs.cube.dev — npm - Cube Documentation JavaScript SDK
Cube is visualization-agnostic, so you can build any user interface for your
application.
You can directly query Cube using the
JSON query format via the REST (JSON) API
or
WebSockets
and visualize analytical data with tools of your choice. However, it’s much
easier to use the Cube JavaScript client and bindings for popular frameworks
such as React, Angular, and Vue.
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.
Cube JavaScript ClientThe client provides methods to solve common tasks: Abstract from the transport and query data. You can fetch data from Cube Backend or subscribe to real-time updates regardless of the protocol, be it HTTP or WebSockets. Transform data for visualization. You can pivot the result set to display as a chart or as a table, split into series or table columns. Simplify work with complex query types. You can build drill down queries and decompose the results of compare date range queries or data blending queries. Learn more in the documentation for the@cubejs-client/core package.
Example UsageHere are the typical steps to query and visualize analytical data:
Getting StartedYou can install Cube JavaScript Client with npm or Yarn:Data formatThe REST (JSON) API uses JSON to serialize and transfer result sets. Numbers, e.g., values of numeric measures, are represented as strings. By default, JavaScript SDK also returns numbers as strings because an automatic conversion might lead to a precision loss. In JavaScript, only numbers betweenNumber.MAX_SAFE_INTEGER and Number.MIN_SAFE_INTEGER
can be safely parsed from strings. However, there’s no guarantee that a measure
value or a column value from a supported data source would
not be outside of this range.
If you’d like Cube to convert strings to numbers anyway, you can use the
castNumerics option for that:
|
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |