{"id":1842,"date":"2025-01-06T08:09:28","date_gmt":"2025-01-06T08:09:28","guid":{"rendered":"https:\/\/donhit.com\/en\/?p=1842"},"modified":"2025-02-07T08:54:10","modified_gmt":"2025-02-07T08:54:10","slug":"vitamin-requirements-by-age","status":"publish","type":"post","link":"https:\/\/donhit.com\/en\/calculator\/vitamin-requirements-by-age\/","title":{"rendered":"Vitamin Requirements by Age (0-18 years)"},"content":{"rendered":"<p><center><div class=\"container123\">\r\n    <div class=\"header\">\r\n      <h2>Vitamin Requirements by Age (0-18 years)<\/h2>\r\n      <p>Interactive chart showing recommended daily allowances for essential vitamins and minerals<\/p>\r\n    <\/div>\r\n\r\n    <div class=\"chart-controls\" id=\"chartControls\"><\/div>\r\n\r\n    <div class=\"canvas-container\">\r\n      <canvas id=\"vitaminChart\"><\/canvas>\r\n      <div class=\"legend\" id=\"chartLegend\"><\/div>\r\n    <\/div>\r\n\r\n    <table class=\"info-table\" id=\"infoTable\"><\/table>\r\n  <\/div>\r\n\r\n  <script>\r\n    \/\/ Generate detailed age-based data\r\n    function generateDetailedData() {\r\n      const vitamins = {\r\n        'Vitamin D (IU)': {\r\n          base: 600,\r\n          variations: {\r\n            0: 400, 1: 400, \/\/ 0-1 years\r\n            2: 600, 3: 600, \/\/ 2-3 years\r\n            4: 600, 5: 600, \/\/ and so on...\r\n            6: 600, 7: 600,\r\n            8: 600, 9: 600,\r\n            10: 600, 11: 600,\r\n            12: 600, 13: 600,\r\n            14: 800, 15: 800,\r\n            16: 800, 17: 800,\r\n            18: 800\r\n          }\r\n        },\r\n        'Calcium (mg)': {\r\n          base: 1000,\r\n          variations: {\r\n            0: 200, 1: 260,\r\n            2: 700, 3: 700,\r\n            4: 1000, 5: 1000,\r\n            6: 1000, 7: 1000,\r\n            8: 1000, 9: 1300,\r\n            10: 1300, 11: 1300,\r\n            12: 1300, 13: 1300,\r\n            14: 1300, 15: 1300,\r\n            16: 1300, 17: 1300,\r\n            18: 1300\r\n          }\r\n        },\r\n        'Iron (mg)': {\r\n          base: 10,\r\n          variations: {\r\n            0: 0.27, 1: 11,\r\n            2: 7, 3: 7,\r\n            4: 10, 5: 10,\r\n            6: 10, 7: 10,\r\n            8: 10, 9: 8,\r\n            10: 8, 11: 8,\r\n            12: 8, 13: 8,\r\n            14: 11, 15: 11,\r\n            16: 11, 17: 11,\r\n            18: 11\r\n          }\r\n        },\r\n        'Vitamin C (mg)': {\r\n          base: 45,\r\n          variations: {\r\n            0: 40, 1: 50,\r\n            2: 15, 3: 15,\r\n            4: 25, 5: 25,\r\n            6: 25, 7: 25,\r\n            8: 25, 9: 45,\r\n            10: 45, 11: 45,\r\n            12: 45, 13: 45,\r\n            14: 65, 15: 65,\r\n            16: 65, 17: 65,\r\n            18: 65\r\n          }\r\n        }\r\n      };\r\n\r\n      return vitamins;\r\n    }\r\n\r\n    const vitaminData = generateDetailedData();\r\n    const ages = Array.from({length: 19}, (_, i) => i); \/\/ 0 to 18 years\r\n\r\n    const colors = {\r\n      'Vitamin D (IU)': '#FFB900',\r\n      'Calcium (mg)': '#00B4D8',\r\n      'Iron (mg)': '#FF4D6D',\r\n      'Vitamin C (mg)': '#FF6B6B'\r\n    };\r\n\r\n    let selectedVitamin = 'Vitamin D (IU)';\r\n\r\n    \/\/ Create vitamin selection buttons\r\n    const controls = document.getElementById('chartControls');\r\n    Object.keys(vitaminData).forEach(vitamin => {\r\n      const button = document.createElement('button');\r\n      button.className = `chart-button ${vitamin === selectedVitamin ? 'active' : ''}`;\r\n      button.textContent = vitamin;\r\n      button.onclick = () => {\r\n        document.querySelectorAll('.chart-button').forEach(btn => btn.classList.remove('active'));\r\n        button.classList.add('active');\r\n        selectedVitamin = vitamin;\r\n        drawChart();\r\n        updateInfoTable();\r\n      };\r\n      controls.appendChild(button);\r\n    });\r\n\r\n    \/\/ Create legend\r\n    const legend = document.getElementById('chartLegend');\r\n    Object.entries(colors).forEach(([vitamin, color]) => {\r\n      const legendItem = document.createElement('div');\r\n      legendItem.className = 'legend-item';\r\n      legendItem.innerHTML = `\r\n        <div class=\"legend-color\" style=\"background: ${color}\"><\/div>\r\n        <span>${vitamin}<\/span>\r\n      `;\r\n      legend.appendChild(legendItem);\r\n    });\r\n\r\n    const canvas = document.getElementById('vitaminChart');\r\n    const ctx = canvas.getContext('2d');\r\n    canvas.width = 1200;\r\n    canvas.height = 500;\r\n\r\n    function drawChart() {\r\n      ctx.clearRect(0, 0, canvas.width, canvas.height);\r\n      \r\n      \/\/ Draw axes\r\n      ctx.beginPath();\r\n      ctx.moveTo(50, 450);\r\n      ctx.lineTo(1150, 450);\r\n      ctx.moveTo(50, 450);\r\n      ctx.lineTo(50, 50);\r\n      ctx.strokeStyle = '#2c3e50';\r\n      ctx.stroke();\r\n\r\n      \/\/ Draw labels\r\n      ctx.font = '14px Arial';\r\n      ctx.fillStyle = '#2c3e50';\r\n      ctx.textAlign = 'center';\r\n      ctx.fillText('Age (years)', 600, 490);\r\n      \r\n      ctx.save();\r\n      ctx.translate(20, 250);\r\n      ctx.rotate(-Math.PI\/2);\r\n      ctx.fillText(`${selectedVitamin} Requirements`, 0, 0);\r\n      ctx.restore();\r\n\r\n      \/\/ Calculate max value for scaling\r\n      const values = Object.values(vitaminData[selectedVitamin].variations);\r\n      const maxValue = Math.max(...values);\r\n      const scale = 380 \/ maxValue;\r\n\r\n      \/\/ Draw grid lines and age labels\r\n      ages.forEach((age, index) => {\r\n        const x = 80 + (index * 60);\r\n        \r\n        \/\/ Vertical grid lines\r\n        ctx.beginPath();\r\n        ctx.strokeStyle = '#eee';\r\n        ctx.moveTo(x, 50);\r\n        ctx.lineTo(x, 450);\r\n        ctx.stroke();\r\n\r\n        \/\/ Age labels\r\n        ctx.fillStyle = '#2c3e50';\r\n        ctx.fillText(age, x, 470);\r\n      });\r\n\r\n      \/\/ Draw data points and lines\r\n      ctx.beginPath();\r\n      ages.forEach((age, index) => {\r\n        const x = 80 + (index * 60);\r\n        const value = vitaminData[selectedVitamin].variations[age];\r\n        const y = 450 - (value * scale);\r\n        \r\n        if (index === 0) {\r\n          ctx.moveTo(x, y);\r\n        } else {\r\n          ctx.lineTo(x, y);\r\n        }\r\n\r\n        \/\/ Draw point\r\n        ctx.fillStyle = colors[selectedVitamin];\r\n        ctx.beginPath();\r\n        ctx.arc(x, y, 4, 0, Math.PI * 2);\r\n        ctx.fill();\r\n\r\n        \/\/ Draw value\r\n        ctx.fillStyle = '#2c3e50';\r\n        ctx.font = '12px Arial';\r\n        ctx.fillText(value, x, y - 10);\r\n      });\r\n\r\n      \/\/ Draw line connecting points\r\n      ctx.strokeStyle = colors[selectedVitamin];\r\n      ctx.lineWidth = 2;\r\n      ctx.stroke();\r\n    }\r\n\r\n    function updateInfoTable() {\r\n      const table = document.getElementById('infoTable');\r\n      table.innerHTML = `\r\n        <tr>\r\n          <th>Age (years)<\/th>\r\n          <th>${selectedVitamin} Requirement<\/th>\r\n          <th>Notes<\/th>\r\n        <\/tr>\r\n        ${ages.map(age => `\r\n          <tr>\r\n            <td>${age}<\/td>\r\n            <td>${vitaminData[selectedVitamin].variations[age]} ${selectedVitamin.match(\/\\((.*?)\\)\/)[1]}<\/td>\r\n            <td>${getAgeNote(age, selectedVitamin)}<\/td>\r\n          <\/tr>\r\n        `).join('')}\r\n      `;\r\n    }\r\n\r\n    function getAgeNote(age, vitamin) {\r\n      const notes = {\r\n        'Vitamin D (IU)': {\r\n          0: 'Essential for initial bone development',\r\n          1: 'Critical for continued bone growth',\r\n          14: 'Increased needs during adolescent growth spurt'\r\n        },\r\n        'Calcium (mg)': {\r\n          0: 'Important for early bone formation',\r\n          9: 'Higher needs during pre-teen years',\r\n          14: 'Peak requirement during adolescence'\r\n        },\r\n        'Iron (mg)': {\r\n          0: 'Important for early blood development',\r\n          14: 'Increased needs, especially for menstruating teens'\r\n        },\r\n        'Vitamin C (mg)': {\r\n          0: 'Supports immune system development',\r\n          14: 'Higher needs for tissue repair and growth'\r\n        }\r\n      };\r\n      \r\n      return notes[vitamin]?.[age] || 'Supports normal growth and development';\r\n    }\r\n\r\n    \/\/ Initial draw\r\n    drawChart();\r\n    updateInfoTable();\r\n\r\n    \/\/ Responsive canvas\r\n    window.addEventListener('resize', () => {\r\n      canvas.width = canvas.offsetWidth;\r\n      canvas.height = canvas.offsetWidth * 0.4;\r\n      drawChart();\r\n    });\r\n  <\/script><\/center>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[184],"tags":[],"class_list":["post-1842","post","type-post","status-publish","format-standard","hentry","category-calculator"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Vitamin Requirements by Age (0-18 years) - DonHit<\/title>\n<meta name=\"description\" content=\"Ensuring proper vitamin intake is essential for the growth and health of children. Vitamins play a crucial role in their physical development, brain function, and immune system\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/donhit.com\/en\/calculator\/vitamin-requirements-by-age\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Vitamin Requirements by Age (0-18 years) - DonHit\" \/>\n<meta property=\"og:description\" content=\"Ensuring proper vitamin intake is essential for the growth and health of children. Vitamins play a crucial role in their physical development, brain function, and immune system\" \/>\n<meta property=\"og:url\" content=\"https:\/\/donhit.com\/en\/calculator\/vitamin-requirements-by-age\/\" \/>\n<meta property=\"og:site_name\" content=\"DonHit - World of Tools\" \/>\n<meta property=\"article:published_time\" content=\"2025-01-06T08:09:28+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-02-07T08:54:10+00:00\" \/>\n<meta name=\"author\" content=\"DonHit\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DonHit\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Vitamin Requirements by Age (0-18 years) - DonHit","description":"Ensuring proper vitamin intake is essential for the growth and health of children. Vitamins play a crucial role in their physical development, brain function, and immune system","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/donhit.com\/en\/calculator\/vitamin-requirements-by-age\/","og_locale":"en_US","og_type":"article","og_title":"Vitamin Requirements by Age (0-18 years) - DonHit","og_description":"Ensuring proper vitamin intake is essential for the growth and health of children. Vitamins play a crucial role in their physical development, brain function, and immune system","og_url":"https:\/\/donhit.com\/en\/calculator\/vitamin-requirements-by-age\/","og_site_name":"DonHit - World of Tools","article_published_time":"2025-01-06T08:09:28+00:00","article_modified_time":"2025-02-07T08:54:10+00:00","author":"DonHit","twitter_card":"summary_large_image","twitter_misc":{"Written by":"DonHit","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/donhit.com\/en\/calculator\/vitamin-requirements-by-age\/#article","isPartOf":{"@id":"https:\/\/donhit.com\/en\/calculator\/vitamin-requirements-by-age\/"},"author":{"name":"DonHit","@id":"https:\/\/donhit.com\/en\/#\/schema\/person\/0c6ff7dcd8ba4810c56a532f09c33148"},"headline":"Vitamin Requirements by Age (0-18 years)","datePublished":"2025-01-06T08:09:28+00:00","dateModified":"2025-02-07T08:54:10+00:00","mainEntityOfPage":{"@id":"https:\/\/donhit.com\/en\/calculator\/vitamin-requirements-by-age\/"},"wordCount":12,"commentCount":0,"publisher":{"@id":"https:\/\/donhit.com\/en\/#\/schema\/person\/0c6ff7dcd8ba4810c56a532f09c33148"},"articleSection":["Calculator"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/donhit.com\/en\/calculator\/vitamin-requirements-by-age\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/donhit.com\/en\/calculator\/vitamin-requirements-by-age\/","url":"https:\/\/donhit.com\/en\/calculator\/vitamin-requirements-by-age\/","name":"Vitamin Requirements by Age (0-18 years) - DonHit","isPartOf":{"@id":"https:\/\/donhit.com\/en\/#website"},"datePublished":"2025-01-06T08:09:28+00:00","dateModified":"2025-02-07T08:54:10+00:00","description":"Ensuring proper vitamin intake is essential for the growth and health of children. Vitamins play a crucial role in their physical development, brain function, and immune system","breadcrumb":{"@id":"https:\/\/donhit.com\/en\/calculator\/vitamin-requirements-by-age\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/donhit.com\/en\/calculator\/vitamin-requirements-by-age\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/donhit.com\/en\/calculator\/vitamin-requirements-by-age\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Trang ch\u1ee7","item":"https:\/\/donhit.com\/en\/"},{"@type":"ListItem","position":2,"name":"Calculator","item":"https:\/\/donhit.com\/en\/category\/calculator\/"},{"@type":"ListItem","position":3,"name":"Vitamin Requirements by Age (0-18 years)"}]},{"@type":"WebSite","@id":"https:\/\/donhit.com\/en\/#website","url":"https:\/\/donhit.com\/en\/","name":"DonHit - World of tools","description":"","publisher":{"@id":"https:\/\/donhit.com\/en\/#\/schema\/person\/0c6ff7dcd8ba4810c56a532f09c33148"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/donhit.com\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/donhit.com\/en\/#\/schema\/person\/0c6ff7dcd8ba4810c56a532f09c33148","name":"DonHit","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/donhit.com\/en\/#\/schema\/person\/image\/","url":"https:\/\/donhit.com\/en\/wp-content\/uploads\/2024\/11\/logo-donhit.webp","contentUrl":"https:\/\/donhit.com\/en\/wp-content\/uploads\/2024\/11\/logo-donhit.webp","width":400,"height":267,"caption":"DonHit"},"logo":{"@id":"https:\/\/donhit.com\/en\/#\/schema\/person\/image\/"},"description":"DonHit is a website designed to provide useful tools for everyone. Its primary goal is to support and empower the community. All the tools available on the site are completely free to use.","sameAs":["https:\/\/donhit.com\/en"],"url":"https:\/\/donhit.com\/en\/author\/admin_don\/"}]}},"_links":{"self":[{"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/posts\/1842","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/comments?post=1842"}],"version-history":[{"count":3,"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/posts\/1842\/revisions"}],"predecessor-version":[{"id":2124,"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/posts\/1842\/revisions\/2124"}],"wp:attachment":[{"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/media?parent=1842"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/categories?post=1842"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/tags?post=1842"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}