A
A
askogorev2014-08-05 21:09:52
PHP
askogorev, 2014-08-05 21:09:52

How to build graphs and charts based on an xls document?

Hey!
There is an xls (excel) file on the server, which is constantly changing.
I would like to display graphs based on this data on the web face.
web server - nginx

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander Gubarev, 2014-08-05
@AlexGx

There are actually many solutions, depending on the tools and restrictions you use.
eg:
1. track file changes. for example, using inotify-tools or a cron script
2. if the file has changed, parse the data and push it into the cache, or into a json file that can be loaded into the chart widget.

D
Damir Makhmutov, 2014-08-06
@doodoo

You can open this xls file on the server, for example with this: PHPExcel , or with these , and then visualize with javascript, for example with this: chartjs , or with these .

D
Dmitry Filatov, 2014-08-06
@i_dozi

I did the same on Python3.3
Here is an excellent library for that case xlsxwriter.readthedocs.org/en/latest/index.html
If necessary, I can throw off my example

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question