• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

fetching data from html pie charts

 
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
 
Marshal
Posts: 67447
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • 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
Marshal
Posts: 67447
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • 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
Marshal
Posts: 67447
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • 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
Marshal
Posts: 67447
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • 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.
 
    Bookmark Topic Watch Topic
  • New Topic