{"id":183,"date":"2024-07-08T14:56:03","date_gmt":"2024-07-08T14:56:03","guid":{"rendered":"https:\/\/xn--72c3dya.energynpu.com\/?p=183"},"modified":"2024-07-08T15:31:27","modified_gmt":"2024-07-08T15:31:27","slug":"%e0%b8%81%e0%b8%a3%e0%b8%b2%e0%b8%9f","status":"publish","type":"post","link":"https:\/\/xn--72c3dya.energynpu.com\/?p=183","title":{"rendered":"\u0e01\u0e23\u0e32\u0e1f"},"content":{"rendered":"\n<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n    <meta charset=\"UTF-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>Chart Example<\/title>\n    <script src=\"https:\/\/cdn.jsdelivr.net\/npm\/chart.js\"><\/script>\n<\/head>\n<body>\n    <canvas id=\"myChart\" width=\"400\" height=\"200\"><\/canvas>\n    <script>\n        \/\/ \u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e08\u0e32\u0e01 CSV\n        const data = [\n            {date: '18\/7\/2024', number: 4},\n            {date: '10\/7\/2024', number: 10},\n            {date: '17\/7\/2024', number: 11}\n        ];\n\n        \/\/ \u0e41\u0e1b\u0e25\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e17\u0e35\u0e48\u0e44\u0e14\u0e49\u0e21\u0e32\u0e40\u0e1b\u0e47\u0e19\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a\u0e17\u0e35\u0e48 Chart.js \u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\n        const labels = data.map(item => item.date);\n        const values = data.map(item => item.number);\n\n        const ctx = document.getElementById('myChart').getContext('2d');\n        const myChart = new Chart(ctx, {\n            type: 'bar', \/\/ \u0e04\u0e38\u0e13\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e40\u0e1b\u0e25\u0e35\u0e48\u0e22\u0e19\u0e40\u0e1b\u0e47\u0e19 'line', 'pie', \u0e40\u0e1b\u0e47\u0e19\u0e15\u0e49\u0e19\n            data: {\n                labels: labels,\n                datasets: [{\n                    label: 'Numbers',\n                    data: values,\n                    backgroundColor: 'rgba(75, 192, 192, 0.2)',\n                    borderColor: 'rgba(75, 192, 192, 1)',\n                    borderWidth: 1\n                }]\n            },\n            options: {\n                scales: {\n                    y: {\n                        beginAtZero: true\n                    }\n                }\n            }\n        });\n    <\/script>\n<\/body>\n<\/html>\n\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Chart Example<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-183","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/xn--72c3dya.energynpu.com\/index.php?rest_route=\/wp\/v2\/posts\/183","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xn--72c3dya.energynpu.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xn--72c3dya.energynpu.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xn--72c3dya.energynpu.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xn--72c3dya.energynpu.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=183"}],"version-history":[{"count":7,"href":"https:\/\/xn--72c3dya.energynpu.com\/index.php?rest_route=\/wp\/v2\/posts\/183\/revisions"}],"predecessor-version":[{"id":196,"href":"https:\/\/xn--72c3dya.energynpu.com\/index.php?rest_route=\/wp\/v2\/posts\/183\/revisions\/196"}],"wp:attachment":[{"href":"https:\/\/xn--72c3dya.energynpu.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=183"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xn--72c3dya.energynpu.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=183"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xn--72c3dya.energynpu.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=183"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}