in reply to How to calculate the column and print it in pie chart format using perl?

You don't specifically mention it, but by the look of some of your questions you're building a web interface, now with JavaScript charting. I suggest you make life easy for yourself and use an existing web framework, such as Mojolicious::Lite and an appropriate JavaScript charting solution which can read JSON data. The Mojolicious documentation is great, your time would be wel spent addressing the basics, which are perl and web skills that are framework agnostic.

  • Comment on Re: How to calculate the column and print it in pie chart format using perl?