Learning Highcharts 4
Learning Highcharts 4 is the 2nd edition of my previous book, Learning Highcharts, and it is out now. This edition covers Highcharts 4 in 15 chapters with around 430+ pages. Four brand new chapters and one rewritten chapter, the rest of the chapters have been much revised with new sections. In a nutshell, it has nearly 50 percent of new material. Learning Highcharts aims to be the most comprehensive Highcharts book in the market. Moreover, the book comes with a myriad of examples showing you how to recreate from real-life charts with step-by-step approach. It also covers topics such as: APIs, events, integration with jQuery Mobile and Sencha’s ExtJs 5 frameworks, server-side PhantomJS script, Highcharts cloud service and plugins. Read more
Return the total size usage of a particular database
psql -c "SELECT pg_database_size(pg_database.datname) FROM pg_database WHERE pg_database.datname = 'MyDatabase'; " -t -h localhost -U postgres
Return the total size usage of all the databases
psql -c "SELECT sum(pg_database_size(pg_database.datname)) FROM pg_database;" -t -h localhost -U postgres;
In my previous blog, I need to convert a HTML document with IMG src link to IMG with embedded base64 image content. Here is a PHP script that scans the HTML document and replace the IMG tags with embedded content, i.e. changing from this
We have a web application (under Ubuntu webserver) with a WYSIWYG html editor which let users to create a report template with custom tags. These custom tags are then resolved to technical graph images and embedded into the report. This application allows users to
- preview the report with graphs on the web browsers
- schedule to generate the report which then export to Word document and deliver via email attachment.
– All demos now refer to ExtJs CDN rather than from my demo site
– Added support for Solid Gauge series
Apart from removing deprecated methods in ExtJs, all the existing code should work directly with this extension & ExtJs 5. There are known issues using with sencha command which I still need more user feedbacks and time to resolve this. Hopefully, I will find some time to finalise my Highmaps extension for ExtJs.
A new version of Highcharts extension for ExtJs 4 is released. This extension (3.0.1) is a major release which includes following updates:
- supports Highcharts 4 including the long waited 3D charts and heatmap (in beta)
- added missing Pyramid series
- beta support for Highmaps
The documentation has also been updated. Check out the demos on 3D charts and the license for usage. The demos for Highmaps and heatmap will be coming soon which will be implemented in separate web application (using Sencha Architect).
If you haven’t heard of Gapminder, then watch this very charismatic presentation from Ted talk by Prof. Hans Rosling. Basically, Gapminder is a Flash application which presents the world of statistics and demonstrates how it has evolved over centuries. It has been in my long overdue tasks list to implement a web based Gapminder using my Highcharts extension for ExtJs. So far it took me few hours a week over couple months to come up with this prototype. The challenge is that simultaneously updating and animating nearly 300 data points (with color shading) in a fraction of a second is quite CPU intensive. At least, it is possible now in HTML5.
The following is a short video demo of the prototype. It is running under my Mac Mini (Quad core 2.3GHz i7 – 4G RAM).
However, there are still plenty to implement. Online demo and code on github will be available soon