A configuration-driven React framework for generating dynamic dashboards and reports.
Datalys2 Reports allows you to create rich, interactive reports by simply defining a JSON configuration embedded in your HTML. It handles the layout, data visualization, and interactivity, so you don't need to write custom React code for every report.
You can use the library directly from a CDN without installing anything.
<div id="root"></div> element.<script id="report-data" type="application/json"> tag containing your report configuration.<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>My Report</title>
<!-- Include styles from CDN -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/kameronbrooks/datalys2-reporting@latest/dist/dl2-style.css">
</head>
<body>
<div id="root"></div>
<script id="report-data" type="application/json">
{
"pages": [ ... ],
"datasets": { ... }
}
</script>
<!-- Include script from CDN -->
<script src="https://cdn.jsdelivr.net/gh/kameronbrooks/datalys2-reporting@latest/dist/datalys2-reports.min.js"></script>
</body>
</html>
For detailed documentation on the configuration schema and available components, please refer to DOCUMENTATION.md.
# Install dependencies
npm install
To build the production bundle:
npm run build
To watch for changes during development:
npm run dev
ISC