Example Embedded View

This is an example CubesView inserted in this page. The current version loads a serialized view which uses the cubes-examples "webshop" project data (https://github.com/Stiivi/cubes-examples/).

Initialization of the view uses the following code. Note the following points:

  • CubesViewer system needs to be initialized only once (cubesviewer.init).
  • Views can only be added after the model has been loaded. Use the 'cubesviewerModelLoaded' event as shown below.
  • This sample page contains code that asks for the Cubes server to use.

Scripting

Note that the view above can be scripted using CubesViewer View API.

For example, click here to switch to Series Table mode.

Code

Check the source code of this page to see how this CubesViewer view is initialized.

More information can be found at Embedding CubesViewer static views.