{"id":6153,"date":"2018-01-16T10:00:17","date_gmt":"2018-01-16T01:00:17","guid":{"rendered":"https:\/\/www.gigas-jp.com\/appnews\/?p=6153"},"modified":"2018-01-15T19:00:11","modified_gmt":"2018-01-15T10:00:11","slug":"%e6%96%b0%e4%ba%ba%e7%a0%94%e4%bf%ae%e3%81%ae%e8%a8%98%e9%8c%b25","status":"publish","type":"post","link":"https:\/\/www.gigas-jp.com\/appnews\/archives\/6153","title":{"rendered":"\u65b0\u4eba\u7814\u4fee\u306e\u8a18\u93325"},"content":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3001Tamamo\u3067\u3059\u3002<\/p>\n<p>SQL\u304b\u3089\u53d6\u5f97\u3057\u305f\u30c7\u30fc\u30bf\u3092\u30b0\u30e9\u30d5\u8868\u793a\u3055\u305b\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3057\u305f\u3002<br \/>\n \u3055\u3066\u3001\u3069\u3046\u3057\u305f\u3082\u306e\u304b\u30fb\u30fb\u30fb\u3002<\/p>\n<p><!--more--><\/p>\n<p>\u3088\u3057\uff01Android\u306eAPI\u306b\u305d\u306e\u3088\u3046\u306a\u6a5f\u80fd\u304c\u3042\u308b\u306e\u304b\u63a2\u3057\u3066\u307f\u3088\u3046\uff01<br \/>\n \u3068\u3044\u3046\u3053\u3068\u3067\u8abf\u67fb\u3057\u305f\u3068\u3053\u308d\u305d\u3093\u306a\u90fd\u5408\u306e\u826f\u3044\u3082\u306e\u306f\u306a\u3042\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001\u30b0\u30e9\u30d5\u8868\u793a\u3055\u305b\u308b\u3053\u3068\u306e\u3067\u304d\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u306a\u3044\u304b\u30cd\u30c3\u30c8\u3067\u63a2\u3057\u305f\u3068\u3053\u308d<br \/>\n \u300cMPAndroidChart\u300d\u3068\u3044\u3046\u3001PhilJay\u6c0f\u304c\u958b\u767a\u3057\u305f\u30c1\u30e3\u30fc\u30c8\u8868\u793a\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u3042\u308a\u307e\u3057\u305f\uff01<\/p>\n<p>\u300c\u6298\u308c\u7dda\u30b0\u30e9\u30d5\u300d\u300c\u68d2\u30b0\u30e9\u30d5\u300d\u300c\u5186\u30b0\u30e9\u30d5\u300d\u300c\u30ec\u30fc\u30c0\u30fc\u30c1\u30e3\u30fc\u30c8\u300d\u300c\u30ed\u30fc\u30bd\u30af\u8db3\u30c1\u30e3\u30fc\u30c8\u300d<br \/>\n \u304c\u8868\u793a\u3067\u304d\u3001\u307e\u305f\u3001\u30cd\u30c3\u30c8\u4e0a\u306bHow to\u304c\u6ca2\u5c71\u3042\u3063\u305f\u306e\u3068\u3001<br \/>\n \u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u66f4\u65b0\u3082\u3055\u308c\u3066\u3044\u305f\u306e\u3067\u3053\u308c\u3092\u4f7f\u3063\u3066\u30b0\u30e9\u30d5\u3092\u8868\u793a\u3055\u305b\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u4f8b\u3068\u3057\u3066\u68d2\u30b0\u30e9\u30d5\u3092\u8868\u793a\u3055\u305b\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>\u5c0e\u5165\u306e\u4ed5\u65b9\u306f\u7c21\u5358\u3067\u3001Gradle\u306b\u8a18\u8ff0\u3059\u308c\u3070\u5c0e\u5165\u3067\u304d\u307e\u3059\u3002<br \/>\n \u203b\u73fe\u6642\u70b9\u3067\u306e\u6700\u65b0\u7248\u306fv3.0.3\u3067\u3059\u3002<br \/>\n \u3000MPAndroidChart\u306fApache License, Version 2.0 \u3067\u516c\u958b\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<table>\n<tbody>\n<tr>\n<td>allprojects {<br \/>\n \u00a0 \u00a0 repositories {<br \/>\n \u00a0 \u00a0 \u00a0 \u00a0 maven { url &#8220;https:\/\/jitpack.io&#8221; }<br \/>\n \u00a0 \u00a0 }<br \/>\n }<\/p>\n<p> dependencies {<br \/>\n \u00a0 \u00a0 compile &#8216;com.github.PhilJay:MPAndroidChart:v3.0.3&#8217;<br \/>\n }<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\n BarChart\u3092\u753b\u9762\u306b\u914d\u7f6e\u3059\u308b\u306b\u306f\u3001\u30ec\u30a4\u30a2\u30a6\u30c8XML\u306bBarChart\u3092\u914d\u7f6e\u3057\u307e\u3059\u3002<\/p>\n<table>\n<tbody>\n<tr>\n<td>&lt;com.github.mikephil.charting.charts.BarChart<br \/>\n \u00a0 \u00a0 android:id=&#8221;@+id\/bar_chart&#8221;<br \/>\n \u00a0 \u00a0 android:layout_width=&#8221;match_parent&#8221;<br \/>\n \u00a0 \u00a0 android:layout_height=&#8221;match_parent&#8221;<br \/>\n \u00a0 \u00a0 android:layout_margin=&#8221;16dp&#8221; \/&gt;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5c0e\u5165\u306f\u4ee5\u4e0a\u3067\u3059\u3002\u3048\u3063\u3053\u308c\u3060\u3051\uff01\uff1f\u3068\u601d\u308f\u308c\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001<br \/>\n \u3053\u308c\u3060\u3051\u3067\u3059\u3002<\/p>\n<p>\u3042\u3068\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u5165\u529b\u3057\u307e\u3059\u3002<br \/>\n \u5c11\u3005\u96e3\u3057\u304f\u898b\u3048\u307e\u3059\u304c\u3001\u5404\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u300ctrue\u300d\u304b\u300cfalse\u300d\u3067\u8a2d\u5b9a\u3057\u3066\u3044\u308b\u3060\u3051\u306a\u306e\u3067<br \/>\n \u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u610f\u5473\u3092\u7406\u89e3\u3059\u308c\u3070\u3042\u307e\u308a\u96e3\u3057\u304f\u3042\u308a\u307e\u305b\u3093\u3002<br \/>\n \u91cd\u8981\u306a\u9805\u76ee\u306f\u30b3\u30e1\u30f3\u30c8\u3067\u66f8\u3044\u305f&lt;&lt;\u91cd\u8981\uff1a&gt;&gt;\u3068\u3044\u3046\u3068\u3053\u308d\u3060\u3051\u3067\u3059\u3002<\/p>\n<table>\n<tbody>\n<tr>\n<td>\n<p>private void setupBarChartView() {<br \/>\n \u00a0 \u00a0 chart = findViewById(R.id.bar_chart);<\/p>\n<p>\u00a0 \u00a0 \/\/\u30c7\u30fc\u30bf\u3092\u30bb\u30c3\u30c8\u3059\u308b<br \/>\n \u00a0 \u00a0 ArrayList&lt;BarEntry&gt; entries = new ArrayList&lt;&gt;();<br \/>\n \u00a0 \u00a0 entries.add(new BarEntry(1, 60)); \/\/&lt;&lt;\u91cd\u8981\uff1a\u5404\u30b0\u30e9\u30d5\u306e\u30c7\u30fc\u30bf&gt;&gt;<br \/>\n \u00a0 \u00a0 entries.add(new BarEntry(2, 30));<br \/>\n \u00a0 \u00a0 entries.add(new BarEntry(3, 10));<br \/>\n \u00a0 \u00a0 List&lt;IBarDataSet&gt; bars = new ArrayList&lt;&gt;();<br \/>\n \u00a0 \u00a0 BarDataSet dataSet = new BarDataSet(entries, &#8220;Bar&#8221;);<\/p>\n<p> \u00a0 \u00a0 \/\/\u68d2\u30b0\u30e9\u30d5\u306e\u8272\u3092\u30bb\u30c3\u30c8<br \/>\n \u00a0 \u00a0 dataSet.setColors(ColorTemplate.COLORFUL_COLORS);<br \/>\n \u00a0 \u00a0 bars.add(dataSet);<\/p>\n<p>\u00a0 \u00a0 \/\/\u8868\u793a\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8<br \/>\n \u00a0 \u00a0 BarData data = new BarData(bars);<br \/>\n \u00a0 \u00a0 chart.setData(data);<\/p>\n<p>\u00a0 \u00a0 \/\/YAxis(Left)<br \/>\n \u00a0 \u00a0 YAxis left = chart.getAxisLeft();<br \/>\n \u00a0 \u00a0 left.setAxisMinimum(0);<br \/>\n \u00a0 \u00a0 left.setAxisMaximum(100);<br \/>\n \u00a0 \u00a0 left.setLabelCount(5);<br \/>\n \u00a0 \u00a0 left.setDrawTopYLabelEntry(true);<\/p>\n<p>\u00a0 \u00a0 \/\/YAxis(Right)<br \/>\n \u00a0 \u00a0 YAxis right = chart.getAxisRight();<br \/>\n \u00a0 \u00a0 right.setDrawLabels(false);<br \/>\n \u00a0 \u00a0 right.setDrawGridLines(false);<br \/>\n \u00a0 \u00a0 right.setDrawZeroLine(true);<br \/>\n \u00a0 \u00a0 right.setDrawTopYLabelEntry(true);<\/p>\n<p>\u00a0 \u00a0 \/\/XAxis<br \/>\n \u00a0 \u00a0 XAxis xAxis = chart.getXAxis();<br \/>\n \u00a0 \u00a0 final String[] labels = {&#8220;&#8221;,&#8221;A&#8221;, &#8220;B&#8221;, &#8220;C&#8221;}; \/\/&lt;&lt;\u91cd\u8981\uff1aX\u8ef8\u306e\u30e9\u30d9\u30eb&gt;&gt;<br \/>\n \u00a0 \u00a0 xAxis.setValueFormatter(new IndexAxisValueFormatter(labels));<br \/>\n \u00a0 \u00a0 XAxis bottomAxis = chart.getXAxis();<br \/>\n \u00a0 \u00a0 xAxis.setGranularity(1f);<br \/>\n \u00a0 \u00a0 xAxis.setGranularityEnabled(true);<br \/>\n \u00a0 \u00a0 bottomAxis.setPosition(XAxis.XAxisPosition.BOTTOM);<br \/>\n \u00a0 \u00a0 bottomAxis.setDrawLabels(true);<br \/>\n \u00a0 \u00a0 bottomAxis.setDrawGridLines(false);<br \/>\n \u00a0 \u00a0 bottomAxis.setDrawAxisLine(true);<\/p>\n<p>\u00a0 \u00a0 \/\/\u30b0\u30e9\u30d5\u306e\u8a2d\u5b9a<br \/>\n \u00a0 \u00a0 chart.setDrawValueAboveBar(true);<br \/>\n \u00a0 \u00a0 chart.getDescription().setEnabled(false);<br \/>\n \u00a0 \u00a0 chart.setClickable(false);<br \/>\n \u00a0 \u00a0 chart.getLegend().setEnabled(false);<br \/>\n \u00a0 \u00a0 chart.setScaleEnabled(false);<br \/>\n \u00a0 \u00a0 chart.animateY(1200, Easing.EasingOption.Linear);<br \/>\n }<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u3053\u3093\u306a\u611f\u3058\u3067\u30b0\u30e9\u30d5\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0<img loading=\"lazy\" class=\"alignnone size-medium wp-image-6155\" src=\"\/appnews\/wp-content\/uploads\/sites\/4\/2018\/01\/BarChart-202x300.png\" alt=\"\" width=\"202\" height=\"300\" srcset=\"https:\/\/www.gigas-jp.com\/appnews\/wp-content\/uploads\/sites\/4\/2018\/01\/BarChart-202x300.png 202w, https:\/\/www.gigas-jp.com\/appnews\/wp-content\/uploads\/sites\/4\/2018\/01\/BarChart.png 1004w\" sizes=\"(max-width: 202px) 100vw, 202px\" \/><\/p>\n<p>\u30d3\u30b8\u30e5\u30a2\u30eb\u7684\u306b\u6e80\u70b9\u306a\u306e\u3067\u3001\u3068\u3066\u3082\u3084\u308b\u6c17\u304c\u51fa\u3066\u304d\u307e\u3059\u306d\uff01<br \/>\n \u307e\u305f\u3001\u69d8\u3005\u306a\u30e1\u30bd\u30c3\u30c9\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u8907\u96d1\u306a\u30b0\u30e9\u30d5\u3082\u81ea\u7531\u81ea\u5728\u3067\u3059\u3002<br \/>\n \u4f8b\u3048\u3070\u30b0\u30e9\u30d5\u3092\u5de6\u53f3\u306b\u30b9\u30af\u30ed\u30fc\u30eb\u3055\u305b\u305f\u308a\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<br \/>\n \u975e\u5e38\u306b\u9762\u767d\u3044\u30e9\u30a4\u30d6\u30e9\u30ea\u306a\u306e\u3067\u4f7f\u3044\u3053\u306a\u305b\u308b\u3088\u3046\u306b\u3001\u8272\u3005\u3044\u3058\u3063\u3066\u307f\u3088\u3046\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u706b\u66dc\u65e5\u62c5\u5f53\uff1aTamamo<\/p>\n<div class='wp_social_bookmarking_light'>\n            <div class=\"wsbl_google_plus_one\"><g:plusone size=\"medium\" annotation=\"none\" href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/6153\" ><\/g:plusone><\/div>\n            <div class=\"wsbl_hatena_button\"><a href=\"\/\/b.hatena.ne.jp\/entry\/https:\/\/www.gigas-jp.com\/appnews\/archives\/6153\" class=\"hatena-bookmark-button\" data-hatena-bookmark-title=\"\u65b0\u4eba\u7814\u4fee\u306e\u8a18\u93325\" data-hatena-bookmark-layout=\"standard\" title=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\"> <img src=\"\/\/b.hatena.ne.jp\/images\/entry-button\/button-only@2x.png\" alt=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\" width=\"20\" height=\"20\" style=\"border: none;\" \/><\/a><script type=\"text\/javascript\" src=\"\/\/b.hatena.ne.jp\/js\/bookmark_button.js\" charset=\"utf-8\" async=\"async\"><\/script><\/div>\n            <div class=\"wsbl_twitter\"><a href=\"https:\/\/twitter.com\/share\" class=\"twitter-share-button\" data-url=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/6153\" data-text=\"\u65b0\u4eba\u7814\u4fee\u306e\u8a18\u93325\" data-via=\"GIGASJAPAN_APPS\" data-lang=\"ja\">Tweet<\/a><\/div>\n            <div class=\"wsbl_facebook_like\"><div id=\"fb-root\"><\/div><fb:like href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/6153\" layout=\"button_count\" action=\"like\" width=\"100\" share=\"false\" show_faces=\"false\" ><\/fb:like><\/div>\n            <div class=\"wsbl_facebook_send\"><div id=\"fb-root\"><\/div><fb:send href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/6153\" colorscheme=\"light\" ><\/fb:send><\/div>\n    <\/div>\n<br class='wp_social_bookmarking_light_clear' \/>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3001Tamamo\u3067\u3059\u3002 SQL\u304b\u3089\u53d6\u5f97\u3057\u305f\u30c7\u30fc\u30bf\u3092\u30b0\u30e9\u30d5\u8868\u793a\u3055\u305b\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3057\u305f\u3002 \u3055\u3066\u3001\u3069\u3046\u3057\u305f\u3082\u306e\u304b\u30fb\u30fb\u30fb\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[100,12],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/6153"}],"collection":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/comments?post=6153"}],"version-history":[{"count":5,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/6153\/revisions"}],"predecessor-version":[{"id":6160,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/6153\/revisions\/6160"}],"wp:attachment":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/media?parent=6153"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/categories?post=6153"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/tags?post=6153"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}