{"id":57,"date":"2005-09-19T20:00:43","date_gmt":"2005-09-19T11:00:43","guid":{"rendered":"http:\/\/www.climb.co.jp\/blog_espress\/archives\/57"},"modified":"2018-03-06T16:31:49","modified_gmt":"2018-03-06T07:31:49","slug":"export%e3%83%a1%e3%82%bd%e3%83%83%e3%83%89%e3%81%ae%e5%90%8c%e6%9c%9f%e5%8c%96%e3%80%90java%e3%83%81%e3%83%a3%e3%83%bc%e3%83%88%e3%83%bb%e3%82%b0%e3%83%a9%e3%83%95%e4%bd%9c%e6%88%90%e3%83%84%e3%83%bc","status":"publish","type":"post","link":"https:\/\/www.climb.co.jp\/blog_espress\/archives\/57","title":{"rendered":"Export\u30e1\u30bd\u30c3\u30c9\u306e\u540c\u671f\u5316\u3010Java\u30c1\u30e3\u30fc\u30c8\u30fb\u30b0\u30e9\u30d5\u4f5c\u6210\u30c4\u30fc\u30ebEspressChart\u3011"},"content":{"rendered":"<p>Q)\u4e0b\u8a18\u306e\u6761\u4ef6\u3067EspressChart\u3092\u4f7f\u7528\u3057\u3066\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067JSP\u30d5\u30a1\u30a4\u30eb\u4e0a\u3067EspressChart\u306e\u30b0\u30e9\u30d5\uff08PNG\u5f62\u5f0f)\u3092\u8868\u793a\u3057\u3088\u3046\u3068\u3057\u305f\u3068\u3053\u308d\u3001\u30b0\u30e9\u30d5\u304c\u8868\u793a\u3055\u308c\u306a\u3044\u5834\u5408\u304c\u3042\u308b\u3002\uff08\u304b\u308f\u308a\u306b\u300c\u00d7\u300d\u304c\u8868\u793a\u3055\u308c\u308b\uff09<\/p>\n<p>1.\u30b0\u30e9\u30d5\u306e\u751f\u6210\u3092API\u306e\u307f\u3067\u4f5c\u6210\u3057\u3066\u3044\u308b\u3002<br \/>\n2.cht\u30d5\u30a1\u30a4\u30eb\u306a\u3069\u306e\u30b0\u30e9\u30d5\u30a8\u30c7\u30a3\u30bf\u3067\u751f\u6210\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u306f\u4f7f\u7528\u3057\u3066\u3044\u306a\u3044\u3002<br \/>\n3.\u30c7\u30fc\u30bf\u306f\u6587\u5b57\u5217\u306e\u914d\u5217\u3068\u3057\u3066\u751f\u6210\u3057API\u306b\u6e21\u3057\u3066\u3044\u308b\u3002<br \/>\n4.export\u3057\u3066png\u30d5\u30a1\u30a4\u30eb\u3092\u751f\u6210\u3002<br \/>\n5.export\u6642\u306fOutputStream\u3092\u4f7f\u7528\u3002<\/p>\n<p>A)\u57fa\u672c\u7684\u306b\u306fQbChart\u30af\u30e9\u30b9\u306eexport\u30e1\u30bd\u30c3\u30c9\u306fJSP\u30d5\u30a1\u30a4\u30eb\u306b\u5bfe\u3057\u3066\u3001\u975e\u540c\u671f\u3067\u52d5\u4f5c\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u89e3\u6c7a\u65b9\u6cd5\uff1a<\/p>\n<p>EspressChart\u3067\u306fcht\u30d5\u30a1\u30a4\u30eb\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3092\u63a8\u5968\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u305d\u3046\u3067\u306a\u3044\u3068\u304d\u306f\u6b21\u306e\u306e2\u3064\u304c\u8003\u3048\u3089\u308c\u307e\u3059\u3002<\/p>\n<p>\uff11\uff09\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5074\u3067\u753b\u50cf\u304c\u4f5c\u6210\u3055\u308c\u305f\u304b\u30c1\u30a7\u30c3\u30af\u3059\u308b\u4ed5\u7d44\u307f\u3092\u4f5c\u6210\u3059\u308b\u3002<\/p>\n<p>2) One does not have to use .cht file. EspressChart can be split into two parts, like the enclosed E21.java<br \/>\nThe first part get data and create the chart with QbChart(), the second part use chart.export() to generate the PNG file. The API lines such as<br \/>\nIDataPointSet hDataPoints = chart.gethDataPoints();<br \/>\nhDataPoints.setColors(color);<br \/>\nCannot be sychronized individually as it was not executed sequentially but as part of the QbChart().<br \/>\nMost of the time is spent on chart.export (it takes seconds on PC and cannot be broken apart) and you may add java lines before or after to sychronize with your foreground.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Q)\u4e0b\u8a18\u306e\u6761\u4ef6\u3067EspressChart\u3092\u4f7f\u7528\u3057\u3066\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067JS &hellip; <a href=\"https:\/\/www.climb.co.jp\/blog_espress\/archives\/57\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-57","post","type-post","status-publish","format-standard","hentry","category-espresschart"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.climb.co.jp\/blog_espress\/wp-json\/wp\/v2\/posts\/57","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.climb.co.jp\/blog_espress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.climb.co.jp\/blog_espress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.climb.co.jp\/blog_espress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.climb.co.jp\/blog_espress\/wp-json\/wp\/v2\/comments?post=57"}],"version-history":[{"count":1,"href":"https:\/\/www.climb.co.jp\/blog_espress\/wp-json\/wp\/v2\/posts\/57\/revisions"}],"predecessor-version":[{"id":1766,"href":"https:\/\/www.climb.co.jp\/blog_espress\/wp-json\/wp\/v2\/posts\/57\/revisions\/1766"}],"wp:attachment":[{"href":"https:\/\/www.climb.co.jp\/blog_espress\/wp-json\/wp\/v2\/media?parent=57"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.climb.co.jp\/blog_espress\/wp-json\/wp\/v2\/categories?post=57"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.climb.co.jp\/blog_espress\/wp-json\/wp\/v2\/tags?post=57"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}