🏆
Leading Research Platform
Serving Researchers Since 2012

Dashboard Generator for Data Visualization with Electricity Consumption as a Use Case

DOI : 10.5281/zenodo.24682471
Download Full-Text PDF Cite this Publication

Text Only Version

Dashboard Generator for Data Visualization with Electricity Consumption as a Use Case

Dr Shameem Akther (Guide) | Student 1: Azfirin Ara Student 2: Bushra Anjum | Student 3: Humera Fatima Student 4: Misba Tahreem

Department of Computer Science and Engineering, Khaja Banda Nawaz University, Kalaburagi, karnataka, India

Abstract: Creating interactive dashboards from structured data often requires users to understand data schemas, chart configuration, and specialized visualization tools. This paper presents a general-purpose dashboard generator based on conversational artificial intelligence that translates natural-language requests into structured dashboard configurations and renders them as interactive web visualizations. The proposed system is designed to work with different forms of structured data rather than a single application domain. It uses Google Gemini to classify user intent and produce JSON configuration objects, while a React-based application interprets those objects and renders charts and key performance indicators. Its architecture supports CSV, Excel, and JSON inputs, semantic column remapping, client-side metric aggregation, and drag-and-drop card arrangement. The system is demonstrated through an electricity-consumption case study using a 2,038-record workbook and a separate consumer electricity-bill CSV containing 9,999 records. The electricity domain is used as an illustrative example of the framework's workflow, not as a restriction on the types of structured data it can process. The paper describes the architecture, implementation, case-study analysis, reported performance observations, and current limitations of the prototype.

Keywords: Conversational artificial intelligence, natural-language interface, dashboard generation, heterogeneous data, data visualization, large language models, React, Gemini.

  1. INTRODUCTION

    Data visualization is widely used to communicate patterns in operational and scientific datasets. In business intelligence (BI), dashboards combine charts and key performance indicators (KPIs) to support monitoring and decision-making. However, building a dashboard commonly involves selecting fields, defining aggregations, configuring visual encodings, and arranging components. These tasks can create a barrier for users who understand their data questions but do not have experience with query languages or visualization software.

    Large language models (LLMs) provide an alternative interaction method: users can express an analytical request in natural language, and a model can translate that request into a machine-readable specification. Systems such as Chat2VIS and LIDA demonstrate the potential of LLM- supported visualization workflows [3], [4]. The proposed system applies this approach to an interactive, browser-based dashboard generator intended for different structured-data domains. Electricity consumption is used in this paper as one demonstration domain to illustrate the framework's operation.

    The central design decision in the proposed system is to separate interpretation from rendering. Gemini interprets the user request and returns a structured JSON dashboard configuration. The applicationnot the language model validates and interprets that configuration, calculates KPI values from the active dataset, and renders charts using React and Recharts. This separation reduces dependence on generated executable code and provides a defined interface between the AI layer and the visualization layer.

    The main contributions described in this paper are: (1) a five-layer architecture combining conversational interaction, state orchestration, AI interpretation, data ingestion, and visualization; (2) a four-mode intent- routing mechanism that updates selected dashboard state; (3) a two-stage

    workflow for dashboard design and subsequent data integration, including semantic column remapping; and (4) a prototype demonstration and performance observations using household electricity and consumer electricity-bill datasets as an illustrative application.

  2. RELATED WORK

    Research on data analytics and visualization spans domains such as business operations, scientific research, public services, and energy management. In energy applications, reviews by Biswas et al. [6] and Wang et al. [7] describe AI methods used in smart energy systems, while SmartEle demonstrates interactive electricity-consumption visualization in a university-campus context [13]. These works provide relevant background for the electricity case study in this paper. However, the proposed system is not designed exclusively for energy data; its central focus is a conversational workflow for generating and modifying dashboards from different structured datasets.

    Traditional BI platforms provide mature data modeling and visualization facilities, but dashboard construction often requires users to understand the platforms data model and interaction conventions [1], [2]. Developer-oriented frameworks such as Streamlit and Dash provide flexibility but generally require programming to build and modify applications [17], [18].

    In natural-language-to-visualization research, Chat2VIS uses LLMs to translate free-form requests into visualization code [3]. LIDA organizes automatic visualization generation into modules for data summarization, goal exploration, visualization generation, and infographic creation [4]. NOVAID explores natural-language generation of operational dashboard widgets [14]. The proposed system differs in its implementation emphasis: the model returns a constrained dashboard configuration, and a client-side rendering engine performs visualization and metric calculation. This design keeps the model output separate from executable rendering logic.

  3. SYSTEM ARCHITECTURE

    The proposed system is organized into five cooperating layers. The Presentation Layer provides the chat interface and dashboard canvas. The State Orchestration Layer maintains messages, dashboard configuration, uploaded records, and interaction status. The AI Intelligence Layer communicates with Gemini and produces structured configuration updates. The Data Ingestion Layer parses uploaded files and aligns their columns with dashboard fields. The Visualization Layer converts configuration objects into charts and KPI cards.

    A user begins by entering a natural-language request. The request and relevant context are sent to the AI layer. The returned JSON configuration specifies dashboard metadata, visual theme, KPI definitions, chart types, axis keys, and sample data. The state layer stores the configuration, after which React components render the dashboard. When a dataset is uploaded, the ingestion layer converts its contents into an array of row objects and makes the records available to the visualization components.

    The architecture separates the initial design stage from the data- integration stage. During design, sample records allow the user to preview and refine the dashboard. During integration, uploaded records replace the sample data while the established visual structure can be

    retained. The system supports CSV, Excel, and JSON input formats, as described in the project implementation report.

    Presentation Layer: Built with React 19.2, this layer provides the conversational interface and dashboard canvas. ChatSidebar.jsx handles user messages and suggested prompts, while DashboardCanvas.jsx presents the responsive dashboard and its chart and statistic cards.

    State Orchestration Layer: DashboardContext.jsx maintains the applications shared state, including chat messages, dashboard configuration, uploaded records, and AI or upload status. Its action methods coordinate message submission, data uploads, and targeted updates to the relevant dashboard state.

    AI Intelligence Layer: The AI service communicates with Google Gemini through the @google/genai SDK. It applies structured JSON output, classifies follow-up requests into supported intent modes, and generates dashboard configurations, visual updates, chart-layout changes, data updates, and semantic column mappings.

    Data Ingestion Layer: This layer accepts CSV, Excel, and JSON files. PapaParse processes CSV files in a background Web Worker, SheetJS reads Excel workbooks, and the browser parses JSON. The resulting records are aligned with dashboard fields through the semantic column- remapping service.

    Visualization Layer: DynamicChart.jsx converts chart specifications into interactive Recharts line, bar, area, and pie charts. StatCard.jsx calculates KPI values from the active records, while DashboardGrid.jsx arranges chart and statistic cards and supports drag-and-drop reordering with @dnd-kit.

    Fig. 1. Five-layer system architecture of the proposed dashboard generator.

  4. INTENT-BASED DASHBOARD UPDATES

    A key feature is the classification of follow-up prompts into four operational modes: ui_only, layout_only, data_only, and full. The classifier uses Gemini with a temperature setting of 0.0 and returns one of the supported labels. A full request creates a complete configuration; other modes invoke specialized generators and merge only the relevant configuration slice.

    TABLE I. INTENT CLASSIFICATION AND STATE UPDATES

    Mode

    Typical request

    Updated state

    Preserved state

    ui_only

    Change theme or palette

    UI properties

    Charts, statistics, data

    layout_onl y

    Add or modify a chart or KPI

    Charts and statistics

    Theme and data

    data_only

    Regenerate or change data values

    Sample data

    Layout and theme

    full

    Create a new dashboard

    Entire configuration

    No prior slice retained

    This approach is intended to avoid regenerating unaffected parts of the dashboard. For example, a theme change should update visual properties without replacing chart definitions or uploaded records. The implementation report describes specialized generators for each mode and state-merge functions that preserve unrelated configuration fields.

  5. DATA INGESTION AND VISUALIZATION

    The ingestion layer supports CSV, Excel, and JSON files. CSV parsing is implemented with PapaParse in a browser Web Worker, allowing parsing to occur outside the main UI thread. Excel workbooks are read using SheetJS, while JSON data is parsed in the browser. The parsed files are normalized into JavaScript arrays of objects whose keys correspond to the source column headers.

    To connect uploaded data to an existing dashboard, the system extracts active chart and KPI keys and sends them with the uploaded headers to a semantic remapping function. Gemini proposes mappings between the dashboards expected fields and the available dataset columns. The application then updates chart xKey and dataKey values and KPI targetKey values where mappings are returned. The project report describes a temperature setting of 0.1 for this remapping request.

    The visualization layer maps chart specifications to Recharts components, including line, bar, area, and pie charts. KPI cards use client-side array reductions to calculate sum, average, maximum, minimum, and count values. The active uploaded dataset is used in preference to sample data; when no active dataset is available, sample data supports the design preview. The dashboard grid uses @dnd-kit to allow users to reorder statistic and chart cards.

  6. IMPLEMENTATION

    The prototype is implemented as a React single-page application and uses Vite as its development and build toolchain. The AI service communicates with Google Gemini through the @google/genai SDK and requests JSON output constrained by a dashboard configuration schema. Recharts provides interactive SVG chart components, PapaParse and SheetJS handle file parsing, and @dnd-kit provides sortable interactions. The project report identifies the implementation versions as React 19.2, Vite 7.3.1, @google/genai 1.43.0, Recharts 3.7.0, PapaParse 5.5, and

    SheetJS 0.18.5.

    The configuration-driven design is central to the implementation. The model is responsible for interpreting the users request and describing the dashboard. The application is responsible for applying the configuration, resolving data keys, computing KPI values, and rendering the visual components. This separation also makes the dashboard state inspectable and allows targeted updates to be merged without replacing the complete state.

  7. ILLUSTRATIVE CASE STUDY: ELECTRICITY DATA

    To demonstrate the framework with a concrete application, the project uses two electricity-related datasets. The household workbook, named Electricity_excel-sheet.xlsx in the supplied materials, was prepared by consolidating and refining real dataset material using Excel sheets, as clarified by the project team. It contains 2,038 daily records and 54 columns, including the date field and 53 additional attributes. Its recorded dates span 1 January 2021 to 31 July 2026. The separate electricity_bill_dataset.csv supplied with the project contains 9,999 records and 12 columns, including appliance indicators, month, city, company, monthly usage hours, tariff rate, and electricity bill. These files are demonstration inputs; the framework's supported CSV, Excel, and JSON ingestion workflow is not limited to electricity-related data.

    For this case study, the household workbook contains appliance-level daily consumption fields, temperature and season attributes, and billing- related columns. The project report presents descriptive statistics calculated from this workbook. It reports a cumulative household consumption of 27,006.97 kWh and a mean daily consumption of 13.252 kWh. Air conditioning accounts for 11,562.78 kWh, or 42.81 percent of the reported total. Ceiling fans account for 12.02 percent, lighting for

    9.78 percent, and refrigeration for 8.83 percent. These domain-specific

    measures illustrate the type of analysis that can be displayed by the proposed dashboard generator; they do not define the framework's scope.

    TABLE II. SELECTED STATISTICS FROM THE ELECTRICITY CASE STUDY

    Appliance

    Cumulative energy (kWh)

    Share

    Air conditioner

    11,562.78

    42.81%

    Ceiling fans

    3,245.35

    12.02%

    Lighting

    2,641.84

    9.78%

    Kitchen appliances

    2,405.50

    8.91%

    Refrigerator

    2,385.85

    8.83%

    Total household

    27,006.97

    100.00%

    The project report groups the household observations into four seasons. It reports 13,778.30 kWh for the monsoon period, 6,926.58 kWh for summer, 3,756.54 kWh for winter, and 2,545.55 kWh for post-monsoon. These values are included to demonstrate how the proposed system can present category-based summaries for a selected dataset. They are reproduced from the projct report and should be interpreted in the context of the supplied workbook and its documented provenance.

    TABLE III. SEASONAL SUMMARY FROM THE ELECTRICITY CASE STUDY

    Season

    Days

    Energy (kWh)

    Mean (kWh/day)

    Monsoon

    671

    13,778.30

    20.534

    Summer

    552

    6,926.58

    12.548

    Winter

    510

    3,756.54

    7.366

    Post-monsoon

    305

    2,545.55

    8.346

    The project report also describes a multi-city tariff analysis using the separate consumer CSV. Because the supplied CSV has 9,999 rows, this paper reports that verified file count rather than the rounded 10,000- record count stated in the report. The two electricity datasets serve different analytical purposes and are not treated as one combined time series. Their role in this paper is to demonstrate the framework's ability to ingest different structured files and render domain-relevant dashboard views.

  8. PERFORMANCE OBSERVATIONS

    The project report records a set of prototype performance measurements. For a theme-only request, it reports a response time of 0.82 seconds and 508 total tokens, compared with 3.45 seconds and 1,842 total tokens for a monolithic full-generation request. The report calculates a 72.4 percent token reduction for the UI-only case. Layout-only and data-only updates are reported at 1.12 seconds and 1.35 seconds, respectively. These values are retained as project-reported measurements; the report does not provide enough hardware, network, model-version, repetition, or variance detail to treat them as general performance guarantees.

    TABLE IV. SELECTED PERFORMANCE VALUES REPORTED IN THE PROJECT

    Operation

    Reported time

    Reported tokens

    Full dashboard generation

    3.45 s

    1,842

    Layout-only update

    1.12 s

    604

    UI-only update

    0.82 s

    508

    Data-only update

    1.35 s

    755

    For file ingestion, the report compares synchronous CSV parsing with parsing in a Web Worker. At 10,000 rows, synchronous parsing is reported at 312 ms with 312 ms of main-thread blocking, while the Web Worker approach is reported at 328 ms with 0 ms of main-thread blocking. For the supplied household workbook, the report lists 68 ms for Excel parsing of 2,038 rows. Client-side KPI reductions are reported between 0.12 ms and 0.61 ms for the tested operations. The report also records 5860 frames per second during drag-and-drop profiling. These observations describe the projects test setup and require independent reproduction for broader comparison.

    The performance results suggest that the main benefit of background parsing is UI responsiveness rather than a shorter total parsing time. Similarly, the intent-routing measurements suggest that targeted updates can reduce the amount of configuration regenerated for narrow requests. Further controlled experiments should report device specifications, network conditions, model settings, number of trials, median and dispersion, and dataset characteristics.

  9. DISCUSSION AND LIMITATIONS

    The proposed system demonstrates an end-to-end workflow in which a natural-language request is converted into a structured dashboard description and rendered through a client-side component system. The use of a JSON configuration boundary provides a clear separation between language-model interpretation and deterministic rendering. The four-mode update mechanism and two-stage data pipeline are intended to support iterative customization without rebuilding the entire dashboard for every request.

    Several limitations should be considered. First, semantic column remapping depends on model-generated matches; an incorrect mapping can produce misleading charts unless the user can inspect and correct the selected fields. Second, the current prototype focuses on interactive descriptive visualization and does not establish forecasting or causal inference capabilities. Third, the reported performance measurements are not accompanied by a fully specified reproducibility protocol. Fourth, the household electricity workbook's provenance should be documented consistently before submission: the project team describes it as curated from real dataset material using Excel sheets, while reference [12] in the supplied project report labels a related testing dataset as synthetic. The relationship between that reference and the supplied workbook should be clarified. The CSV dataset's file count also differs slightly from the rounded count in the report.

    The comparative claims against commercial BI tools and code interpreters should be interpreted cautiously because the report does not describe a controlled, task-matched evaluation across platforms. Future evaluation should include a reproducible task set, representative users, time-on-task measurements, error rates, and a validated usability instrument.

  10. CONCLUSION AND FUTURE WORK

This paper presented a conversational AI-based dashboard generator for generating and modifying interactive dashboards from structured data through natural-language requests. The system combines Gemini-based intent interpretation and structured JSON output with a React rendering engine, multi-format data ingestion, semantic column remapping, client- side KPI calculations, and draggable dashboard components. The framework is intended for use with different structured-data domains. An electricity-consumption case study was used to demonstrate its data- ingestion, visualization, and analytical workflow; it is an example application rather than the system's exclusive domain. Project-reported measurements indicate that targeted updates and background parsing can improve aspects of interaction efficiency and responsiveness, although further controlled validation is needed.

Future work includes evaluating the proposed system with a broader range of datasets and application domains, improving user-confirmable column mapping, expanding data-quality checks, and conducting evaluation with a larger and more diverse user group. Additional directions include streaming data integration, carefully validated forecasting or anomaly-detection modules, and exporting dashboards as standalone components or analytical reports.

REFERENCES

  1. Salesforce / Tableau Software, Tableau Desktop Architecture and Visual Analytics Platform Documentation, Tableau Help, 2024. [Online]. Available: https://help.tableau.com/

  2. Microsoft Corporation, Data Analysis Expressions (DAX) Reference and Power BI Modeling Architecture, Microsoft Learn, 2024. [Online]. Available: https://learn.microsoft.com/dax/

  3. P. Maddigan and T. Susnjak, Chat2VIS: Generating Data Visualisations via Natural Language using ChatGPT, Codex and GPT-3 Large Language Models, IEEE Access, vol. 11, pp. 4518145193, 2023, doi: 10.1109/ACCESS.2023.3274199.

  4. V. Dibia, LIDA: A Tool for Automatic Generation of Grammar-Agnostic Visualizations and Infographics using Large Language Models, in Proc. 61st Annual Meeting of the Association for Computational Linguistics, System Demonstrations, pp. 113126, 2023, doi: 10.18653/v1/2023.acl-demo.11.

  5. Google, Gemini API: Structured Outputs with Constrained Decodig and JSON Schema Validation, Google AI for Developers. [Online]. Available: https://ai.google.dev/gemini-api/docs/structured-output

  6. P. Biswas et al., AI-Driven Approaches for Optimizing Power Consumption: A Comprehensive Survey, Discover Artificial Intelligence, vol. 4, art. no. 116, 2024, doi: 10.1007/s44163-024-00211-7.

  7. X. Wang, H. Wang, B. Bhandari, and L. Cheng, AI-Empowered Methods for Smart Energy Consumption: A Review of Load Forecasting, Anomaly Detection and Demand Response, International Journal of Precision Engineering and Manufacturing-Green Technology, vol. 11, no. 3, pp. 963993, 2024, doi: 10.1007/s40684-023-00537-0.

  8. OpenAI, ChatGPT Advanced Data Analysis: Python Code Execution and Data Analysis, OpenAI Help Center, 2024. [Online]. Available: https://help.openai.com/

  9. W3C, Web Workers, W3C Recommendation. [Online]. Available: https://www.w3.org/TR/workers/

  10. M. Holt, Papa Parse: Powerful In-Browser CSV Parser for JavaScript, Papa Parse Documentation. [Online]. Available: https://www.papaparse.com/

  11. Recharts Group, Recharts: A Composable Charting Library Built on React Components, Recharts Documentation. [Online]. Available: https://recharts.org/

  12. Anthropic, Household Electricity Consumption and Multi-Tier Utility Tariff Reference Testing Dataset (Synthetic), AI-synthesized dataset, project internal use, 2026.

  13. C. Jing, S. Guo, H. Zhang, X. Lv, and D. Wang, SmartEle: Smart Electricity Dashboard for Detecting Consumption Patterns: A Case Study at a University Campus, ISPRS International Journal of Geo-Information, vol. 11, no. 3, art. no. 194, 2022, doi: 10.3390/ijgi11030194.

  14. P. Mishra et al., NOVAID: Natural-language Observability Visualization Assistant for ITOps Dashboard Widget Generation, arXiv:2601.11531, 2026. [Online]. Available: https://arxiv.org/abs/2601.11531. (Verify publication status and date.)

  15. T. C. F. de Moura Vicente, Automated Dashboard in the Energy Sector: Improvement in Energy Sector Regulatory Process Using Data Analytics Processes, Masters thesis, NOVA School of Science and Technology, Universidade Nova de Lisboa, 2024.

  16. H. Lin et al., Design and Application of an Energy Management System Based on Artificial Intelligence Technology, Engineering Proceedings, vol. 91, no. 1, art. no. 16, 2025, doi: 10.3390/engproc2025091016.

  17. Streamlit, Streamlit Documentation. [Online]. Available: https://docs.streamlit.io/

  18. Plotly Technologies Inc., Dash Documentation. [Online]. Available: https://dash.plotly.com/

  19. C. Demers, @dnd-kit: Lightweight, Performant, Modular Drag and Drop Toolkit for React, Documentation. [Online]. Available: https://dndkit.com/

  20. SheetJS LLC, SheetJS Community Edition: Spreadsheet Data Toolkit for JavaScript and Web Browsers, Documentation. [Online]. Available: https://sheetjs.com/

  21. E. Gamma, R. Helm, R. Johnson, and J. Vlissides, Design Patterns: Elements of Reusable Object-Oriented Software. Reading, MA, USA: Addison-Wesley, 1994.

  22. Suraj (Suraj520), Indian Household Electricity Consumption Dataset, Kaggle. [Online]. Available: https://www.kaggle.com/datasets/suraj520/indian-household- electricity-bill. (Confirm which supplied dataset this citation identifies.)