All Products
Search
Document Center

Quick BI:Development workflow

Last Updated:Jun 23, 2026

Quick BI supports two modes for developing custom visual components. Online editing lets you write code directly in the Quick BI console without a local development environment, ideal for simple visualizations. Professional mode uses a local front-end toolchain (such as React, Vue, or TypeScript) to develop, bundle, and upload visualization code, suited for more complex needs. The following walkthrough uses a custom component as an example.

Prerequisites

Register a custom visual component on the Quick BI open platform before you start writing code. For instructions, see Register.

Step 1: Develop and debug

Choose a development mode based on your requirements and technical preferences.

Note

You cannot develop custom pages in online editing mode.

Online editing

After you register a visual component for online editing, develop and debug it in the page editor within the Quick BI console. The following example uses a custom component.

  1. Log in to the custom visualization management page on the Quick BI open platform. On the Component tab, find your target component and click the Debug button on its card.image

  2. In the Debug Component dialog box, configure the following parameters:image

    Parameter

    Description

    Component name

    Defaults to the name you set during component registration.

    Debugging environment

    Select the debugging environment for the component.

    • Online development environment: Debugs the component source code using online editing. Other configurations are based on the staging environment settings.

    • Staging environment: Debugs the component code that has been saved but not yet officially published. Other configurations are based on the staging settings.

    We recommend selecting Online development environment for component development. The available debugging environments depend on the component's run state. For details, see Run states.

    Debugging scope

    Select the type of host page for debugging the component.

    The available options depend on the Applicable Scope you configured when registering the component. For details, see Register.

    Workspace

    Select the workspace for debugging the component.

    Dashboard/Data screen

    Select a specific resource for debugging the component.

    If you set Debugging scope to Dashboard, you can select a specific dashboard from the drop-down list. If you set Debugging scope to Data Screen, you can select a specific data screen from the drop-down list.

    If you do not specify a dashboard or data screen, the system creates a new one for debugging in the selected workspace by default.

  3. After you configure the debugging information, click Go to Debug. You will be redirected to the host page, and the code editor panel will open automatically. Modify the code on the page and click Run to preview the results. When you finish, click Save to save your changes.image

Professional mode

In professional mode, use the create-qbi-app scaffolding tool to create a Quick BI custom visualization project. Follow these steps:

  1. Set up the environment

    Before you start, install and configure the following software:

    • Node.js

      Download and install Node.js from the official Node.js website. Version 22 or later is recommended. After installation, run the following command to verify.

      node -v
    • Set up a package mirror

      The default npm registry download speed may be slow. We recommend using the npmmirror mirror.

      # npm 
      npm config set registry https://registry.npmmirror.com/
      
      # pnpm (recommended)
      npm install -g pnpm
      pnpm config set registry https://registry.npmmirror.com/
      
      # yarn
      npm i -g yarn
      yarn config set registry https://registry.npmmirror.com/
  2. Create a template project

    In your terminal or PowerShell, navigate to the target folder and run npx create-qbi-app@latest <project-name> -t <template-type> to create a template project. For example:

    # npm
    npx create-qbi-app@latest my-chart -t chart-react-ts
    
    # pnpm (recommended)
    pnpm create qbi-app@latest my-chart -t chart-react-ts
    
    # yarn
    yarn create qbi-app@latest my-chart -t chart-react-ts

    In this command, my-chart is the project name and -t specifies the template type. Available templates:

    Template type

    Framework

    Description

    chart-react-ts

    React + TypeScript

    Custom component

    chart-vue-ts

    Vue + TypeScript

    chart-vanilla-ts

    No framework + TypeScript

    menu-chart-react-ts

    React + TypeScript

    Custom menu for chart cards

    menu-dashboard-react-ts

    React + TypeScript

    Custom menu for dashboards

    menu-workbook-react-ts

    React + TypeScript

    Custom menu for workbooks

    page-react-ts

    React + TypeScript

    Custom page

    page-vue-ts

    Vue + TypeScript

    page-vanilla-ts

    No framework + TypeScript

    If you omit the -t parameter, you will be prompted to select a template type.imageThe generated template project has the following directory structure:

    ├── dist                 # Build output directory
    ├── node_modules         # Project dependencies
    ├── public               # Static assets for local debugging
    │    └──index.html
    ├── src                  # Source code directory
    │    ├──Component.tsx    # Component implementation
    │    ├──index.scss       # Style file
    │    ├──index.ts         # Component lifecycle entry point, generally no need to modify
    |    └──meta.ts          # Metadata
    ├── qbi.config.ts        # Build configuration
    ├── package.json         # Dependency management
    ├── README.md            # Project README file
    └── tsconfig.json        # TypeScript configuration file

    You can run the following commands as needed:

    • npm run start - Starts the local development server.

    • npm run build  - Builds the project.

    • npm run bundle - Bundles the build output into a Quick BI development package.

  3. Start the development server

    After creating the project, navigate to its directory, install the dependencies, and start the development server. Keep the local server running throughout the development process.

    # npm
    cd my-chart && npm i && npm run start
    
    # pnpm
    cd my-chart && pnpm i && pnpm run start
    
    # yarn
    cd my-chart && yarn && yarn run start

    The default development port is 8001. You can change the port in the qbi.config.ts file.

    import { defineConfig } from '@quickbi/qbi-dev-tools';
    
    export default defineConfig({
      devServer: {
        port: 8001,
        host: '127.0.0.1',
        server: {
          type: 'https',
        },
      },
    });
    Note
    • If you change the port, you must also update it on the custom visualization management page. The following image shows an example for a custom component:image

    • When you start the development server for the first time, you might need to proceed past a security warning, as shown in the following image.image

      After the server starts successfully, the following page opens automatically:image

  4. Debug in the host page

    The debugging process is similar for all custom visualization types. The following example uses a custom component.

    1. Log in to the custom visualization management page on the Quick BI open platform. On the Component tab, find the component you want to debug and click the Debug button on its card.

      image

    2. In the Debug Component dialog box, configure the following parameters:image

      Parameter

      Description

      Component name

      Defaults to the name you set during component registration.

      Debugging environment

      Select the debugging environment for the component.

      In this mode, component resources are loaded from your local server, while other configurations are based on the staging environment settings.

      For more information about component states and supported debugging environments, see Run states.

      Debugging scope

      Select the type of host page for debugging the component.

      The available options depend on the Applicable Scope you configured when registering the component. For details, see Register.

      Workspace

      Select the workspace for debugging the component.

      Dashboard/Data screen

      Select a specific resource for debugging the component.

      If you set Debugging scope to Dashboard, you can select a specific dashboard from the drop-down list. If you set Debugging scope to Data Screen, you can select a specific data screen from the drop-down list.

      If you do not specify a dashboard or data screen, the system creates a new one for debugging in the selected workspace by default.

    3. After you finish configuring the parameters, click Go to Debug. You will be redirected to the host page, which now proxies your local development server. After you modify your local code, refresh the host page to view the changes.

      image

  5. Bundle

    After development is complete, run the following command to generate a development package, such as my-component-1.0.0.zip.

    npm run build && npm run bundle
  6. Upload the development package

    Follow these steps to upload the development package for a custom component:

    1. On the custom visualization management page in the Quick BI open platform, find the target component and click the image icon on its card.image

    2. In the Update Component dialog box, click Choose File to upload the compressed file.image

    3. Click OK to upload the development package. After the upload is complete, the component enters the pending release state.

Step 2: Preview

Preview the component in a production-like environment before publishing. The following example uses a custom component.

  1. Log in to the custom visualization management page on the Quick BI open platform. On the Component tab, find the component you want to preview and click the Debug button on its card.image

  2. In the Debug Component dialog box, select Staging Environment and configure other parameters such as the debugging scope as needed.image

  3. Click Go to Debug. You will be redirected to the specified host page, where you can preview the component's behavior.image

Step 3: Publish

After you confirm the visualization works correctly, publish it. The following example uses a custom component:

  1. Log in to the custom visualization management page on the Quick BI open platform. On the Component tab, find the component you want to publish and click the Publish button on its card.

    Note

    In professional mode, you can only publish after uploading a development package. Otherwise, the Publish button is unavailable.

    image

  2. In the Component Source Code dialog box, review the component information. If everything is correct, click Confirm Publish.image

Step 4: Use

Where to find the published component depends on its type:

  • Custom component: Add your custom component from the Add Chart list on the dashboard and data screen editing pages.image

  • Custom menu: Select your custom menu from the menus on chart cards, dashboards, or workbooks.image

  • Custom page: Integrate your custom page into the PC enterprise portal customization.image