Get Free Trial
  1. API reference
Connecting to Data Source
Configuring the component
  • Documentation for older versions
  • Table of contents

    Migrating from WebDataRocks to Flexmonster

    This guide will walk you through the process of transitioning from WebDataRocks to Flexmonster. If you are using WebDataRocks with Angular, see how to migrate from WebDataRocks in Angular.

    Let’s break the migration into small steps:

    1. Installation
    2. Creating a pivot instance
    3. Setting a slice
    4. Data sources

    Installation

    All the possible ways of getting Flexmonster are described in the Get Flexmonster guide.

    Creating a pivot instance

    Next, replace the WebDataRocks initialization API call with Flexmonster’s:

    var pivot = new Flexmonster({ 
    container: "pivotContainer",
    report: {
    dataSource: {
    filename: "data.csv"
    }
    }
    });

    Notice the differences between the init API calls of Flexmonster and WebDataRocks.

    Flexmonster has an additional componentFolder parameter, which should point to the flexmonster/ folder. Read more about Flexmonster initialization parameters.

    Setting a slice

    In WebDataRocks, we specified which hierarchies to put into the rows, columns, and measures by defining a SliceObject. The structure of the slice in Flexmonster is no different, except that measures should be placed in square brackets:

    "slice": {
    "rows": [
    { "uniqueName": "Customer" }
    ],
    "columns": [
    { "uniqueName": "Month" },
    { "uniqueName": "[Measures]" }
    ],
    "measures": [
    {
    "uniqueName": "Revenue",
    "aggregation": "sum"
    }
    ]
    }

    Data sources

    Flexmonster allows you to connect to many more types of data sources. On top of CSV and JSON, you can analyze data from relational or NoSQL databases, MongoDB, Elasticsearch, SSAS, and custom data source API. To learn how to connect to these sources, refer to the following guides: