<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shinshin86</author_name>
  <author_url>https://blog.hatena.ne.jp/shinshin86/</author_url>
  <blog_title>at backyard</blog_title>
  <blog_url>https://shinshin86.hateblo.jp/</blog_url>
  <categories>
    <anon>AMP</anon>
    <anon>Next.js</anon>
    <anon>備忘録</anon>
  </categories>
  <description>少し前に書いていたもの。ついつい下書きフォルダに忘れがち。。 AMP対応させたページでグラフを動的に表示させるとなると、基本的にJavaScriptは使用できないので、CSSで頑張ることになりそう。 というわけで、Next.js環境で頑張ってみた結果がこれ。 github.com 月ごとの何らかのデータを読み込み、データに応じてスタイルを構築していくスタイル。 JSONデータを読み込んで下記のようなデータが描画される。 果たしてこれが最善のやり方なのかはよく分からないし、もっと良い方法がありそうにも思える。。 良い方法をご存じの方がいましたら、教えていただけると幸いです。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshinshin86.hateblo.jp%2Fentry%2F2020%2F07%2F23%2F063015&quot; title=&quot;AMP対応のページで月ごとのグラフを表示させる - at backyard&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>https://github.com/shinshin86/monthly-list-bar-chart-sample-with-amp/raw/master/images/demo.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-07-23 06:30:15</published>
  <title>AMP対応のページで月ごとのグラフを表示させる</title>
  <type>rich</type>
  <url>https://shinshin86.hateblo.jp/entry/2020/07/23/063015</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
