admin管理员组

文章数量:1290979

I have a EXCEL file containing multiple Tables and Charts. I want to create a web page to display a particular Table and a Chart. I used java script to display the table. But cant find a way to display the CHART. By chart i mean it contains a pie graph or bar graph.

Is it possible to display using java script? Or do i have to use JSP/something else?

I have a EXCEL file containing multiple Tables and Charts. I want to create a web page to display a particular Table and a Chart. I used java script to display the table. But cant find a way to display the CHART. By chart i mean it contains a pie graph or bar graph.

Is it possible to display using java script? Or do i have to use JSP/something else?

Share Improve this question asked Mar 23, 2013 at 6:32 Sourav048Sourav048 3321 gold badge5 silver badges14 bronze badges 2
  • I hope this link (codeproject./Articles/15821/HTML-Vertical-Bar-Chart) help you for your required solution. – Ghost Answer Commented Mar 23, 2013 at 6:57
  • @GhostAnswer thanks, but this link shows how to make use of div to draw a graph. Its a good trick but i actually want to display the graph that is already drawn in my excel file. – Sourav048 Commented Mar 23, 2013 at 9:09
Add a ment  | 

2 Answers 2

Reset to default 5

Take a look at Google Chart Tools. Here is an example with javascript source code. If you are building the table on the server side, you may instead want to pass the data down JSON encoded and then build both the table and chart at the same time without having to pass the data twice.

An easier way would be to use a free tool like oomfo, which is a PowerPoint plugin to create charts. It lets you pull data from excel, create charts and then export the entire slide as HTML - the charts are in Flash and JavaScript (fallback). Just add a line of code in the output web page to render JavaScript charts only.

本文标签: javascriptDisplay a Excel chart in Html pageStack Overflow