The KoolReport Blog

Announcements, discussions, and more for KoolReport and its extended packages.

Introducing ApexCharts Integration with KoolReport: Elevate Your Data Visualization

In the ever-evolving world of data-driven decision-making, data visualization plays a pivotal role. It transforms raw data into meaningful insights and empowers businesses and developers to make informed choices. Today, we're thrilled to introduce the seamless integration of ApexCharts with KoolReport, opening up a world of possibilities for developers and businesses seeking advanced data visualization solutions.

The fusion of KoolReport, a robust PHP framework specializing in data reporting, and ApexCharts, a powerful JavaScript charting library, marks a significant leap forward in the realm of data visualization.

A Dynamic Duo: KoolReport and ApexCharts

KoolReport has long been a trusted ally for developers in the realm of data reporting. Its ease of use, flexibility, and extensive feature set have made it a go-to solution for generating insightful reports and dashboards directly from data sources like databases. Now, with the integration of ApexCharts, KoolReport takes data visualization to the next level.

ApexCharts, as a versatile JavaScript charting library, offers an impressive range of chart types, interactivity options, and customization features. Whether you need to create compelling line charts, interactive bar graphs, insightful pie charts, or any other data visualization, ApexCharts delivers. The seamless integration of ApexCharts into KoolReport extends the framework's capabilities, allowing you to harness the full potential of both tools in tandem.

Why This Integration Matters

  1. Enhanced Data Presentation: With ApexCharts at your disposal, you can transform your data into stunning, interactive visualizations that are both aesthetically pleasing and informative. It's the key to presenting data in a way that resonates with your audience.
  2. Simplified Development: Developers often face the challenge of creating complex data visualizations from scratch. With the integration of ApexCharts into KoolReport, this process is simplified, allowing for faster development and reduced coding effort.
  3. Customization: ApexCharts is renowned for its flexibility. You can customize your charts to fit the unique requirements of your project. Whether it's adjusting colors, styles, or interactivity features, the power is in your hands.
  4. Interactivity: Interactive charts engage users, enabling them to explore and gain deeper insights into the data. ApexCharts facilitates the addition of features like tooltips, zooming, and data filtering, making your charts come to life.
  5. Consistency and Uniformity: The integration ensures a seamless experience within KoolReport. The charts blend effortlessly with your reporting framework, maintaining a consistent and professional look throughout your reports and dashboards.

Getting Started with ApexCharts in KoolReport

Getting started with ApexCharts in KoolReport is a breeze. The integration is designed to be developer-friendly and intuitive. You can easily create and configure your charts directly from your PHP code. No need to delve into complex JavaScript coding or deal with time-consuming client-side processes. Here's a glimpse of how straightforward it can be:

        "dataSource" => [
        "columns" => [
        "options" => [],
        "showLabel" => true,
        "maxWidth" => "450px",

This simple code snippet demonstrates how you can create a donut/pie chart using ApexCharts within KoolReport. You can customize chart types, data, and various options to tailor your visualizations precisely to your needs.

View this example on KoolReport demo

Elevate Your Data Visualization

The integration of ApexCharts with KoolReport opens up a world of opportunities for developers, businesses, and data enthusiasts. Whether you're looking to create impactful reports, dynamic dashboards, or engaging presentations, this powerful combination empowers you to take your data visualization to new heights.

With the fusion of KoolReport's data reporting prowess and ApexCharts' rich charting capabilities, you can effortlessly transform your data into insights that drive informed decisions. So, embrace the future of data visualization with ApexCharts and KoolReport and experience the magic of turning data into knowledge.

Elevate your data visualization game, explore the endless possibilities, and unlock the true potential of your data.

How to create charts using PHP and MySQL database

As a budding developer, you may find yourself grappling with the intricacies of visualizing data from databases like MySQL in captivating charts and graphs. Fear not, for I am here to guide you through the process with the help of KoolReport—a powerful PHP framework that will revolutionize your data visualization journey and simplify your development workflow.

Traditionally, achieving data visualization involved a series of complex steps. You would need to harness the power of PHP to query your database, transform the retrieved data into the specific format required by the chosen charting library, export it as JSON, and then write client-side JavaScript code to render the charts. This process not only consumed a significant amount of time but also presented challenges when switching between different charting libraries.


  1. AnyChart: Connecting MySQL Database to JS Chart Using PHP
  2. FusionChart: Create Interactive Charts using PHP and MySQL Database
  3. Learning Programming: Google Chart with PHP and MySQL

But behold! KoolReport is about to unveil a new world of data visualization simplicity. Developed with a laser focus on data reporting, this framework will enable you to effortlessly create visually stunning charts directly from your database, eliminating the need for tedious and error-prone transformation processes. Allow me to guide you through an example that showcases the elegance and power of KoolReport.

Imagine you wish to create a column chart to visualize the spending amount of each customer in your MySQL database. With KoolReport, accomplishing this becomes a breeze. Let's dive into the code:

use \koolreport\datasources\PdoDataSource;
use \koolreport\widgets\google\ColumnChart;

// Database connection information
$connection = array(
    "connectionString" => "mysql:host=localhost;dbname=sales",
    "username" => "root",
    "password" => "",
    "charset" => "utf8"

// Create a column chart to visualize the spending amount of each customer.
    "dataSource" => (new PdoDataSource($connection))->query("
        SELECT customerName, SUM(amount) as total
        FROM orders
        GROUP BY customerName

Impressive, isn't it? With just a few lines of code, you establish a connection to your MySQL database, retrieve the desired data, and generate a beautiful column chart displaying the spending amount for each customer. The simplicity and efficiency of KoolReport allow you to focus on the bigger picture rather than being tangled in cumbersome technicalities.

Moreover, KoolReport offers a diverse range of chart types to cater to your specific needs. From fundamental line charts and bar charts to intricate pie charts, area charts, geo charts, gauge charts, histograms, and combo charts, you have the freedom to unleash the full potential of your data.

What truly sets KoolReport apart is its seamless integration with multiple charting libraries. Whether you prefer Google Charts, ChartJS, Morris Chart, D3, or new player ApexCharts, KoolReport has you covered. Thanks to its common API, transitioning between charting libraries is effortless. By merely changing the chart class, you can explore different visualization options without wasting precious time rewriting your entire transformation process.

In summary, as an aspiring developer, you now possess a powerful tool—KoolReport—to simplify your data visualization endeavors. This framework empowers you to streamline your development process, save invaluable time, and focus on creating impactful data visualizations. Say goodbye to convoluted data transformations and embrace a world where charting becomes an intuitive and seamless experience. With KoolReport by your side, you can elevate your data visualization skills and unlock a realm of possibilities.

KoolReport Releases

We are thrilled to announce a major release of KoolReport products with significant improvements. Upgrade is highly recommended.

Compatibility with PHP 8.2

Dynamic properties have been deprecated in PHP 8.2 causing issues for KoolReport and its packages. We have completely solved the issues with dynamic properties in this release, enabling you to upgrade to the latest PHP confidently.

KoolReport Core 6.1.0

Improvements have been made to Table, Google Chart and the ability to store the view folder in a separate folder. The view file of a report no longer needs to be in the same folder as the report’s class file.

Dashboard Framework

Exporting capabilities have been greatly enhanced with the addition of a general engine() method. This method enables you to specify a list of exporting engines that you need and choose which engine to use during the exporting process. Excel exporting has also been improved, allowing developers to customize the view of the excel file instead of using the default view from the previous version.

Other packages

  1. Datagrid 7.8.0: Ability to load custom css file
  2. Excel 10.6.0: Excellent improvement for MacOS Number compatibility and ability to rearrange widgets automatically in Excel files
  3. Export 5.3.0: Improve the flexibility of export view by adding viewMap property.
  4. VisualQuery 2.1.0: Fix the grouping when multiple fields are used
  5. Amazing 2.1.4: Fix FormDropDown and DonutChart in Dashboard
  6. AppStack 1.1.5: Fix FormDropDown and DonutChart
  7. Bootstrap4 1.5.1: Upgrade to 4.5
  8. ChartJS 3.2.1: Minor fix
  9. ChartTable 1.3.1: Minor fix
  10. Cleandata 1.6.1 :Minor fix
  11. CloudExport 4.2.0: Upgrade php client library
  12. Cube 3.5.1: Minor fix
  13. Inputs 6.5.1: Minor fix
  14. MorrisChart 3.0.1: Minor fix

We hope that you enjoy the new releases.

<3 koolreport team

Dashboard vs AdminPanel

You might wondering What are the differences between Dashboard and Admin Panel? What should you choose for your project?

As businesses grow, so does the amount of data they generate. It becomes increasingly important to collect, organize and analyze this data to make informed decisions. This is where dashboards and admin panels come in.

Both dashboards and admin panels are tools used to manage and analyze data, but they serve different purposes. An admin panel is typically used by an organization's internal team to manage the backend of a website or application. It provides access to the data and tools necessary to manage the functionality and content of the site.

On the other hand, a dashboard is a user interface that provides an overview of important metrics and key performance indicators (KPIs) for a business. It is designed to help stakeholders make quick, informed decisions based on real-time data.

While these two tools may seem similar, they serve distinct purposes. An admin panel is focused on managing and updating a website or application, while a dashboard is focused on presenting data and insights.

However, what if you could have a tool that combines both the functionality of an admin panel and a dashboard? That's where the Dashboard Framework of KoolReport comes in.

Built on top of the powerful KoolReport Pro, the Dashboard Framework is a set of ready-made features designed to make it easy for developers to create online dashboard applications or admin panels for websites. With just a few lines of code, developers can create a modern, single-page dashboard that includes built-in authentication, authorization, and support for multiple databases and data sources, including CSV and Excel files.

In addition, the Dashboard Framework includes support for multi-languages and multi-themes, making it easy to create custom dashboards that fit your brand and language preferences. And with widget lazy loading support, developers can ensure that the dashboard is fast and responsive, even when working with large datasets.

The Dashboard Framework is also flexible and can work within other popular PHP frameworks, including Laravel, CodeIgniter, Yii2, and Symfony. This makes it easy to integrate the Dashboard Framework into your existing workflow and start building great dashboard systems for your clients or your own business.

View Dashboard Framework Demo

In conclusion, while dashboards and admin panels serve distinct purposes, the Dashboard Framework of KoolReport makes it easy to create a tool that covers both functionalities. With its powerful features and flexible integration options, the Dashboard Framework is a valuable tool for any developer looking to build a modern, data-driven application.

KoolReport Major Releases

We are happy to announce that big release for KoolReport products have been available. This release contains many improvements to the library and it worths your upgrade.

Core 6.x

KoolReport Core has been improved its datasources for better connection. The library was also equipped with optional PHP generator mechanism to reserve resources to handle large data report. In previous version of KoolReport, we may experience some notices when working with PHP 8.x but now all are gone.

KoolReport Pro and its packages

Together with release of the core, KoolReport Pro also reached version 6.x with the upgrades of many packages:

  1. Amazing 2.1.3: Handle dashboard framework theme
  2. Inputs 6.2.0: Upgrade client library and fix bugs
  3. QueryBuilder 3.3.0: Fixed issue in from() methods
  4. ChartJs 3.2.0: Ability to handle chart's onClick events and able to use inline plugins.
  5. Charttable 1.3.0: Ability to transpose table with flexible column names
  6. Cube 3.5.0: New methods like count distinct, count not null and sum distinct.
  7. Datagrid 7.7.0: Smart searching mode, complex header labeling.
  8. Excel 10.5.1: Fixed bugs, adding footer with aggregating methods
  9. Pivot 9.0.1: New methods like count distinct, count not null, new computations property for Pivot2D

New AppStack theme

Beside existing Amazing theme, we have provided a new theme called AppStack. The theme has been added into KoolReport Pro that you can try out now.

Dashboard Framework 4.x

This new version of Dashboard Framework contains so many improvements that you should upgrade:

  1. Dynamic themes: The theme now can be set during runtime, it opens the possibility for users choose the theme that they like.
  2. Dynamic languages: Able to let user choose their preferred languages
  3. Multi pages: Can have more than one page with different menu system.
  4. FlexView: A new widget of Dashboard that can hold and show different views.
  5. InlineEditAction: New action for admin panel that allows resource be edited right on table
  6. Compability: Working with latest PHP 8.x version.

Read our Dashboard 3.5 to 4.x upgrade notes.

Thank you very much!

<3 koolreport team

KoolReport helps to analyze your data and ultimately turn them into visual reports or dynamic dashboards.

"KoolReport helps me very much in creating data report for my corporate! Keep up your good work!"

Alain Melsens

"The first use of your product. I was impressed by its easiness and powerfulness. This product is a great product and amazing."

Dr. Lew Choy Onn

"Fantastic framework for reporting!"

Greg Schneider
Get KoolReport Now, It's FREE!