{"id":1393,"date":"2018-11-25T20:15:08","date_gmt":"2018-11-25T11:15:08","guid":{"rendered":"http:\/\/kats-eye.net\/info\/?p=1393"},"modified":"2020-01-19T08:28:17","modified_gmt":"2020-01-18T23:28:17","slug":"chartj_js_http","status":"publish","type":"post","link":"https:\/\/kats-eye.net\/info\/2018\/11\/25\/chartj_js_http\/","title":{"rendered":"\u30b5\u30fc\u30d0\u30fc\u306b\u3042\u308b\u6e29\u5ea6\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u3001Chart.js\u3092\u4f7f\u3063\u3066\u30b0\u30e9\u30d5\u3092\u4f5c\u6210\u3059\u308b"},"content":{"rendered":"<p>&nbsp;<\/p>\n<table style=\"width: 98.9452%; border-collapse: collapse; border-style: none; height: 27px;\" border=\"1\">\n<tbody>\n<tr style=\"height: 27px;\">\n<td style=\"width: 3.37549%; border-style: none; background-color: #1414f7; height: 27px;\"><\/td>\n<td style=\"width: 2.15054%; border-style: none; background-color: #f0f09b; height: 27px;\"><\/td>\n<td style=\"width: 95.3341%; border-style: none; background-color: #f0f09b; height: 27px;\"><span style=\"color: #000080; font-size: 18pt;\"><strong>\u904e\u53bb\u306e\u95a2\u9023\u8a18\u4e8b<\/strong><\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>ESPr Developer\u3067\u6e29\u5ea6\u6e2c\u5b9a\u3057\u3001<img loading=\"lazy\" src=\"\/\/ad.jp.ap.valuecommerce.com\/servlet\/gifbanner?sid=3422639&amp;pid=885466364\" width=\"0\" height=\"1\" border=\"0\" \/>\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\u4e0a\u306eSQLite\u306b\u30c7\u30fc\u30bf\u84c4\u7a4d\u3057\u307e\u3059\u3002\u30b5\u30fc\u30d0\u30fc\u3068HTTP\u901a\u4fe1\u3092\u884c\u3044\u84c4\u7a4d\u3057\u305f\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u3001Chart.js\u3092\u4f7f\u3063\u3066\u30b0\u30e9\u30d5\u51fa\u529b\u3059\u308b\u3002<br \/>\n\u4eca\u56de\u306f\u3053\u308c\u3089\u4e00\u9023\u306e\u51e6\u7406\u306e\u6700\u7d42\u56de\u3068\u306a\u308a\u307e\u3059\u3002\u904e\u53bb\u306e\u95a2\u9023\u6295\u7a3f\u306f\u4e0b\u8a18\u3068\u306a\u308a\u307e\u3059\u306e\u3067\u3001\u3088\u308d\u3057\u3051\u308c\u3070\u3054\u78ba\u8a8d\u4e0b\u3055\u3044\u3002<\/p>\n<ul>\n<li><strong><a class=\"row-title\" href=\"https:\/\/kats-eye.net\/info\/2018\/11\/18\/espr-adt7410\/\" target=\"_blank\" rel=\"noopener\" aria-label=\"\u300cESPr\u00ae Developer\u3092\u4f7f\u3063\u3066\u3001\u6e29\u5ea6\u3092\u6e2c\u5b9a\u3057\u3001\u30b5\u30fc\u30d0\u30fc\u4e0a\u306eSQLite\u30d5\u30a1\u30a4\u30eb\u306b\u8a18\u9332\u3057\u3066\u307f\u308b\u300d (\u7de8\u96c6)\">ESPr Developer\u3092\u4f7f\u3063\u3066\u3001\u6e29\u5ea6\u3092\u6e2c\u5b9a\u3057\u3001\u30b5\u30fc\u30d0\u30fc\u4e0a\u306eSQLite\u30d5\u30a1\u30a4\u30eb\u306b\u8a18\u9332\u3057\u3066\u307f\u308b<\/a><\/strong><\/li>\n<li><strong><a class=\"row-title\" href=\"https:\/\/kats-eye.net\/info\/2018\/11\/20\/sqlite_edit\/\" target=\"_blank\" rel=\"noopener\" aria-label=\"\u300cSQLite\u30d5\u30a1\u30a4\u30eb\u306b\u8a18\u9332\u3057\u305f\u30c7\u30fc\u30bf\u3092PHP\u3067\u52a0\u5de5\u3059\u308b\u300d (\u7de8\u96c6)\">SQLite\u30d5\u30a1\u30a4\u30eb\u306b\u8a18\u9332\u3057\u305f\u30c7\u30fc\u30bf\u3092PHP\u3067\u52a0\u5de5\u3059\u308b<\/a><\/strong><\/li>\n<li><strong><a class=\"row-title\" href=\"https:\/\/kats-eye.net\/info\/2018\/11\/21\/http_test\/\" target=\"_blank\" rel=\"noopener\" aria-label=\"\u300cHTTP\u901a\u4fe1\u3092\u4f7f\u3063\u3066\u3001\u30b5\u30fc\u30d0\u30fc\u4e0a\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u300d (\u7de8\u96c6)\">HTTP\u901a\u4fe1\u3092\u4f7f\u3063\u3066\u3001\u30b5\u30fc\u30d0\u30fc\u4e0a\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b<\/a><\/strong><\/li>\n<li><strong><a class=\"row-title\" href=\"https:\/\/kats-eye.net\/info\/2018\/11\/23\/chartj_js\/\" target=\"_blank\" rel=\"noopener\" aria-label=\"\u300cChart.js \u3092\u4f7f\u3063\u3066\u30b0\u30e9\u30d5\u3092\u66f8\u304f\u300d (\u7de8\u96c6)\">Chart.js \u3092\u4f7f\u3063\u3066\u30b0\u30e9\u30d5\u3092\u66f8\u304f<\/a><\/strong><\/li>\n<\/ul>\n<table style=\"width: 98.9452%; border-collapse: collapse; border-style: none; height: 27px;\" border=\"1\">\n<tbody>\n<tr style=\"height: 27px;\">\n<td style=\"width: 3.37549%; border-style: none; background-color: #1414f7; height: 27px;\"><\/td>\n<td style=\"width: 2.15054%; border-style: none; background-color: #f0f09b; height: 27px;\"><\/td>\n<td style=\"width: 95.3341%; border-style: none; background-color: #f0f09b; height: 27px;\"><span style=\"color: #000080; font-size: 18pt;\"><strong>\u30b5\u30fc\u30d0\u30fc\u4e0a\u306e\u30c7\u30fc\u30bf\u3092\u30b0\u30e9\u30d5\u5316<\/strong><\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"text-align: left;\"><img loading=\"lazy\" src=\"\/\/ad.jp.ap.valuecommerce.com\/servlet\/gifbanner?sid=3422639&amp;pid=885466364\" width=\"0\" height=\"1\" border=\"0\" \/>\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\u4e0a\u306eSQLite\u306b\u84c4\u7a4d\u3057\u305f\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057Chart.js\u3092\u4f7f\u3063\u3066\u30b0\u30e9\u30d5\u51fa\u529b\u3057\u307e\u3059\u3002\u7d50\u679c\u306f\u6b21\u306e\uff11\u3064\u76ee\u306e\u56f3\u306e\u901a\u308a\u3067\u3059\u3002\u5148\u56de\u3001\u6e29\u5ea6\u30c7\u30fc\u30bf\u3092\u76f4\u63a5\u30d7\u30ed\u30b0\u30e9\u30e0\u5185\u306b\u66f8\u304d\u8fbc\u3093\u3060\u3082\u306e\u3068\u5916\u89b3\u7684\u306b\u9055\u3044\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u6e29\u5ea6\u30c7\u30fc\u30bf\u306f\u30b5\u30fc\u30d0\u30fc\u4e0a\u306eSQLite\u30d5\u30a1\u30a4\u30eb\u304b\u3089HTTP\u901a\u4fe1\u3092\u4f7f\u3063\u3066\u53d6\u5f97\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u307e\u305f\u3001\uff12\u3064\u76ee\u306e\u56f3\u306f\u3001\u30b5\u30fc\u30d0\u30fc\u4e0a\u306ePHP\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u767a\u751f\u3055\u305b\u305f\u30e9\u30f3\u30c0\u30e0\u30c7\u30fc\u30bf\u3068\u30d6\u30e9\u30a6\u30b6\u30fc\u4e0a\u3067\u767a\u751f\u3055\u305b\u305f\u3082\u306e\u3092\u30b0\u30e9\u30d5\u306b\u53cd\u6620\u3055\u305b\u305f\u69d8\u5b50\u3067\u3059\u3002\u3042\u307e\u308a\u6df1\u3044\u610f\u5473\u306f\u306a\u3044\u306e\u3067\u3059\u304c\u3001\u901f\u5ea6\u306e\u5dee\u3092\u4f53\u611f\u3067\u304d\u308b\u304b\u306a\u3068\u601d\u3063\u3066\u4f5c\u3063\u3066\u307f\u307e\u3057\u305f\u3002\u5f53\u7136\u306e\u3053\u3068\u306a\u304c\u3089\u3001\u3059\u3054\u304f\u9045\u3044\u3068\u3044\u3046\u307b\u3069\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u30b5\u30fc\u30d0\u30fc\u5074\u3067\u51e6\u7406\u3055\u305b\u308b\u3068\u5c11\u3057\u9593\u304c\u3042\u304f\u611f\u3058\u304c\u3057\u307e\u3059\u3002<br \/>\n\u30dc\u30bf\u30f3\u306f\uff13\u3064\u3042\u308a\u3001\u305d\u308c\u305e\u308c\u306b\u51e6\u7406\u5185\u5bb9\u3092\u66f8\u3044\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u8aac\u660e\u306f\u7701\u7565\u3055\u305b\u3066\u9802\u304d\u307e\u3059\u3002<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" class=\"aligncenter size-full wp-image-1425\" src=\"https:\/\/kats-eye.net\/info\/wp-content\/uploads\/2018\/11\/record01.jpg\" alt=\"\" width=\"1009\" height=\"653\" srcset=\"https:\/\/kats-eye.net\/info\/wp-content\/uploads\/2018\/11\/record01.jpg 1009w, https:\/\/kats-eye.net\/info\/wp-content\/uploads\/2018\/11\/record01-300x194.jpg 300w, https:\/\/kats-eye.net\/info\/wp-content\/uploads\/2018\/11\/record01-768x497.jpg 768w\" sizes=\"(max-width: 1009px) 100vw, 1009px\" \/><span style=\"text-decoration: underline;\"><a href=\"https:\/\/kats-eye.net\/test_prog\/1811002_chartjs_sample\/101\" target=\"_blank\" rel=\"noopener\">\uff13\u65e5\u9593\u306e\u6e29\u5ea6\u6e2c\u5b9a\u7d50\u679c<\/a>\u00a0 \u00a0\u201c<a href=\"https:\/\/kats-eye.net\/test_prog\/1811002_chartjs_sample\/101\" target=\"_blank\" rel=\"noopener\">101.html<\/a>\u201d \u3000\u203b\u30ea\u30f3\u30af\u6709<\/span><\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" class=\"aligncenter size-full wp-image-1427\" src=\"https:\/\/kats-eye.net\/info\/wp-content\/uploads\/2018\/11\/record02.jpg\" alt=\"\" width=\"1007\" height=\"642\" srcset=\"https:\/\/kats-eye.net\/info\/wp-content\/uploads\/2018\/11\/record02.jpg 1007w, https:\/\/kats-eye.net\/info\/wp-content\/uploads\/2018\/11\/record02-300x191.jpg 300w, https:\/\/kats-eye.net\/info\/wp-content\/uploads\/2018\/11\/record02-768x490.jpg 768w\" sizes=\"(max-width: 1007px) 100vw, 1007px\" \/><span style=\"text-decoration: underline;\">\u30b5\u30fc\u30d0\u30fc\u51e6\u7406\u3001\u30d6\u30e9\u30a6\u30b6\u51e6\u7406\u306b\u3088\u308b\u30e9\u30f3\u30c0\u30e0\u30c7\u30fc\u30bf\u30b0\u30e9\u30d5\u5316<\/span><\/p>\n<p>\u306a\u305c\u304b\u3001\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u6e29\u5ea6\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u3001\u30b0\u30e9\u30d5\u306b\u53cd\u6620\u3055\u305b\u308b\u3068\u7e26\u8ef8\u306e\u30b9\u30b1\u30fc\u30eb\u304c\u5909\u308f\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002\u5c11\u3057\u6c17\u306b\u306a\u308a\u307e\u3059\u304c\u3001\u4eca\u306e\u3068\u3053\u308d\u305d\u308c\u307b\u3069\u5fc5\u8981\u6027\u304c\u306a\u3044\u306e\u3067\u3001\u4eca\u306e\u3068\u3053\u308d\u898b\u306a\u304b\u3063\u305f\u3053\u3068\u306b\u3055\u305b\u3066\u9802\u304d\u307e\u3059\u3002\u4e00\u5fdc\u3001\u4e88\u5b9a\u3057\u3066\u3044\u305f\u3053\u3068\u306f\u3067\u304d\u305f\u306e\u3067\u3001\u6b21\u306b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u7d39\u4ecb\u3057\u3066\u4eca\u56de\u306f\u5b8c\u4e86\u306b\u3057\u307e\u3059\u3002<\/p>\n<p><noscript><a href=\"\/\/ck.jp.ap.valuecommerce.com\/servlet\/referral?sid=3422639&#038;pid=885499439\" target=\"_blank\" rel=\"nofollow\"><img src=\"\/\/ad.jp.ap.valuecommerce.com\/servlet\/gifbanner?sid=3422639&#038;pid=885499439\" border=\"0\"><\/a><\/noscript><\/p>\n<table style=\"width: 98.9452%; border-collapse: collapse; border-style: none; height: 27px;\" border=\"1\">\n<tbody>\n<tr style=\"height: 27px;\">\n<td style=\"width: 3.37549%; border-style: none; background-color: #1414f7; height: 27px;\"><\/td>\n<td style=\"width: 2.15054%; border-style: none; background-color: #f0f09b; height: 27px;\"><\/td>\n<td style=\"width: 95.3341%; border-style: none; background-color: #f0f09b; height: 27px;\"><span style=\"color: #000080; font-size: 18pt;\"><strong>\u30d7\u30ed\u30b0\u30e9\u30e0<\/strong><\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"text-decoration: underline; background-color: #ffff99;\">\uff08\uff11\uff09\u30d6\u30e9\u30a6\u30b6\u5074\u30d7\u30ed\u30b0\u30e9\u30e0\uff08HTML\uff0bJavaScript\uff09<\/span><br \/>\n\u884c\u756a13\uff5e24\u306f\u3001HTTP API\u3092\u8a2d\u5b9a\u3059\u308b\u95a2\u6570\uff0c\u884c\u756a27\uff5e55\u306f\u30b5\u30fc\u30d0\u30fc\u5074\u306ePHP\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u8d77\u52d5\u3057\u3001\u6e29\u5ea6\u30c7\u30fc\u30bf\uff08\u3082\u3057\u304f\u306f\u30e9\u30f3\u30c0\u30e0\u30c7\u30fc\u30bf\uff09\u3092\u53d6\u5f97\u3057\u3001\u914d\u5217\u5909\u6570\u306b\u8a2d\u5b9a\u5f8c\u3001Chart.js\u306b\u53cd\u6620\u3055\u305b\u308b\u95a2\u6570\u3067\u3059\u3002\u30b5\u30fc\u30d0\u30fc\u5074\u306ePHP\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\uff12\u3064\u3042\u308a\u3001\uff11\u3064\u306f\u30e9\u30f3\u30c0\u30e0\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3001\u3082\u3046\uff11\u3064\u306f\u6e2c\u5b9a\u6e29\u5ea6\u3092\u53d6\u5f97\u3059\u308b\u95a2\u6570\u3067\u3059\u3002\u884c\u756a74\u3068\u884c\u756a78\u3067\u30b5\u30fc\u30d0\u30fc\u5074\u306ePHP\u3092\u8d77\u52d5\u3059\u308b\u30dc\u30bf\u30f3\u3092\u5f62\u6210\u3057\u3001\u3053\u306e\u30dc\u30bf\u30f3\u304c\u30af\u30ea\u30c3\u30af\u3055\u308c\u308b\u3068\u3001\u305d\u308c\u305e\u308c\u884c\u756a172\uff5e174\uff0c\u884c\u756a176\uff5e178\u304c\u5fdc\u7b54\u3057\u3001\u5148\u307b\u3069\u306e\u95a2\u6570\uff08\u884c\u756a27\uff5e55\uff09\u3092\u547c\u3073\u51fa\u3057\u307e\u3059\u3002\u3053\u306e\u6642\u5f15\u304d\u6570\u3068\u3057\u3066\u201cprg_no\u201d\u304c\u95a2\u6570\u306b\u6e21\u3055\u308c\u307e\u3059\u304c\u3001\u884c\u756a34\uff5e38\u3067\u3053\u306e\u5f15\u304d\u6570\u306e\u5024\u306b\u3088\u3063\u3066\u3001\u547c\u3073\u51fa\u3059\u30b5\u30fc\u30d0\u30fc\u5074\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5909\u3048\u3066\u3044\u307e\u3059\u3002\u884c\u756a30\uff5e52\u306f\u30eb\u30fc\u30d7\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u304c\u3001\uff11\u65e5\u5206\u3065\u3064\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\uff13\u56de\u7e70\u308a\u8fd4\u3059\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u53d6\u5f97\u3057\u305f\u30c7\u30fc\u30bf\u306f\u3001\u201c[\u3000]\u201d\u3067\u56f2\u307e\u308c\u305f \u201c , \u201d \u533a\u5207\u308a\u306e\u6587\u5b57\u5217\u3067\u3059\u306e\u3067\u3001\u884c\u756a46\u3067\u4e0d\u8981\u6587\u5b57\u3092\u7121\u304f\u3057\u3001\u914d\u5217\u306b\u683c\u7d0d\u3057\u307e\u3059\u3002\u884c\u756a31\u3067\u30eb\u30fc\u30d7\u6570\u3092\u6587\u5b57\u306b\u3057\u3001\u884c\u756a41\uff0c42\u3067\u30b5\u30fc\u30d0\u30fc\u5074\u306b\u9001\u308b\u70ba\u306e\u51e6\u7406\u3092\u3057\u3066\u3044\u307e\u3059\u3002\u30b5\u30fc\u30d0\u30fc\u5074\u3067\u306f\u6e29\u5ea6\u6e2c\u5b9a\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u5834\u5408\u3001\u3053\u306e\u30eb\u30fc\u30d7\u56de\u6570\u306b\u5fdc\u3058\u3066\u5bfe\u8c61\u65e5\u4ed8\u5224\u5b9a\u3057\u3001\u6e29\u5ea6\u30c7\u30fc\u30bf\u53d6\u5f97\u5f8c\u3001\u30d6\u30e9\u30a6\u30b6\u30fc\u306b\u8fd4\u4fe1\u3057\u307e\u3059\u3002\u884c\u756a48\uff5e50\u3067\u306f\u3001\u914d\u5217\u306b\u683c\u7d0d\u3055\u308c\u305f\u5024\u3092Chart.js\u306b\u53cd\u6620\u3055\u305b\u308b\u70ba\u306b\u30c7\u30fc\u30bf\u306e\u5165\u308c\u66ff\u3048\u3092\u884c\u3063\u3066\u3044\u307e\u3059\u3002<br \/>\n\u884c\u756a161\uff5e170\u3067\u306f\u3001\u30d6\u30e9\u30a6\u30b6\u5074\u306e\u4e71\u6570\u30dc\u30bf\u30f3\u304c\u30af\u30ea\u30c3\u30af\u3055\u308c\u305f\u6642\u306b\u4e71\u6570\u3092\u767a\u751f\u3059\u308b\u51e6\u7406\u3067\u3059\u3002\u201cChart.js\u201d\u306b\u76f4\u63a5\u95a2\u9023\u3059\u308b\u90e8\u5206\u306f\u5148\u56de\u6295\u7a3f\u3068\u91cd\u8907\u3057\u307e\u3059\u306e\u3067\u7701\u7565\u3055\u305b\u3066\u9802\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"height-set:true lang:js decode:true \">&lt;!DOCTYPE html&gt;\r\n&lt;html lang=\"ja\"&gt;\r\n&lt;head&gt;\r\n&lt;meta charset=\"UTF-8\"&gt;\r\n\r\n\t&lt;title&gt;\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u6e29\u5ea6\u6e2c\u5b9a\u7d50\u679c\u53d6\u5f97&lt;\/title&gt;\r\n\t&lt;script src=\"js_lib\/Chart.bundle.js\"&gt;&lt;\/script&gt;\r\n\t&lt;script src=\"js_lib\/utils.js\"&gt;&lt;\/script&gt;\r\n\r\n   \t&lt;script type=\"text\/javascript\"&gt;\r\n\r\n\t    \/\/ HTTP\u901a\u4fe1API\u8a2d\u5b9a\r\n\t    function createXmlHttpRequest(){\r\n    \t        var xmlhttp=null;\r\n    \t        if(window.ActiveXObject){\r\n        \t    try { xmlhttp=new ActiveXObject(\"Msxml2.XMLHTTP\"); }\r\n        \t    catch(e) { try { xmlhttp = new ActiveXObject(\"Microsoft.XMLHTTP\"); }\r\n            \t\t   catch (e2){ }\r\n                    }\r\n    \t        }else if(window.XMLHttpRequest){\r\n        \t    xmlhttp = new XMLHttpRequest();\r\n    \t        }\r\n    \t        return xmlhttp;\r\n\t    }\r\n\r\n\t    \/\/ \u30b5\u30fc\u30d0\u30fc\u5074\uff30\uff28\uff30\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u8d77\u52d5\u3057\u3001\u6e29\u5ea6\u6e2c\u5b9a\u7d50\u679c\u3092\u5f97\u308b\r\n\t    function exec_svr_prg(prg_no){\r\n\r\n\t    \tvar rtn_all = \"\" ;\r\n\t\tfor (var j = 0 ; j &lt; 3 ; j = j + 1 ){\r\n\t\t    var sch_inf = String(j) ;\r\n    \t            var xmlhttp = createXmlHttpRequest();\r\n    \t            if(xmlhttp != null){\r\n\t\t\tif(prg_no == \"101\"){\r\n        \t    \t    xmlhttp.open(\"POST\", \"101_*****.php\", false);\r\n        \t    \t}else{\r\n\t\t\t    xmlhttp.open(\"POST\", \"102_*****.php\", false);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\txmlhttp.setRequestHeader(\"Content-Type\", \"application\/x-www-form-urlencoded\") ;\r\n        \t    \tvar data = \"data=\"+sch_inf;\r\n        \t    \txmlhttp.send(data);\r\n        \t    \tvar rtn = xmlhttp.responseText ;\r\n\t    \t\trtn_all = rtn_all + rtn ;\r\n\r\n\t\t\tvar rtn_Ary = rtn.replace(\"[\",\"\").replace(\"]\",\"\").replace(\" \",\"\").replace(\"\u3000\",\"\").split(\",\") ;\r\n\r\n\t\t\tif(j == 0) { for (var i=0 , len = rtn_Ary.length ; i &lt; len ; ++i ){ data_00[i] = rtn_Ary[i] ; } }\r\n\t\t\telse if(j == 1) { for (var i=0 , len = rtn_Ary.length ; i &lt; len ; ++i ){ data_01[i] = rtn_Ary[i] ; } }\r\n\t\t\telse if(j == 2) { for (var i=0 , len = rtn_Ary.length ; i &lt; len ; ++i ){ data_02[i] = rtn_Ary[i] ; } }\r\n\t\t    }\r\n\t        }\r\n\r\n\t\twindow.myLine.update();\r\n\t    }\r\n\r\n    &lt;\/script&gt;\r\n\r\n\t&lt;style&gt;\r\n\tcanvas{\r\n\t\t-moz-user-select: none;\r\n\t\t-webkit-user-select: none;\r\n\t\t-ms-user-select: none;\r\n\t}\r\n\t&lt;\/style&gt;\r\n&lt;\/head&gt;\r\n\r\n&lt;body&gt;\r\n\t&lt;div style=\"width:75%;\"&gt;\r\n\t\t&lt;canvas id=\"canvas\"&gt;&lt;\/canvas&gt;\r\n\t&lt;\/div&gt;\r\n\t&lt;br&gt;\r\n\r\n\t&lt;button id=\"randData_Svr\"&gt;\u4e71\u6570\uff08\u30b5\u30fc\u30d0\u30fc\u51e6\u7406\uff08PHP\uff09\uff09&lt;\/button&gt;\r\n\t&lt;button id=\"randomizeData\"&gt;\u4e71\u6570\uff08\u30d6\u30e9\u30a6\u30b6\u51e6\u7406\uff08JavaScipt\uff09\uff09&lt;\/button&gt;\r\n\r\n\t&lt;br&gt;&lt;br&gt;\r\n\t&lt;button id=\"get_Temp_Svr\"&gt;\u6e29\u5ea6\u6e2c\u5b9a\u7d50\u679c\u53d6\u5f97\uff08\u30b5\u30fc\u30d0\u30fc\u51e6\u7406\uff08PHP\uff09\uff09&lt;\/button&gt;\r\n\t&lt;!--\r\n\t&lt;form&gt;\r\n\t\t&lt;input type=\"button\" name=\"btn\" id=\"btn01\" onClick=\"exec_svr_prg('102');\" value=\"\u6e29\u5ea6\u6e2c\u5b9a\u7d50\u679c\u53d6\u5f97\uff08\u30b5\u30fc\u30d0\u30fc\u51e6\u7406\uff08PHP\uff09\uff09\"&gt;\r\n\t&lt;\/form&gt;\r\n\t--&gt;\r\n\r\n\t&lt;script&gt;\r\n\r\n\t\t\/\/ 18\uff5e28\u306e\u4e71\u6570\u3092\u751f\u6210\r\n\t\tvar randomScalingFactor = function() {\r\n\t\t\treturn 18 + Math.random() * 10;\r\n\t\t};\r\n\r\n\t\t\/\/ \u521d\u671f\u30c7\u30fc\u30bf\u8a2d\u5b9a\r\n\t\tvar data_00 = [15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15];\r\n\t\tvar data_01 = [16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16];\r\n\t\tvar data_02 = [17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17];\r\n\r\n\t\tvar config = {\r\n\t\t\ttype: 'line',\r\n\t\t\tdata: {\r\n\t\t\t\tlabels: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12' , '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23'],\r\n\t\t\t\tdatasets: [{\r\n\t\t\t\t\tlabel: '\uff11\uff11\u6708\uff11\uff19\u65e5\uff08\u6708\uff09',\r\n\t\t\t\t\tdata: data_00,\r\n\t\t\t\t\tborderColor: window.chartColors.red,\r\n\t\t\t\t\tbackgroundColor: 'rgba(0, 0, 0, 0)',\r\n\t\t\t\t\tfill: false,\r\n\t\t\t\t\tlineTension: 0\r\n\t\t\t\t}, {\r\n\t\t\t\t\tlabel: '\uff11\uff11\u6708\uff12\uff10\u65e5\uff08\u706b\uff09',\r\n\t\t\t\t\tdata: data_01,\r\n\t\t\t\t\tborderColor: window.chartColors.blue,\r\n\t\t\t\t\tbackgroundColor: 'rgba(0, 0, 0, 0)',\r\n\t\t\t\t\tfill: false,\r\n\t\t\t\t\tlineTension: 0\r\n\t\t\t\t}, {\r\n\t\t\t\t\tlabel: '\uff11\uff11\u6708\uff12\uff11\u65e5\uff08\u6c34\uff09',\r\n\t\t\t\t\tdata: data_02,\r\n\t\t\t\t\tborderColor: window.chartColors.green,\r\n\t\t\t\t\tbackgroundColor: 'rgba(0, 0, 0, 0)',\r\n\t\t\t\t\tfill: false,\r\n\t\t\t\t\tlineTension: 0\r\n\t\t\t\t}]\r\n\t\t\t},\r\n\t\t\toptions: {\r\n\t\t\t\tresponsive: true,\r\n\t\t\t\ttitle: {\r\n\t\t\t\t\tdisplay: true,\r\n\t\t\t\t\ttext: '\uff13\u65e5\u9593\u306e\u6e29\u5ea6\u6e2c\u5b9a\u7d50\u679c'\r\n\t\t\t\t},\r\n\t\t\t\ttooltips: {\r\n\t\t\t\t\tmode: 'index'\r\n\t\t\t\t},\r\n\t\t\t\tscales: {\r\n\t\t\t\t\txAxes: [{\r\n\t\t\t\t\t\tdisplay: true,\r\n\t\t\t\t\t\tscaleLabel: {\r\n\t\t\t\t\t\t\tdisplay: true,\r\n\t\t\t\t\t\t\tlabelString: '\u6642\u523b [\u6642]'\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}],\r\n\t\t\t\t\tyAxes: [{\r\n\t\t\t\t\t\tdisplay: true,\r\n\t\t\t\t\t\tscaleLabel: {\r\n\t\t\t\t\t\t\tdisplay: true,\r\n\t\t\t\t\t\t\tlabelString: '\u6e29\u5ea6 [\u2103]'\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\tticks: {\r\n\t\t\t\t\t\t\tsuggestedMin: 15,\r\n\t\t\t\t\t\t\tsuggestedMax: 30,\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}]\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\twindow.onload = function() {\r\n\t\t\tvar ctx = document.getElementById('canvas').getContext('2d');\r\n\t\t\twindow.myLine = new Chart(ctx, config);\r\n\t\t};\r\n\r\n\t\tdocument.getElementById('randomizeData').addEventListener('click', function() {\r\n\t\t    for (var j = 0 ; j &lt; 3 ; j = j + 1 ){\r\n\t\t\tfor (var i = 0, len = data_00.length; i &lt; len; ++i) {\r\n\t\t\t    if(j == 0) { data_00[i] = randomScalingFactor(); }\r\n\t\t\t    else if(j == 1) { data_01[i] = randomScalingFactor(); }\r\n\t\t\t    else if(j == 2) { data_02[i] = randomScalingFactor(); }\r\n\t\t\t}\r\n\t\t    }\r\n\t\t\twindow.myLine.update();\r\n\t\t});\r\n\r\n\t\tdocument.getElementById('randData_Svr').addEventListener('click', function() {\r\n\t\t\tvar rtn = exec_svr_prg('101');\r\n\t\t});\r\n\r\n\t\tdocument.getElementById('get_Temp_Svr').addEventListener('click', function() {\r\n\t\t\tvar rtn = exec_svr_prg('102');\r\n\t\t});\r\n\r\n\t&lt;\/script&gt;\r\n&lt;\/body&gt;\r\n\r\n&lt;\/html&gt;<\/pre>\n<p><noscript><a href=\"\/\/ck.jp.ap.valuecommerce.com\/servlet\/referral?sid=3422639&#038;pid=885510274\" target=\"_blank\" rel=\"nofollow\"><img src=\"\/\/ad.jp.ap.valuecommerce.com\/servlet\/gifbanner?sid=3422639&#038;pid=885510274\" border=\"0\"><\/a><\/noscript><\/p>\n<p><span style=\"text-decoration: underline; background-color: #ffff99;\">\uff08\uff12\uff09\u30b5\u30fc\u30d0\u30fc\u5074 \u6e29\u5ea6\u30c7\u30fc\u30bf\u53d6\u5f97\u30d7\u30ed\u30b0\u30e9\u30e0\uff08PHP\uff09<\/span><br \/>\n\u884c\u756a7\u3067\u30d6\u30e9\u30a6\u30b6\u5074\u304b\u3089\u306e\u30eb\u30fc\u30d7\u56de\u6570\u3092\u53d7\u3051\u53d6\u308a\u307e\u3059\u3002\u3053\u306e\u6570\u5024\u306b\u3088\u3063\u3066\u3001\u884c\u756a9\uff5e11\u3067\u8a2d\u5b9a\u3059\u308b\u5bfe\u8c61\u65e5\u4ed8\u3092\u78ba\u5b9a\u3057\u307e\u3059\u3002\u3053\u3053\u3067\u306f\u5143\u30c7\u30fc\u30bf\u304c\u3053\u306e\uff13\u65e5\u5206\u3057\u304b\u3042\u308a\u307e\u305b\u3093\u306e\u3067\u3001\u3053\u306e\u69d8\u306b\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u6700\u521d\u306f\u5f53\u65e5\u3092\u8d77\u70b9\u3068\u3057\uff11\u65e5\u524d\uff0c\uff12\u65e5\u524d\u306a\u3069\u3092\u65e5\u4ed8\u6f14\u7b97\u3067\u6c42\u3081\u308b\u8a08\u753b\u3067\u3057\u305f\u3002<br \/>\n\u884c\u756a17\uff5e37\u306f\u30011\u6642\u9593\u3054\u3068\u306e\u6e29\u5ea6\u6e2c\u5b9a\u7d50\u679c\u3092\u5f97\u308b\u305f\u3081\u306b24\u56de\u30eb\u30fc\u30d7\u3057\u3001\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u3066\u3044\u307e\u3059\u3002\u884c\u756a18\uff0c19\u306fSQL\u6587\u306ewhere\u53e5\u3067\u306b\u8a2d\u5b9a\u3059\u308b\u5bfe\u8c61\u306e\u958b\u59cb\u3068\u7d42\u4e86\u6642\u523b\u3092\u6c42\u3081\u3066\u3044\u307e\u3059\u3002SQL\u5b9f\u884c\u5f8c\u3001\u5bfe\u8c61\u6642\u9593\u7bc4\u56f2\u306e\u6700\u521d\uff08\u6700\u3082\u65e9\u3044\u6642\u523b\uff09\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u5f8c\u3001\u884c\u756a35 break\u306b\u3088\u3063\u3066\u6b21\u306e\u6642\u9593\u5e2f\u306e\u30eb\u30fc\u30d7\u306b\u79fb\u308a\u307e\u3059\u3002\u3053\u306e\u69d8\u306b\u3057\u3066\u300124\u6642\u9593\u5206\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u3001\u884c\u756a40\u3067\u30d6\u30e9\u30a6\u30b6\u30fc\u5074\u306b\u7d50\u679c\u3092\u8fd4\u4fe1\u3057\u307e\u3059\u3002<br \/>\n\u4eca\u56de\u300124\u56de\u30eb\u30fc\u30d7\u3059\u308b\u69d8\u306a\u51e6\u7406\u3092\u3057\u3066\u3044\u307e\u3059\u304c\u3001SQL\u306e\u9054\u4eba\u3067\u3042\u308c\u3070\u3001SQL\u6587\u306e\u307f\u306724\u6642\u9593\u5206\u306e\u7d50\u679c\u3092\uff11\u56de\u3067\u53d6\u5f97\u3067\u304d\u308b\u306e\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u4eca\u5f8c\u306e\u8ab2\u984c\u3067\u3059\u3002<\/p>\n<pre class=\"height-set:true lang:php decode:true\">&lt;?php\r\n\r\nerror_reporting(0) ;\r\nmb_language(\"ja\") ;\r\nmb_internal_encoding(\"UTF-8\") ;\r\n\r\n$num_dat=intval($_POST[\"data\"]) ;\r\n\r\n$tmp_dt[0]=\"2018-11-19\";\r\n$tmp_dt[1]=\"2018-11-20\";\r\n$tmp_dt[2]=\"2018-11-21\";\r\n\r\n$db = null;$sql = null;\r\n$db = new SQLite3(\"..\/***\/**\/temp_record.sqlite3\");\r\n\r\n$get_data = \"\";\r\nfor($j = 0 ; $j &lt; 24; $j++){\r\n\t$start_tm = $tmp_dt[$num_dat].\" \".mb_substr(\"00\".$j,-2).\":00:00\" ;\r\n\t$end_time = $tmp_dt[$num_dat].\" \".mb_substr(\"00\".$j,-2).\":59:59\" ;\r\n\r\n\t$res = null;\r\n\t$sql = \"SELECT g_temp \";\r\n\t$sql = $sql.\"FROM temp_reco \";\r\n\t$sql = $sql.\"WHERE created_datetime &gt;= '\".$start_tm.\"' AND created_datetime &lt; '\".$end_time.\"' \";\r\n\t$sql = $sql.\"ORDER BY created_datetime\";\r\n\t$res = $db-&gt;query($sql);\r\n\r\n\twhile($row = $res-&gt;fetchArray(SQLITE3_NUM)) {\r\n\t    $get_tmp = $row[0] ;\r\n    \t    $get_data = $get_data.$get_tmp ;\r\n\r\n\t    if($i != 23){\r\n\t\t$get_data = $get_data.\",\" ;\r\n\t    }\r\n\t    break ;\r\n\t}\r\n}\r\n\r\n\r\necho \"[\".$get_data.\"]\" ;\r\n\r\n?&gt;\r\n<\/pre>\n<p><span style=\"text-decoration: underline; background-color: #ffff99;\">\uff08\uff13\uff09\u30b5\u30fc\u30d0\u30fc\u5074\u30e9\u30f3\u30c0\u30e0\u30c7\u30fc\u30bf\u53d6\u5f97\u30d7\u30ed\u30b0\u30e9\u30e0\uff08PHP\uff09<\/span><br \/>\n\u30b5\u30fc\u30d0\u30fc\u5074\u3067\u30e9\u30f3\u30c0\u30e0\u30c7\u30fc\u30bf\u3092\u767a\u751f\u3055\u305b\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u6b21\u306e\u901a\u308a\u3067\u3059\u3002\u8aac\u660e\u306f\u7701\u7565\u3055\u305b\u3066\u9802\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"lang:php decode:true\">&lt;?php\r\n\r\nerror_reporting(0);\r\nmb_language(\"ja\");\r\nmb_internal_encoding(\"UTF-8\");\r\n\r\n$num_dat=$_POST[\"data\"];\r\n\r\n$rtn_data = \"\";\r\nfor($i=0; $i&lt;24; $i++){\r\n\t$tmp_rnd = mt_rand(180,280) \/ 10;\r\n\t$rtn_data = $rtn_data.$tmp_rnd ;\r\n        \r\n \tif($i != 23){\r\n\t\t$rtn_data = $rtn_data.\",\" ;\r\n\t}\r\n}\r\n\r\necho \"[\".$rtn_data.\"]\" ;\r\n\r\n?&gt;<\/pre>\n<p><noscript><a href=\"\/\/ck.jp.ap.valuecommerce.com\/servlet\/referral?sid=3422639&#038;pid=885466328\" target=\"_blank\" rel=\"nofollow\"><img src=\"\/\/ad.jp.ap.valuecommerce.com\/servlet\/gifbanner?sid=3422639&#038;pid=885466328\" border=\"0\"><\/a><\/noscript><\/p>\n<table style=\"width: 98.9452%; border-collapse: collapse; border-style: none; height: 27px;\" border=\"1\">\n<tbody>\n<tr style=\"height: 27px;\">\n<td style=\"width: 3.37549%; border-style: none; background-color: #1414f7; height: 27px;\"><\/td>\n<td style=\"width: 2.15054%; border-style: none; background-color: #f0f09b; height: 27px;\"><\/td>\n<td style=\"width: 95.3341%; border-style: none; background-color: #f0f09b; height: 27px;\"><span style=\"color: #000080; font-size: 18pt;\"><strong>\u307e\u3068\u3081<\/strong><\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4e00\u5fdc\u3001\u601d\u3063\u3066\u3044\u305f\u69d8\u306a\u3053\u3068\u306f\u51fa\u6765\u307e\u3057\u305f\u3002\u4f55\u304b\u9762\u767d\u3046\u305d\u3046\u306a\u30c6\u30fc\u30de\u304c\u3042\u308c\u3070\u3001\u9023\u7d9a\u76e3\u8996\u30e2\u30cb\u30bf\u30fc\u306e\u69d8\u306a\u3082\u306e\u306b\u30c1\u30e3\u30ec\u30f3\u30b8\u3057\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u2605\u4eca\u56de\u306e\u6210\u679c\u2605\u3000\u203b\u30ea\u30f3\u30af\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/kats-eye.net\/test_prog\/1811002_chartjs_sample\/101\" target=\"_blank\" rel=\"noopener\">\uff13\u65e5\u9593\u306e\u6e29\u5ea6\u6e2c\u5b9a\u7d50\u679c<\/a>\u00a0 \u00a0\u201c<a href=\"https:\/\/kats-eye.net\/test_prog\/1811002_chartjs_sample\/101\" target=\"_blank\" rel=\"noopener\">101.html<\/a>\u201d<\/p>\n<p>\u203b\u30b5\u30fc\u30d0\u30fc\u74b0\u5883\uff1a<img loading=\"lazy\" src=\"http:\/\/ad.jp.ap.valuecommerce.com\/servlet\/gifbanner?sid=3422639&amp;pid=885466364\" width=\"0\" height=\"1\" border=\"0\" \/>\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\uff08<img loading=\"lazy\" src=\"http:\/\/ad.jp.ap.valuecommerce.com\/servlet\/gifbanner?sid=3422639&amp;pid=885466364\" width=\"0\" height=\"1\" border=\"0\" \/>\u30ed\u30ea\u30dd\u30c3\u30d7\uff09<br \/>\n\u30e9\u30a4\u30c8\u30d7\u30e9\u30f3\uff08\u6708\u3005\uff12\uff15\uff10\u5186\uff5e\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; \u904e\u53bb\u306e\u95a2\u9023\u8a18\u4e8b ESPr Developer\u3067\u6e29\u5ea6\u6e2c\u5b9a\u3057\u3001\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\u4e0a\u306eSQLite\u306b\u30c7\u30fc\u30bf\u84c4\u7a4d\u3057\u307e\u3059\u3002\u30b5\u30fc\u30d0\u30fc\u3068HTTP\u901a\u4fe1\u3092\u884c\u3044\u84c4\u7a4d\u3057\u305f\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u3001Chart.js\u3092\u4f7f\u3063\u3066\u30b0\u30e9\u30d5\u51fa\u529b\u3059\u308b\u3002 \u4eca &hellip; <a href=\"https:\/\/kats-eye.net\/info\/2018\/11\/25\/chartj_js_http\/\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">\u30b5\u30fc\u30d0\u30fc\u306b\u3042\u308b\u6e29\u5ea6\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u3001Chart.js\u3092\u4f7f\u3063\u3066\u30b0\u30e9\u30d5\u3092\u4f5c\u6210\u3059\u308b<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":1436,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[24,44],"tags":[25,49,48,45],"_links":{"self":[{"href":"https:\/\/kats-eye.net\/info\/wp-json\/wp\/v2\/posts\/1393"}],"collection":[{"href":"https:\/\/kats-eye.net\/info\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kats-eye.net\/info\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kats-eye.net\/info\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kats-eye.net\/info\/wp-json\/wp\/v2\/comments?post=1393"}],"version-history":[{"count":43,"href":"https:\/\/kats-eye.net\/info\/wp-json\/wp\/v2\/posts\/1393\/revisions"}],"predecessor-version":[{"id":2860,"href":"https:\/\/kats-eye.net\/info\/wp-json\/wp\/v2\/posts\/1393\/revisions\/2860"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kats-eye.net\/info\/wp-json\/wp\/v2\/media\/1436"}],"wp:attachment":[{"href":"https:\/\/kats-eye.net\/info\/wp-json\/wp\/v2\/media?parent=1393"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kats-eye.net\/info\/wp-json\/wp\/v2\/categories?post=1393"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kats-eye.net\/info\/wp-json\/wp\/v2\/tags?post=1393"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}