{"id":754,"date":"2021-11-22T17:40:32","date_gmt":"2021-11-22T08:40:32","guid":{"rendered":"http:\/\/www.onepage.co.kr\/wordpress\/?p=754"},"modified":"2021-11-22T17:40:32","modified_gmt":"2021-11-22T08:40:32","slug":"indexof-barthickness-boxwidth","status":"publish","type":"post","link":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/2021\/11\/22\/indexof-barthickness-boxwidth\/","title":{"rendered":"indexOf barThickness boxWidth"},"content":{"rendered":"<p><span class=\"hljs-keyword\">var<\/span> a = [<span class=\"hljs-number\">1<\/span>,<span class=\"hljs-number\">2<\/span>,<span class=\"hljs-number\">3<\/span>,<span class=\"hljs-number\">4<\/span>,<span class=\"hljs-number\">5<\/span>,<span class=\"hljs-number\">1<\/span>,<span class=\"hljs-number\">2<\/span>,<span class=\"hljs-number\">3<\/span>]<br \/>\na.indexOf(<span class=\"hljs-number\">3<\/span>) <span class=\"hljs-comment\">\/\/2<br \/>\n<\/span> a.indexOf(<span class=\"hljs-number\">6<\/span>) <span class=\"hljs-comment\">\/\/-1<\/span><br \/>\nscales: {<br \/>\nxAxes: [{<br \/>\nbarThickness: 16,<br \/>\nbarPercentage: 0.5<br \/>\nmaxBarThickness: 100,<br \/>\n}],<br \/>\n}<\/p>\n<p><a class=\"question-hyperlink\" href=\"https:\/\/stackoverflow.com\/questions\/42585861\/chart-js-increase-spacing-between-legend-and-chart\">Increase spacing between legend and chart<\/a><\/p>\n<p><a href=\"https:\/\/stackoverflow.com\/questions\/37005297\/custom-legend-with-chartjs-v2-0\">javascript &#8211; Custom Legend with ChartJS v2.0 &#8211; Stack Overflow<\/a><\/p>\n<p><a href=\"https:\/\/javappo.tistory.com\/291\">[chartjs] \uc624\ub978\ucabd\uc5d0\ub3c4 y\ucd95 \uac12 \uc0dd\uc131\ud558\uae30 : Multiple Y axis Chart.js (tistory.com)<\/a><\/p>\n<p><a href=\"https:\/\/dpdpwl.tistory.com\/112\">\ucf54\ub529\ubc8c\ub808 :: [JS] \ubc30\uc5f4\uc18d \uc6d0\ud558\ub294 \uac12 \ucc3e\uae30(indexOf, includes) (tistory.com)<\/a><\/p>\n<p><a href=\"https:\/\/devmoony.tistory.com\/93\">DataTables \uc0ac\uc6a9\ubc95 \ubc0f \uc608\uc81c JSON, jQuery &#8211; Grid \ub77c\uc774\ube0c\ub7ec\ub9ac (tistory.com)<\/a><\/p>\n<p><a href=\"https:\/\/stackoverflow.com\/questions\/44585862\/click-event-on-stacked-bar-chart-chartjs\">javascript &#8211; Click event on stacked bar chart &#8211; ChartJs &#8211; Stack Overflow<\/a><\/p>\n<p><a href=\"https:\/\/codepen.io\/MillerTime\/pen\/wGRYxW\">Chart.js Gradients (codepen.io)<\/a><\/p>\n<p><a href=\"https:\/\/mebadong.tistory.com\/20\">[JS] Chart.js \uc6d0\ud615 \ucc28\ud2b8, \uc0ac\uc6a9\uc790 \uc9c0\uc815 \ubc94\ub840 \uadf8\ub9ac\uae30!(pie chart, custom legend) (tistory.com)<\/a><\/p>\n<p><a href=\"https:\/\/codepen.io\/jamiecalder\/pen\/NrROeB\">Stacked Horizontal Charts with Chart.js (codepen.io)<\/a><\/p>\n<p><a href=\"https:\/\/javappo.tistory.com\/290\">[chartjs] \uadf8\ub9ac\uae30 \uc21c\uc11c \ubcc0\uacbd \ud558\uae30, Z-index, legend \uc21c\uc11c \ubcc0\uacbd (tistory.com)<\/a><\/p>\n<p><a href=\"https:\/\/joohoon.tistory.com\/57\">( chart.js ) \uadf8\ub798\ud504 \uc624\ub958 \ud574\uacb0 \/ \uc774\uc804 \ub370\uc774\ud130 \uc624\ub958 \/ \ub370\uc774\ud130 \ucd08\uae30\ud654 (tistory.com)<\/a><\/p>\n<p><a href=\"https:\/\/tutorialpost.apptilus.com\/code\/posts\/js\/js-array\/\">JS Array \uc774\ud574, push(), pop(), sort(), splice() | TutorialPost (apptilus.com)<\/a><\/p>\n<p><a href=\"https:\/\/www.delftstack.com\/ko\/howto\/javascript\/how-to-compare-two-dates-with-javascript\/\">JavaScript\uc5d0\uc11c \ub450 \ub0a0\uc9dc\ub97c \ube44\uad50\ud558\ub294 \ubc29\ubc95 | Delft Stack<\/a><\/p>\n<p><a href=\"https:\/\/funfunit.tistory.com\/169\">[javascript] \uc774\ubc88 \ub2ec 1\uc77c, \ub9c8\uc9c0\ub9c9 \uc77c \uad6c\ud558\uae30 :: \ubed4\ubed4\ud55c \uac1c\ubc1c\uc790 (tistory.com)<\/a><\/p>\n<p><a href=\"https:\/\/www.delftstack.com\/ko\/howto\/javascript\/create-table-javascript\/\">JavaScript\ub97c \uc0ac\uc6a9\ud558\uc5ec \ud14c\uc774\ube14 \ub9cc\ub4e4\uae30 | Delft Stack<\/a><\/p>\n<p><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/API\/Document_Object_Model\/Traversing_an_HTML_table_with_JavaScript_and_DOM_Interfaces\">Traversing an HTML table with JavaScript and DOM Interfaces &#8211; Web APIs | MDN (mozilla.org)<\/a><\/p>\n<p>$(&#8220;input[name=&#8217;radioName&#8217;]:checked&#8221;).val();<\/p>\n<pre><code> legend: {\r\n    display: true,\r\n    position: \"right\",\r\n    labels: {\r\n      fontFamily: \"Comic Sans MS\",\r\n      boxWidth: 20,\r\n      boxHeight: 2\r\n    }\r\n  }<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>var a = [1,2,3,4,5,1,2,3] a.indexOf(3) \/\/2 a.indexOf(6) \/\/-1 scales: { xAxes: [{ barThickness: 16, barPercentage: 0.5 maxBarThickness: 100, }], } Increase spacing between legend and chart javascript &#8211; Custom Legend with ChartJS v2.0 &#8211; Stack Overflow [chartjs] \uc624\ub978\ucabd\uc5d0\ub3c4 y\ucd95 \uac12 \uc0dd\uc131\ud558\uae30 : Multiple Y axis Chart.js (tistory.com) \ucf54\ub529\ubc8c\ub808 :: [JS] \ubc30\uc5f4\uc18d \uc6d0\ud558\ub294 \uac12 \ucc3e\uae30(indexOf, includes) [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-754","post","type-post","status-publish","format-standard","hentry","category-about-linux"],"_links":{"self":[{"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/754","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/comments?post=754"}],"version-history":[{"count":1,"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/754\/revisions"}],"predecessor-version":[{"id":755,"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/754\/revisions\/755"}],"wp:attachment":[{"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=754"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/categories?post=754"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/tags?post=754"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}