• Post Reply Bookmark Topic Watch Topic
  • New Topic

fetching data from html pie charts  RSS feed

 
Ravikiran Reddy Baddam
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello all,
i have one html pie chart and from that pie chart i need to get the data using java.
can any one provide code for that

------here is html code--------




Thanks
Baddam
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66154
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure what you are asking. What you have shown is JavaScript.

"From" or "to" the HTML?

Are you asking how to send the JavaScript data in the HTML to backend Java code?

Or are you asking how to feed the chart data to the HTML page using Java so that it is not hard-coded in the JavaScript?

Please let us know which, as how to proceed depends greatly on what you are trying to do.
 
Ravikiran Reddy Baddam
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to send the JavaScript data in the HTML to backend Java code.
i need this. if i run that code i am geting pie char, so from that pie chart i need data to java code.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66154
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where does the data originally come from? Hard-coding it in the HTML to send it to the backend doesn't make much sense.
 
Ravikiran Reddy Baddam
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
actualy it is just a sample code. the data to html comes from the database and we need to extract that html data
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66154
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why can't the backend also get it from the database?
 
Ravikiran Reddy Baddam
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
At present we did not created any data base, so initially i need to do it from the html data.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66154
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So how is your HTML page getting the data? The point is, your code should fetch it from the same place as the HTML, not from the HTML.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!