• Display large amounts of information in the most friendly way
  • Flex based OLAP charts and DataGrid, Action Script 3.0
  • Integrate with your exsisting BI tools for effective data analysis
  • XMLA and MDX support for multidimensional data visualization
  • Subtotaling and aggregating numeric data
  • Filtering, sorting and grouping data
  • Alternative to popular BI tools, JPivot, olap4j
  • Works good with Microsoft OLAP and Mondrian

To see documentation, download the component or see it in action visit Pivot Table & Charts site

Latest Blog Posts

Integrate Pivot Table and Charts with PHP MySQL
Monday, November 02, 2009 2:09:46 PM

Roman Petrusha

How to integrate FlexMonster Pivot Table & Charts Component with PHP/MySQL


FlexMonster Pivot Table Component can be easily interated with your PHP site


We will guide you through simple PHP integration sample.


To integrate Pivot Table into your page you should accomplish the following steps:

  1. Copy content of Pivot folder (Pivot component and supported files) to root of your site or sandbox folder.
  2. Insert Pivot component into your .php file – paste code below:

    <script type="text/javascript" src="swfobject.js"></script>

    <div id="flashContent">No Flash player or Javascript disabeled message</div>

    <script type="text/javascript">

      var so = new SWFObject("PivotTable.swf", "flash", "1000", "720", "9", "#FFFFFF");


        so.addParam("allowScriptAccess", "sameDomain");

        so.addParam("menu", "false");

        so.addParam("allowFullScreen", "true");

        so.addVariable("filename", "your_data_script.php");

        so.addVariable("styleSheetName", "original.css");

        so.addVariable("configuratorEnabled", "true");

        so.addVariable("chartsEnabled", "true");

        so.write("flashContent");

        flash.focus();

    </script>
  3. Set path to your data file. To do this change value of filename FlashVar.
    so.addVariable("filename", "your_data_script.php");
  4. Now we are ready to write data source script.

Wrinting data source script

The best data format for Pivot Table Component is CSV. It most compact and can be easily convert to desired data structure. So now we will write simple CSV generator.

Your script should retreive data from database and output CSV file.

  • Firstly we have to get list of columns:

    • connect to database
    • retreive set of columns
    • split resulted dataset
    • write names of columns to csv
    function getColumns() {
      mysql_connect(localhost,$username,$password);

      mysql_select_db($database) or die( "Unable to select database");

      $csv_output = "";

      $sql = "SHOW COLUMNS FROM ".$table;

      $result = mysql_query($sql);

      while ($row = mysql_fetch_assoc($result)) {

        $csv_output .= $row["Field"].",";

      }

      $csv_output = substr($csv_output, 0, -1);

      $csv_output .= "\r\n";

    }

  • Retreve data from database:

    • select data from database
    • parse result of query
    • convert dataset to csv rows
    • write to csv
    function getDataRows() {
      $query="SELECT * FROM ".$table;

      $result = mysql_query($query);

      while($row = mysql_fetch_row($result)){

        for ($i = 0; $i < count($row); $i++) {

          $csv_output .= $row[$i].",";

        }

        $csv_output = substr($csv_output, 0, -1);

        $csv_output .= "\r\n";

      }

    }

  • Send csv response
    header('Content-type: text/plain');

    print $csv_output;

You can download full source code of this sample.


Communicating with Analysis Services from Flash
Monday, March 31, 2008 11:02:29 AM

Roman Petrusha
How to talk to MS Analysis Services from Flash to reach OLAP Cube? It was the first question.

Firstly, you need to know that Microsoft Analysis Services uses SOAP-based XML for Analysis protocol to exchange of data between clients and server. (You may also read more about XMLA on Wikipedia)

So in Flash application
  1. generate XMLA request,
  2. forward it to SOAP wrapper and
  3. send SOAP request to the HTTP pump (http://your_host_name/msmdpump.dll),
  4. HTTP pump forwards the request to the server.

Microsoft Analysis Services
  1. sends the SOAP response back to the HTTP pump,
  2. SOAP parser retrieve data from HTTP pump and
  3. prepare data for our application.

There two types of XMLA request. The Discover method retrieve information about data structure on a server and the Execute method sends requests for retrieving or updating data. We discover data structure and choose desired dimensions for view, retrieve data from server and show in grid.

You can try demo in action - it is connected to the sample OLAP cube in MS Analysis Services. You can configure the dimensions structure and visualize the result.

Change the field layout in a PivotTable
Friday, February 29, 2008 7:23:21 PM

Roman Petrusha
Today we have prepared a new demo of Pivot Table. We want to show you new feature of Pivot visualization. You can organize your own structures of Pivot dimensions and see data from different points of view by selecting.

There are five areas in options view: Filters, Columns, Rows, Values and All Fields. To change data structure drag field from one area and drop to another. When desired dimensions structure is ready - click "Apply Changes" button and see your new visualization of the same data. In this demo you can change only columns and rows. Filter area is still unused and Values show only sum of one dimension - work hours.


Video Demo (40 sec)

Try PIVOT TABLE in Action

Client Side PDF Generation Using Flash Flex AIR
Friday, February 15, 2008 5:29:21 PM

Iryna Koval
Client Side PDF Generation Using Flash, Flex and AIR

As far as I know, it is really complicated and challenging task to generate PDF on the server side. We have recently faced this challenge on the client side. Our products - LiveArt and Pivot Table have to incorporate the PDF generation functionality. We have conducted several researches and I am glad to announce that it is easy (hurray :)) to generate PDF using Flash, Flex and AIR. It has become possible thanks to AlivePDF library. This post helped us to find it.

How powerful client side PDF generation is? Powerful enough to meet our main need at the moment – generate PDF document as the exact copy of graphic and data visualization objects which users get when they use our Flash/Flex products, like LiveArt and Pivot Table. AlivePDF library allows inserting JPEG format images into PDF document. The addImage method uses DisplayObject object (its incoming argument) to take a snapshot of it in JPEG format and insert into the PDF document.

AlivePDF library allows us to easily do the following:
  • Set layout, margins, get sizes;
  • Add and compose pages;
  • Use drawing primitives, manage color models;
  • Set fonts and text properties;
  • Add images in JPEG format;
  • etc.

Of course, there is no limit to perfection. Our dream is to be able to convert Flash vector objects into similar vector objects in PDF. It seems that we need a number of steps undertaken to make it real. But we will strive and will succeed!

Flash Pivot Table with skins and printing
Tuesday, February 12, 2008 8:04:15 PM

Iryna Koval
Pivot Table live demo is now available. You can check it out and play with it to see how clear, easy-to-use, and quick Pivot Table is. It visualizes multidimensional data from various data sources (OLAP, XML, etc.) and provides a set of tools to manage these data.

Today we have released the following features and tools:


*Drill down on dimensions. Each dimension which has subdimensions can be collapsed or expanded. This feature works instantly without any delays!
* Full screen feature for wider view. Imagine your data on 21" (or even bigger) monitor with good screen resolution.
* Printing tool to get the needed data printed.
* Skin selection. There are 3 skins available at the moment. One can easily create new skin within about 10 minutes by simply editing CSS.

Drill down on dimensions


Skins, Full Screen and Printing


Our team keeps on working on Pivot Table. So, new features are coming soon, just sit back and wait for the new release.


See PIVOT TABLE in Action

See all blog posts for PIVOT

Sign in

Username:
Password:
Remember me on this computer
Sign in with: Google or Yahoo or OpenId or or
 Facebook
or Identi.ca or SoftKey

Projects with public access