Add a time-series chart to your APEX app - Part 3 of the HighChart Series
- Get link
- X
- Other Apps
Add a time-series chart to your APEX app using HighCharts and JQuery. This is the third in the series of blog posts showing you how to add HighCharts to your APEX application.
This is the most useful of the HighCharts in the series so far, easily turn your date data into an animated time series chart with a couple of lines of JavaScript
Create a static region which will display the timeline diagram chart in the Header and Footer section header text
(reading directly from HighCharts, if it works for you download them to static application files)
Add the following code to execute when page loads. This is the code that contains the configuration of the chart and loads the data from the Interactive Report;
(You can have a play with configuration options in HighCharts Fiddle and then change the options in the code)
the chart reads the data from the Interactive Report to display on the chart;
If you want to add another series for 2019 add a new column to the SQL then add the series to the JavaScript code. This time column 3;
The example shown is using dummy SQL. To create an Interactive Region from your table that contains dates you can use something like this, where I am getting completion date counts from my table which will work with the JS code shown above when we have 1 series.
Part 2 - Timeline Diagram Chart
- Get link
- X
- Other Apps
Comments
Post a Comment