Plot Chart Google Chart via data in input

Asked

Viewed 50 times

0

We have a autocomplete box, where the user writes an item and when you click "Send" the same will plot a graph on the same screen (page).

I am using Google Charts and for the autocomplete I am using an AJAX script in JS. My document is in . php

My question is:

<form autocomplete="off" action= " " > 
  <div class="autocomplete" style="width:600px;">
   <input id="myInput" type="text" name="myItem" placeholder="Item">
 </div>
 <input type="submit">
</form>

I can put the plot function in the "action" of the autocomplete, if yes how? Thank you!

  • Could you explain better what you want to create? not what you want to do to create!

  • Of course, I have a database that contains data from several companies and whether companies have a certain policy employed or not. The graph will show the % that companies have a certain policy employed. A benchmark, for example: currently 30% of companies in our scope employ a "Access Control to a Datacenter" policy. The user types in a field (this is already done) which policy he wants to view % on the chart. What I’m not able to do is to click on "Submit" in the field, plot the chart on the same screen.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.