PHP and FusionCharts create interactive drilling reports. When data is analyzed, charts are directly displayed, and fake tables can interact with each other, which improves the performance. In this article, we will discuss how to use php to analyze data and use charts directly, while false tables can interact with each other, the effect will be better. This article describes how to use php with the open-source report Library FusionCharts (Project address: www.fusioncharts.com/) to create interactive drilling reports. A drilling report refers to a new report that can be opened when a user clicks the data axis in the report. This facilitates navigation between different reports.
Introduction to link charts
Generally, the data in a common chart is independent. how can we aggregate the data and navigate between these charts? This is exactly what mongocharts can achieve. It is a new drilling feature added in FusionCharts 3.2. it allows you to create unlimited drill-through charts with only one data source. all links are from the parent chart and its data.
In this article, we will learn how to combine charts with web applications. The Mysql database contains the required data, while the PHP program extracts the data from the database, and FusionCharts processes and displays the data. Their relationships are as follows:
If you want to learn more about structured charts, you can read the following article introduction (http://kb.fusioncharts.com/questions/459/What+is+a+Drill-down+chart ?), The main points of this article are summarized as follows:
1. the drill-down report uses the default settings of the parent chart to display data;
2. the drilling layer of each layer can be set Additionally. of course, you can change the setting and chart type of each drilling layer;
3. you can open a linked chart in a new window, including the jQuery dialog box, lightbox, extJS window, and more;
4. support using Javascript to expand events.
What should we do?
We often need to monitor the number of visitors to our website applications and see if they have grown. in this article, we will make a small application, it shows the number of registered users on our website over a period of time.
Preparation:A web server that supports php. here we use apache and mysql databases to download FusionCharts.
Step 1. initial settings
Create an empty database fctutorial and create a subdirectory of fcdemo to store php files.
Step 2 initialize database data
Here we create a users Table. here there are only two simple fields: ID and user registration time:
Bytes. In this article, we will discuss how to use php to build...