<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ayaketan</author_name>
  <author_url>https://blog.hatena.ne.jp/ayaketan/</author_url>
  <blog_title>ayaketanのプログラミング勉強日記</blog_title>
  <blog_url>https://ayaketan.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>chart.jsで描画したレーダーチャートの目盛ラベルを変更するのに苦戦したので、その方法をメモ。 コントローラで、表示したい目盛ラベルを変数に代入する。 デフォルトと同じ @scale_label = &quot;&lt;%= value %&gt;&quot; デフォルトの目盛ラベルにPを付加する場合 @scale_label = &quot;&lt;%= value %&gt;P&quot; アルファベットに置き換える場合 @scale_label = &quot;&lt;%= value.replace('5','A').replace('4','B').replace('3','C').replace('2','D').replace('1','E') %&gt;&quot; …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fayaketan.hatenablog.com%2Fentry%2F2014%2F02%2F10%2F181505&quot; title=&quot;Rails4 Chart.jsでレーダーチャートの目盛ラベルを変更する - ayaketanのプログラミング勉強日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-02-10 18:15:05</published>
  <title>Rails4 Chart.jsでレーダーチャートの目盛ラベルを変更する</title>
  <type>rich</type>
  <url>https://ayaketan.hatenablog.com/entry/2014/02/10/181505</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
