Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6016649
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T03:00:47+00:00 2026-05-23T03:00:47+00:00

I have the below script. It is not rendering the 2006 data. Is there

  • 0

I have the below script. It is not rendering the 2006 data. Is there a problem with my script? (Data: UN’s Millenium Development Goals, not all values have data)

<html>
<head>
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("visualization", "1", { packages: ["corechart"] });


google.setOnLoadCallback(drawChart);
function drawChart() {
    var data = new google.visualization.DataTable();

    data.addColumn('string', 'Year');
    data.addColumn('number', 'Afghanistan');
    data.addColumn('number', 'India');

    data.addRow(["1993", null, 61.9]);
    data.addRow(["1999", null, 65.1]);
    data.addRow(["2000", 36.9, 61.8]);
    data.addRow(["2003", 16.1, null]);
    data.addRow(["2006", null, 74.2]);

    new google.visualization.AreaChart(document.getElementById('chart_div')).draw(data, {
        curveType: "function"
 , width: 768, height: 908

 , title: 'Target 5.B: Achieve, by 2015, universal access to reproductive health. Antenatal care coverage, at least 1 visit.'
 , vAxis: { title: 'Percent' }

    });

}
</script>

</head>
<body>

<div id='chart_div'></div>
</body>
</html>

enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T03:00:48+00:00Added an answer on May 23, 2026 at 3:00 am

    The AreaChart appears not to draw anything if a data point doesn’t have any values in the data points next to it. With nulls (or the edge of the graph) on both sides of any data point, the area would be of width 0. I’d say this is a bug with the chart API (it should really draw an area of width 1 in this case), which you may want to file here.

    In the meantime, you may want to use a different chart type. Would a scatter plot be appropriate? It would have the advantage of not showing a potentially misleading line between data points. For example, in the current plot the plotted line may not match the real shape of the data, since your data is sparse. Say there was a spike and then a drop in the blue data between 2001 and 2003- the area chart type appears to tell a different story (a straight slope), while a scatter plot would not tell any false stories between the data you do have.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have tested the below script on a demo page which is not using
I have written the following script below - I am not quite happy with
I have example of code below. <script type=text/javascript src=assets/scripts/somescript.php>. </script> So, will my browser
Solution to original problem (below) may have been discovered. I commented out <identity> ...
I have the below script to hide the content of one div and show
I have the below shell script in which sql file is called which has
I have the script below placed in the HEAD of the page. The map
I have this query below. There are 4 main tables involved: tblOrder, tblItems, tblOrder_archive,
Continuous JavaScript Scroller I have below script which is working on next and previous
I have the script below and on the website http://cacrochester.com , sometimes the contents

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.