title: How to pass variable values from java to javascript
body: <p>I am a beginner in coding. I have met a scenario to pass the variable values from a java class to javascript and that need to be updated as values of a high chart in javascript.  </p>
  
  <p><a href="https://i.stack.imgur.com/giH84.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/giH84.jpg" alt="[java code: I need to pass this values of float variables from this java class to JS"></a> </p>
  
  <p>These values need to be updated in the below chart in JS.</p>
  
  <p><a href="https://i.stack.imgur.com/ahBE6.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ahBE6.jpg" alt="java scripts"></a></p>
  
  <p>Kindly help me to code this scenario.</p>