Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

304
Views
How can I display google chart & table with multiple dynamic values yearly after calculating

Please help me out with this I am very new, tried creating a CAGR calculator

  1. I want to show the result in decimal values with percentage symbols like 25.89%
  2. I want to display the result in table table data result
  3. How can I show the chart where the years are on the x-axis and amount on y-axis? Chart

var a = parseInt(data.endingvalue);
var b = parseInt(data.invested_amount);
var c = parseInt(data.year)

google.charts.load("current", {
  packages: ["corechart"]
});

google.charts.setOnLoadCallback(drawChart);

function drawChart() {
  var data = google.visualization.arrayToDataTable([
    ['', ''],
    ['Starting Amount', b],
    ['Final Amount', a]
  ]);

<table class="table  table-hover">
  <tr>
    <th>CAGR</th>
    <th><span id="print_total_value">0</span>&#37;</th>
  </tr>
</table>

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!