2013年9月23日星期一

highcharts how the server -side generated automatically picture file

Recently done using highcharts chart , good after page will generate a report that contains a chart text, etc. , is the need to import word the entire report
My idea is to get highcharts display the page at the same time , JS generate an image and save it in a specific folder , then apply the template text ,
place a template on the server , which is written keyword, and then formed by replacing the complete report key word document .

word substitution keyword this part I have to do it , but I still do not know how to use the picture js automatically saved on the server
welcome to share , word substitution keywords are two ways I have been achieved ,; linix and the windows can be achieved , if necessary, can also leave a message
------ Solution ----- ---------------------------------------
because highchart is based on SVG and VML, technical drawing graphics , the browser will generate more pictures of the impossible
So the only solution is to let the code on the server side rendering using the open source JavaScript / HTML rendering engine
memory mapping, and then save , ZingChart is one of them .

you can use to see, but not very easy to use ! If you are in a web APP application suggestions HTML5 to draw ,
Canvas support page save the picture , very good use ! IE6 ~ IE8 add a sentence in a Web page can be automatically loaded
chrome iframe framework , which can support the Canvas graphics.


now open source graphical front-end charting libraries are generally based on SVG and VML, IE is the culprit ! ! !
domestic IE core browser and are mostly
------ For reference only ------------------------- --------------
will use this highcharts, concerned, next Monday began to study .
------ For reference only -------------------------------------- -
want to see how js pictures concern ~ ~
------ For reference only ---------------------- -----------------
I need , but did not find a suitable way , concerned landlord
------ For reference only ----- ----------------------------------
no experts to help solve this problem you
--- --- For reference only ---------------------------------------
[b] continue to top up , you great God, urgent [b]
------ For reference only ------ ---------------------------------
Thank you , this report processing logic I use in the session generated picture, and then can be extracted foreground , the background also print pictures to a specified folder , and then generate word to the specified folder when you remove pictures on it, so what questions please contact us if there are better ways please enlighten

没有评论:

发表评论