Skip to content
A web component to embed Saiku Analytics using Polymer
HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
demo
.editorconfig
.gitignore
CONTRIBUTING.md
LICENSE
README.md
bower.json
saiku-embed.html

README.md

<saiku-embed>

A web component to embed Saiku Analytics using Polymer.

Published on webcomponents.org

Install

Install the component using Bower:

$ bower install saiku-embed --save

Or download as ZIP.

Usage

  1. Import Web Components' polyfill:

    <script src="./bower_components/webcomponentsjs/webcomponents-lite.js"></script>
  2. Import Element:

    <link rel="import" href="./bower_components/saiku-embed/saiku-embed.html">
  3. Start using it!

    <saiku-embed url="http://localhost:8080/" username="admin" password="admin"></saiku-embed>

Here's an example of basic usage:

<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes">

    <title>saiku-embed demo</title>

    <!-- Polyfill Web Components support for older browsers -->
    <script src="./bower_components/webcomponentsjs/webcomponents-lite.js"></script>

    <!-- Import element -->
    <link rel="import" href="./bower_components/saiku-embed/saiku-embed.html">
  </head>
  <body>

    <!-- Use element -->
    <saiku-embed url="http://localhost:8080/" username="admin" password="admin"></saiku-embed>

  </body>
</html>

Options

Attribute Options Default Description
url String Saiku's URL (Required).
username String User name to access Saiku.
password String Password to access Saiku.
width String 800 The width attribute specifies the width of an <saiku-embed>, in pixels.
height String 600 The height attribute specifies the height of an <saiku-embed>, in pixels.
schema String Schema name. e.g: FoodMart
cube String Cube name. e.g: Sales
default_mdx_filter String Extend default_mdx_filter to add level to filter axis.
default_mdx_filter_rows String Extend default_mdx_filter_rows to add level to rows axis.
default_mdx_filter_columns String Extend default_mdx_filter_columns to add level to columns axis.
lang cn, cs, de, en, es, fi, fr, hr, hu, it, ja, ko, lt, nb, nl, pl, pt, ru Specifies the language to be used.
mode view, edit, table, chart, map Specifies the mode to use when opening a Saiku file.
path_file_saiku String The path of your Saiku file. e.g: /homes/home:admin/example.saiku
splash Boolean true Enable or disable splash screen.
plugin Boolean false Work in plugin mode.
hide_workspace_icons Boolean false Hide some icons on Saiku Toolbar.
show_help Boolean false Show help using intro.js.

Development

In order to run it locally you'll need to fetch some dependencies.

  1. Install Bower & Polymer CLI:

    $ [sudo] npm install -g bower polymer-cli
  2. Install local dependencies:

    $ bower install
  3. To test the project, start the development server and open http://localhost:8081.

    $ polymer serve

Browser Support

Chrome Firefox Edge Safari Opera
Chrome or Chromium version 49 or later ✔ Firefox 51 or later ✔ Edge 15.15063 or later ✔ Safari or Mobile Safari 10 or later ✔ Opera 36 or later ✔

Contributing

If you want to help, please read the Contributing guide.

History

For detailed changelog, see Releases.

License

Apache License Version 2 © Meteorite BI

You can’t perform that action at this time.