Search
Overview

Introduction

MindFusion.Dashboards is a JavaScript data visualization and dashboard management library designed for building modern interactive business intelligence portals, executive analytics suites, and operational dashboards.

The library consolidates the complete MindFusion JavaScript component family - including Charting, Gauges, DataViews, and Scheduling - into an integrated layout engine with built-in data binding, design-time interactivity, serialization, and CSS custom property theming.

Architecture

The architecture of MindFusion.Dashboards is organized around a Model-View-Controller pattern comprising three central classes:

DashboardView (View / UI Wrapper)
The DashboardView class represents the top-level HTML DOM element host. It manages user interactions, theme synchronization, keyboard navigation, and the optional design-time sidebars (such as the DashboardPalette and the PropertyGrid).

Dashboard (Data Model)
The Dashboard class represents the underlying logical data model. It owns the registered widgets collection, maintains the DataSourceRegistry, and manages serialization. Multiple views can reference a single Dashboard model.

DashboardCanvas (Rendering Surface)
The DashboardCanvas class handles layout calculations, container placement, drawing passes, and coordinate mapping for all hosted widgets.

Creating a Dashboard

To instantiate a dashboard, attach a DashboardView or DashboardCanvas instance to an existing DOM container:

HTML  Copy Code

<div id="dashboard" style="width: 100%; height: 100vh;"></div>

JavaScript  Copy Code

var dashView = MindFusion.Dashboards.DashboardView.create(document.getElementById("dashboard"));
var dashboard = dashView.dashboard;

Operational Modes

The DashboardView operates in one of two modes defined by the DashboardMode enumeration:

DashboardMode.View:
The standard runtime mode. Widgets are rendered in their assigned grid or diagram slots. The designer sidebars (widget palette and property grid) are hidden, and end-user interactions are delegated directly to the hosted widgets (such as chart drill-downs or grid row selection).

DashboardMode.Edit:
The interactive design-time mode. In this mode, the DashboardView displays a docked DashboardPalette on the left and a PropertyGrid on the right. Users can drag and drop new widgets into grid cells, resize slots, select widgets to edit their properties live, and delete widgets using the Delete or Backspace key.

To switch modes programmatically:

JavaScript  Copy Code

dashView.mode = MindFusion.Dashboards.DashboardMode.Edit;

Key Classes and Enumerations