ActiveUI

ActiveUI

  • User Guide
  • Developer Documentation

›Charts Gallery

Charts Gallery

  • Bubble Chart
  • Clustered Columns Chart
  • Side-by-side Bar Charts - Column mapping
  • Daily Change in Labels
  • Epoch Chart
  • Highlighted Points
  • Regression Line
  • Side-by-side - Rows mapping
  • Scatter Plot with Gradient color of Points
  • Sorted Bars Chart
  • Stacked Bars

Regression Line

Example

Illustration

Summary of settings

  • Type of chart: Scatter
  • Mapping of "y" attribute: Profit
  • Mapping of "x" attribute: Size
  • Cardinality: City
  • Overlays: polynomial 2 order regression line

Step-by-step instruction

  1. Add new Chart Widget

  2. Select "Scatter"

  3. If there are multiple cubes connected to your application, you must select the cube you want for the chart.

  4. To map the "x" attribute, select a measure or a formula for horizontal axes

  5. Map the "y" attribute the same way as the "x" attribute.

  6. The chart displays with one point, the total for measure selected on "x" axes plotted against total for measure selected on "y" axes.

  7. To select Members you would like to plot, for example, members of the dimension City, click Options in the Legend area of the chart:

    Illustration

    In the Options popup you can change various attributes, in this case map Cardinality to City:

    Illustration

    Now, six points display on the scatter plot, since there are six members in the City dimension with Size and Profit linked to them:

    Illustration

    Use filters to limit the scope of data in the view Filters

  8. Now go back to Options (in the Legend) and switch to the Overlays tab to add a new overlay, in this case, a regression line:

    Illustration

    On mouse hover, you can see the estimated parameters:

    Illustration

The chart is complete:

Illustration

Back to Chart Gallery

Appendix

The appendix contains code snippets for advanced users.

MDX:

SELECT
  {
    [Measures].[Profit],
    [Measures].[Size]
  } ON COLUMNS,
  NON EMPTY [Geography].[City].[City].Members ON ROWS
  FROM [EquityDerivativesCube]

JSON:

{
  "configurations": [
    {
      "handlers": {
        /* ... */
      },
      "type": "scatter",
      "mapping": {
        "x": {
          "from": "[Measures].[Size]"
        },
        "y": {
          "from": "[Measures].[Profit]"
        },
        "cardinality": {
          "from": ["[Geography].[City].[City]"]
        }
      },
      "overlays": [
        {
          "key": "regression",
          "args": {
            "type": "polynomial"
          }
        }
      ]
    }
  ]
}
← Highlighted PointsSide-by-side - Rows mapping →
  • Example
  • Summary of settings
  • Step-by-step instruction
  • Appendix
Copyright © 2021 ActiveViam