13

Does anybody know any fine open source cube browser?

Ideally, it would be something built with plain javascript.

Does it even exists?

I'm planing to use it with classic asp agains a SQL database.

juliomalegria
  • 24,229
  • 14
  • 73
  • 89
opensas
  • 60,462
  • 79
  • 252
  • 386

9 Answers9

8

You can look at Pentaho Mondrian (including JPivot), or at Eclipse BIRT

With these, you get some kind of flexible reporting tools on the most popular databases, and it includes functionality to browse OLAP cubes too.

Alex. S.
  • 143,260
  • 19
  • 55
  • 62
  • Hello I am currently developing a mobile app using react native and firebase. I was told to use some data cube to precompute the queries but I have no idea what is the data cube actually. Is it some sort of multi dimensional array which help you to sort the data? Can I use the suggested links to achieve what I wanted to do? – QWERTY Jul 29 '17 at 11:14
6

If you're looking for something lightweight, give CubesViewer a try:

It's mostly Javascript, backed up by Cubes OLAP server.

(Disclaimer, I'm the main developer :-))

jjmontes
  • 24,679
  • 4
  • 39
  • 51
  • Hey I am currently developing a mobile app using react native and firebase. I was told to precompute the queries using data cube but I have no idea what is it actually or where could I implement it. Do you mind to enlighten me on it? – QWERTY Jul 29 '17 at 11:17
5

Check out js-hypercube for a javascript-only OLAP library. The API is pretty simple. You can deserialize json into a cube object, query for the dimension names, slice the cube, and sum the facts. From the documentation:

var data = [{"time":1331773202,"facts":{"name":"Super Mario Bros. 2","platform":"Nintendo","staring":"Mario"},"measures":{"rentals":73,"sales":9,"revenue":359.91}}, {"time":1331841602,"facts":{"name":"Metroid","platform":"Nintendo","staring":"Samus"},"measures":{"rentals":43,"sales":6,"revenue":239.94}}]; // ... etc
var cube = ps.Cube.deserialize(data, ['rentals', 'sales', 'revenue'])
console.info('Total Rentals', cube.sum().rentals);
console.info('Revenue at 6pm for Super Nintendo games', '$' + cube.slice({hour: 18, platform: 'Super Nintendo'}).sum(2).revenue);
console.info('Avg rentals per hour for games staring Mario', cube.slice({staring: 'Mario'}).avg(24, 2).rentals + ' units');

Here's an example I built using it along with backbone.js: http://jsbin.com/rejekij/edit?html,js,output

xn.
  • 15,776
  • 2
  • 30
  • 34
  • Hey I tried to run the jsbin example but there is nothing shown at the output. Is it still available for now? – QWERTY Jul 30 '17 at 02:22
  • @DeniseTan, I've fixed the jsbin – xn. Jul 31 '17 at 15:15
  • Thanks so much! But allow me to ask for a few questions as I am trying to understand what is the data cube actually. From the library, is the results precomputed or compute on the fly? Also, where did you get all the data from? Let's say I am fetching json from Firebase, is it still doable? Then, let's say I have raw json now, how do I actually form a cube? – QWERTY Aug 01 '17 at 03:00
2

Also take a look at PAT, which is pentaho's replacement for JPivot. (Well actually being devloped by the community - not pentaho themselves!)

JPivot is a bit clunky although does the job. PAT is very new, so can't vouch for it's stability and features!

http://code.google.com/p/pentahoanalysistool/

Codek
  • 5,114
  • 3
  • 24
  • 38
1

You can look at pivot table component at flexmonster.com. It speak to olap cubes via xmla and unlike olapdatagrid does't need additional data preparation.

1

WebPivotTable is a pure javascript pivot table and pivot chart component which can be used to pivot csv file and all kinds of OLAP cubes, like Mondrian, SSAS, iccube. Here is demo and documents.

Sean Zhao
  • 1,506
  • 12
  • 12
1

Adobe Flex includes a control you may be able use. You can use javascript as the language (Flex supports Actionscript natively, and javascript is a subset of Actionscrpt, and can be used as well.)

Here is a web page about the OLAPDataGrid control.

And here is another link.

Flex apps can be hosted in browsers with Flash installed.

dkretz
  • 37,399
  • 13
  • 80
  • 138
0

Ranet Olap component library has open version. Although it doesn't meet your requirement completely (require Silverlight), you should check it out.

Tun
  • 1,345
  • 13
  • 34
0

if you can, find the sql server 2000 Resource Kit, inside there is a project that is a javascript cube browser. i am not sure of the licensing of this, but it is located at TOOLSANDSAMPLES\ANALYSISSERVICESTHINWEBCLIENT inside the Resource Kit. This resource kit should be available in msdn subscription downloads.

jasonmw
  • 1,138
  • 9
  • 20