<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:media="http://search.yahoo.com/mrss/">
  <channel>
    <title>Charts｜林鼎淵 Dean Lin</title>
    <link>https://deanlin.net/tags/charts/</link>
    <image><url>https://deanlin.net/images/author_hu_aa256fc934e9a932.jpg</url><title>Charts｜林鼎淵 Dean Lin</title><link>https://deanlin.net/tags/charts/</link><width>144</width><height>144</height></image>
    <description>林鼎淵（Dean Lin）的部落格：生成式 AI 企業內訓講師、外商資安公司軟體專家、7 本書作者。400 多篇文章用白話分享生成式 AI 實戰、Claude Code 與 Vibe Coding 教學、團隊合作與職場成長。</description>
    <generator>Hugo</generator>
    <language>zh-tw</language>
    <copyright>© 2020–2026 林鼎淵 Dean Lin</copyright>
    <lastBuildDate>Tue, 23 Jul 2024 20:07:53 +0800</lastBuildDate>
    <atom:link href="https://deanlin.net/tags/charts/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>UI 設計師別錯過！原來用 AI 生成擬真圖表的示意圖這麼方便！</title>
      <link>https://deanlin.net/blog/202407/ai-generated-chart-mockups/</link>
      <pubDate>Tue, 23 Jul 2024 20:07:53 +0800</pubDate>
      <guid>https://deanlin.net/blog/202407/ai-generated-chart-mockups/</guid>
      <dc:creator>林鼎淵</dc:creator>
      <category>AI 實戰</category>
      <description>網頁 Dashboard 頁面往往要展示很多的圖表，而有些設計師為了讓圖表擬真，花費了大量時間調整細節。這時，AI 生成圖表功能對 UI 設計師非常有用！這邊文章會教大家如何靠「動嘴」來生成各式圖表！</description>
      <media:content url="https://deanlin.net/blog/202407/ai-generated-chart-mockups/images/ai-generated-chart-mockups-og_hu_a7f5bc36b60f52f9.jpg" medium="image" type="image/jpeg" width="1200" height="675" />
      <content:encoded><![CDATA[<p>網頁 Dashboard 頁面往往要展示很多的圖表，在設計初期為了讓大家了解不同情境下的圖表會如何顯示，UI 設計師會畫出各式各樣的示意圖。</p>
<p>在聊天時發現有些設計師為了讓圖表擬真，花費了大量時間針對細節調整。</p>
<p>此時我才意識到，原來 AI 生成圖表的功能對 UI 設計師來說有很大的幫助！</p>
<p>以 ChatGPT-4o 來說，他能根據不同時間級距（年/月/周 📅）、圖表（圓餅圖/長條圖 📊）、數據（遞增/M型 📈）、顏色（同色系/互補色 🎨）等條件來客製化生成。</p>
<p>這邊文章會教大家如何靠「動嘴」來生成各式圖表；畢竟對筆者這種外行人來說，看到成品比較能判斷設計好壞。</p>
<p><img src="https://deanlin.net/blog/202407/ai-generated-chart-mockups/images/ai-generated-chart-mockups-01.webp" width="1143" height="641" alt="UI 設計師別錯過！原來用 AI 生成擬真圖表的示意圖這麼方便！（圖 1）" fetchpriority="high" decoding="async"></p>
<blockquote>
<p>下面的範例以 ChatGPT 4o 來做 Demo，大家可以用自己熟悉的 AI 工具，使用原理都差不多。</p>
</blockquote>
<h2 id="基礎運用驅動程式來生成指定的-chart-">基礎運用：驅動程式來生成指定的 Chart 📊<a class="h-anchor" href="#%e5%9f%ba%e7%a4%8e%e9%81%8b%e7%94%a8%e9%a9%85%e5%8b%95%e7%a8%8b%e5%bc%8f%e4%be%86%e7%94%9f%e6%88%90%e6%8c%87%e5%ae%9a%e7%9a%84-chart-" aria-label="這個段落的連結"></a></h2>
<p>下面用一個複雜邏輯的 Stack Bar Chart 來做示範。</p>
<h3 class="h-nomark" id="-prompt">🤖 Prompt：<a class="h-anchor" href="#-prompt" aria-label="這個段落的連結"></a></h3>
<pre tabindex="0"><code>請根據以下需求用 Python 撰寫程式後，最後用圖表呈現
- 時間長度: 1 個月
- 時間粒度: 1 小時
- 圖表類型: Stack Bar Chart
- 資料: Top10 的銷售產品
- 特殊要求: Top10 的顏色要不一樣，請使用亮色系呈現，並且每個 Bar 之間不要有間隔
</code></pre><p>透過上面的 Prompt 就能驅動 ChatGPT 寫程式。</p>
<p><img src="https://deanlin.net/blog/202407/ai-generated-chart-mockups/images/ai-generated-chart-mockups-02.webp" width="883" height="554" alt="🤖 Prompt：（圖 2）" loading="lazy" decoding="async"></p>
<p>寫完程式後便會生成圖表，一開始你會發現圖表是空白的，別緊張，點擊上方的「Switch to Static Chart」便可看到圖表。</p>
<p><img src="https://deanlin.net/blog/202407/ai-generated-chart-mockups/images/ai-generated-chart-mockups-03.webp" width="737" height="547" alt="🤖 Prompt：（圖 3）" loading="lazy" decoding="async"></p>
<p><img src="https://deanlin.net/blog/202407/ai-generated-chart-mockups/images/ai-generated-chart-mockups-04.webp" width="737" height="519" alt="🤖 Prompt：（圖 4）" loading="lazy" decoding="async"></p>
<p>當然這個圖表也是可以放大與下載的。</p>
<p><img src="https://deanlin.net/blog/202407/ai-generated-chart-mockups/images/ai-generated-chart-mockups-05.webp" width="1400" height="701" alt="🤖 Prompt：（圖 5）" loading="lazy" decoding="async"></p>
<hr>
<h2 id="進階運用-1生成指定情境的-chart要求圖表細節-">進階運用 1：生成指定情境的 Chart、要求圖表細節 🔧<a class="h-anchor" href="#%e9%80%b2%e9%9a%8e%e9%81%8b%e7%94%a8-1%e7%94%9f%e6%88%90%e6%8c%87%e5%ae%9a%e6%83%85%e5%a2%83%e7%9a%84-chart%e8%a6%81%e6%b1%82%e5%9c%96%e8%a1%a8%e7%b4%b0%e7%af%80-" aria-label="這個段落的連結"></a></h2>
<p>圖表生成後，你肯定會對一些細節不滿意，或是想以這張圖為基礎生成指定情境，下面就來做個示範。</p>
<h3 class="h-nomark" id="-prompt-1">🤖 Prompt：<a class="h-anchor" href="#-prompt-1" aria-label="這個段落的連結"></a></h3>
<pre tabindex="0"><code>請根據以下需求調整圖表細節
- X 軸: 列出月份與日期，時間間隔為 3 天，月份為 6 月，用斜 45% 顯示
- Y 軸: 顯示銷售數量，最大值為 2000，數量間隔為 200
- 數據波動: 希望數值成曲線向上的趨勢，第一天所有產品加總接近 0，最後一天所有產品加總接近 2000
- 產品名稱: 請用常見的電子產品來示意（ex: iphone、notebook）
</code></pre><p><img src="https://deanlin.net/blog/202407/ai-generated-chart-mockups/images/ai-generated-chart-mockups-06.webp" width="1400" height="743" alt="🤖 Prompt：（圖 6）" loading="lazy" decoding="async"></p>
<p>過去 UI 設計師會需要花許多時間產生的示意圖，現在透過明確的 Prompt 就能直接產生！</p>
<p>如果想呈現一週的數據，直接跟他說就好：「請呈現 7 天的資料」</p>
<p><img src="https://deanlin.net/blog/202407/ai-generated-chart-mockups/images/ai-generated-chart-mockups-07.webp" width="1400" height="742" alt="🤖 Prompt：（圖 7）" loading="lazy" decoding="async"></p>
<hr>
<h2 id="進階運用-2產生極端情境的-chart-">進階運用 2：產生極端情境的 Chart 📉<a class="h-anchor" href="#%e9%80%b2%e9%9a%8e%e9%81%8b%e7%94%a8-2%e7%94%a2%e7%94%9f%e6%a5%b5%e7%ab%af%e6%83%85%e5%a2%83%e7%9a%84-chart-" aria-label="這個段落的連結"></a></h2>
<p>在規劃之初，我們就需要考量在極端情境下 Chart 會如何顯示。</p>
<p>有些設計其實大腦在想像時就已經被否決了，但如果你不做出來，有些人不認為這樣的設計是錯的。</p>
<p>這些讓人心累的設計，就交給 AI 來生成吧！</p>
<h3 class="h-nomark" id="-prompt-2">🤖 Prompt：<a class="h-anchor" href="#-prompt-2" aria-label="這個段落的連結"></a></h3>
<pre tabindex="0"><code>請根據以下需求用 Python 撰寫程式後，最後用圖表呈現
- 圖表類型: Pie Chart
- 資料: Top10 的銷售產品，請用常見的電子產品來示意（ex: iphone、notebook）
- 顏色要求: Top10 的顏色要不一樣，請使用同色系呈現
- 數值要求: Top1 佔比為 50%、Top2 佔比為 38%，請用程式計算出剩下 Top3~10 的百分比
- 名稱顯示: Pie Chart 的每個產品會有一條線往外拉顯示對應的產品名稱，切記產品名稱不要重疊
</code></pre><p><img src="https://deanlin.net/blog/202407/ai-generated-chart-mockups/images/ai-generated-chart-mockups-08.webp" width="1400" height="870" alt="🤖 Prompt：（圖 8）" loading="lazy" decoding="async"></p>
<hr>
<h2 id="總結--使用心得">總結 &amp; 使用心得<a class="h-anchor" href="#%e7%b8%bd%e7%b5%90--%e4%bd%bf%e7%94%a8%e5%bf%83%e5%be%97" aria-label="這個段落的連結"></a></h2>
<p>過去各式圖表、指定情境、極端畫面的設計會讓人覺得心累 😩</p>
<p>但現在有了 AI 輔助，可以讓 UI 設計師產生示意圖的效率增加不少 🚀</p>
<p>對 PM 來說，這個功能也能幫助他們生成自己心中的畫面，讓溝通更有效率 🗣️</p>
<p>當然，你心中期待的圖表通常無法一次就產生出來，會需要透過後續的對話來不斷優化。</p>
<p><strong>但別忘記這只是生成示意圖的工具，不是最終的畫面，千萬不要鑽牛角尖。</strong></p>
<a class="linkcard" href="https://deanlin.net/categories/ai/">
  <span class="lc-body">
    <span class="lc-title">AI 實戰</span>
    <span class="lc-desc">實測生成式 AI 工具、Vibe Coding 與自動化流程的第一手心得，把 AI 變成每天都用得上的即戰力。</span>
    <span class="lc-site"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><path d="M5 12h14M13 6l6 6-6 6"/></svg>林鼎淵 Dean Lin</span>
  </span>
</a>

<p><strong>想將 AI 導入自己的職場與生活嗎？歡迎<a href="https://www.books.com.tw/products/0011004216">購買筆者出版的新書</a></strong>，幫助您<strong>在 AI 的浪潮中站穩腳步，並在未來的職場競爭中佔據優勢！</strong></p>
<figure class="figure"><img src="https://deanlin.net/blog/202407/ai-generated-chart-mockups/images/ai-generated-chart-mockups-09.webp" width="1400" height="319" alt="林鼎淵著作《ChatGPT 與 AI 繪圖效率大師（新增 Copilot、Gamma、Runway、Suno）》" loading="lazy" decoding="async">
  <figcaption><a href="https://www.books.com.tw/products/0011004216">https://www.books.com.tw/products/0011004216</a></figcaption>
</figure>

]]></content:encoded>
    </item>
    <item>
      <title>黑科技降臨！用 ChatGPT 產生會「動」的圖表（Advanced data analysis)</title>
      <link>https://deanlin.net/blog/202307/chatgpt-animated-charts/</link>
      <pubDate>Thu, 20 Jul 2023 22:54:53 +0800</pubDate>
      <guid>https://deanlin.net/blog/202307/chatgpt-animated-charts/</guid>
      <dc:creator>林鼎淵</dc:creator>
      <category>AI 實戰</category>
      <description>上一篇文章筆者分享了如何使用 ChatGPT 生成中文統計圖表（Advanced data analysis)，而這一篇則會介紹到「資料清洗、動態圖表」的操作，讓我們達成一行程式都不寫就產生「消費者物價指數」的動畫！</description>
      <media:content url="https://deanlin.net/blog/202307/chatgpt-animated-charts/images/chatgpt-animated-charts-og_hu_feb6207124734154.jpg" medium="image" type="image/jpeg" width="1200" height="675" />
      <content:encoded><![CDATA[<p><a href="https://deanlin.net/blog/202307/chatgpt-chinese-charts/">上一篇文章</a>筆者分享了如何使用 ChatGPT 生成中文統計圖表（Advanced data analysis)，而這一篇則會介紹到「資料清洗、動態圖表」的操作，讓我們達成一行程式都不寫就產生「消費者物價指數」的動畫！</p>
<p><img src="https://deanlin.net/blog/202307/chatgpt-animated-charts/images/chatgpt-animated-charts-01.webp" width="1225" height="670" alt="黑科技降臨！用 ChatGPT 產生會「動」的圖表（Advanced data analysis)（圖 1）" fetchpriority="high" decoding="async"></p>
<h2 id="step-1取得分析數據--以消費者物價指數為例">STEP 1：取得分析數據 — 以消費者物價指數為例<a class="h-anchor" href="#step-1%e5%8f%96%e5%be%97%e5%88%86%e6%9e%90%e6%95%b8%e6%93%9a--%e4%bb%a5%e6%b6%88%e8%b2%bb%e8%80%85%e7%89%a9%e5%83%b9%e6%8c%87%e6%95%b8%e7%82%ba%e4%be%8b" aria-label="這個段落的連結"></a></h2>
<p>筆者到<a href="https://www.moea.gov.tw/Mns/dos/home/Home.aspx">經濟部統計處</a>的網頁，下載民國 91~112 年的「<a href="https://web.archive.org/web/20250225041521/https://dmz26.moea.gov.tw/GA/common/Common.aspx?code=K&amp;no=2" title="原網頁已失效，連到網際網路檔案館的存檔">消費者物價指數</a>」。</p>
<p><img src="https://deanlin.net/blog/202307/chatgpt-animated-charts/images/chatgpt-animated-charts-02.webp" width="1400" height="1029" alt="STEP 1：取得分析數據 — 以消費者物價指數為例（圖 2）" loading="lazy" decoding="async"></p>
<p>我們打開 Excel 看一下目前的資料格式：</p>
<p><img src="https://deanlin.net/blog/202307/chatgpt-animated-charts/images/chatgpt-animated-charts-03.webp" width="1400" height="1354" alt="STEP 1：取得分析數據 — 以消費者物價指數為例（圖 3）" loading="lazy" decoding="async"></p>
<p>其實這份 Excel 的結構已經不錯了，但左側的「年 月 別」有分割成「年、月」兩個欄位，所以可以預見 ChatGPT 在分析這部分的資料時可能會遇到問題。</p>
<hr>
<h2 id="step-2請-chatgpt-幫我們清洗資料">STEP 2：請 ChatGPT 幫我們清洗資料<a class="h-anchor" href="#step-2%e8%ab%8b-chatgpt-%e5%b9%ab%e6%88%91%e5%80%91%e6%b8%85%e6%b4%97%e8%b3%87%e6%96%99" aria-label="這個段落的連結"></a></h2>
<p>在資料不乾淨的狀態下，ChatGPT 也可以生成圖表，但往往非常耗時，且失敗率極高；因此建議先請 ChatGPT 依照我們的需求調整目前的 Excel，我的 Prompt ：</p>
<pre tabindex="0"><code>請依照下面步驟處理，並在完成後給我調整過的 Excel

1. 先找到「年 月 別」，並將這一列當成第一列
2. 「年 月 別」這個欄位下方被分割成兩欄，他們紀錄的是日期，左邊為年右邊為月，需要將年與月合併 
3. 完成上面的合併後，如果該行只有「年」，就將這行刪除
</code></pre><p><img src="https://deanlin.net/blog/202307/chatgpt-animated-charts/images/chatgpt-animated-charts-04.webp" width="903" height="595" alt="STEP 2：請 ChatGPT 幫我們清洗資料（圖 4）" loading="lazy" decoding="async"></p>
<p>最後獲得清洗後的 Excel。</p>
<p><img src="https://deanlin.net/blog/202307/chatgpt-animated-charts/images/chatgpt-animated-charts-05.webp" width="917" height="223" alt="STEP 2：請 ChatGPT 幫我們清洗資料（圖 5）" loading="lazy" decoding="async"></p>
<p><img src="https://deanlin.net/blog/202307/chatgpt-animated-charts/images/chatgpt-animated-charts-06.webp" width="611" height="502" alt="STEP 2：請 ChatGPT 幫我們清洗資料（圖 6）" loading="lazy" decoding="async"></p>
<blockquote>
<p>筆者強烈建議先將 Excel 下載下來，然後開新的 Chat 來處理資料，這樣後續的成功率較高。</p>
</blockquote>
<hr>
<h2 id="step-3將數據轉換為圖表">STEP 3：將數據轉換為圖表<a class="h-anchor" href="#step-3%e5%b0%87%e6%95%b8%e6%93%9a%e8%bd%89%e6%8f%9b%e7%82%ba%e5%9c%96%e8%a1%a8" aria-label="這個段落的連結"></a></h2>
<p>確認格式與我們的期待相符後，就可以請他產生圖表了。</p>
<pre tabindex="0"><code>請閱讀 Excel 的數據，並依照下面步驟整理資料

1.「YearMonth」的列是用民國年，請轉換為西元年
2. 轉換成西元年後，將每個月份的資料繪製成折線圖
</code></pre><p><img src="https://deanlin.net/blog/202307/chatgpt-animated-charts/images/chatgpt-animated-charts-07.webp" width="796" height="601" alt="STEP 3：將數據轉換為圖表（圖 7）" loading="lazy" decoding="async"></p>
<pre tabindex="0"><code>請繪製「總指數、食物類、衣著類、居住類」的折線圖
</code></pre><p><img src="https://deanlin.net/blog/202307/chatgpt-animated-charts/images/chatgpt-animated-charts-08.webp" width="796" height="679" alt="STEP 3：將數據轉換為圖表（圖 8）" loading="lazy" decoding="async"></p>
<p>折線圖的顏色相同不好閱讀，所以讓他分色系。</p>
<figure class="figure"><img src="https://deanlin.net/blog/202307/chatgpt-animated-charts/images/chatgpt-animated-charts-09.webp" width="796" height="674" alt="請使用顏色差異大的線" loading="lazy" decoding="async">
  <figcaption>請使用顏色差異大的線</figcaption>
</figure>

<hr>
<h2 id="step-4讓圖表動起來">STEP 4：讓圖表動起來！<a class="h-anchor" href="#step-4%e8%ae%93%e5%9c%96%e8%a1%a8%e5%8b%95%e8%b5%b7%e4%be%86" aria-label="這個段落的連結"></a></h2>
<p>經過一番努力，總於走到了這一步 😭</p>
<pre tabindex="0"><code>請幫我生成折線圖的 GIF，Y 軸的數值請參考剛剛生成的圖，新的數據會從右側增加，以年為單位，先繪製前 10 年的圖，使用不需網路的方式來完成
</code></pre><p><img src="https://deanlin.net/blog/202307/chatgpt-animated-charts/images/chatgpt-animated-charts-10.webp" width="796" height="365" alt="STEP 4：讓圖表動起來！（圖 10）" loading="lazy" decoding="async"></p>
<figure class="figure figure-video">
  <video class="gifv" muted loop playsinline controls preload="none" poster="https://deanlin.net/blog/202307/chatgpt-animated-charts/images/chatgpt-animated-charts-11.webp" width="960" height="640" aria-label="STEP 4：讓圖表動起來！（圖 11）" data-gifv>
    <source src="https://deanlin.net/blog/202307/chatgpt-animated-charts/images/chatgpt-animated-charts-11.mp4" type="video/mp4">
  </video>
</figure>

<p>確認過結果符合需求後，我請他繪製完整的年度、加快 GIF 速度，並使用我提供的字體重新繪製。</p>
<p><img src="https://deanlin.net/blog/202307/chatgpt-animated-charts/images/chatgpt-animated-charts-12.webp" width="796" height="561" alt="STEP 4：讓圖表動起來！（圖 12）" loading="lazy" decoding="async"></p>
<figure class="figure figure-video">
  <video class="gifv" muted loop playsinline controls preload="none" poster="https://deanlin.net/blog/202307/chatgpt-animated-charts/images/chatgpt-animated-charts-13.webp" width="960" height="640" aria-label="STEP 4：讓圖表動起來！（圖 13）" data-gifv>
    <source src="https://deanlin.net/blog/202307/chatgpt-animated-charts/images/chatgpt-animated-charts-13.mp4" type="video/mp4">
  </video>
</figure>

<hr>
<h2 id="advanced-data-analysis-使用心得">Advanced data analysis 使用心得<a class="h-anchor" href="#advanced-data-analysis-%e4%bd%bf%e7%94%a8%e5%bf%83%e5%be%97" aria-label="這個段落的連結"></a></h2>
<p>在沒有相關指引的狀態下，我覺得 Advanced data analysis 使用起來挺痛苦的；除非你的資料超級簡單，否則通常會遇到一堆錯誤，下面是我建議的使用方式：</p>
<ol>
<li><strong>清洗資料</strong>：除非資料格式超漂亮，不然一定要先清洗資料並下載，以確認調整後的資料符合期待。</li>
<li><strong>提供乾淨的資料</strong>：如果你提供的格式混亂，那 ChatGPT 理解會花很多時間，建議取得清洗的資料後，開一個新對話讓 ChatGPT 重新思考。</li>
<li><strong>理解錯誤原因</strong>：除非你運氣爆棚，否則操作過程一定會遇到大量錯誤；建議你先閱讀錯誤原因，並引導 ChatGPT 執行的方向，一直按「繼續」可能是沒幫助的。</li>
<li><strong>明確提出需求</strong>：一開始產生的結果通常不會讓人滿意，像是資料錯誤、顏色相似、無法顯示中文…你需要明確提出自己的需求。</li>
<li><strong>不要想一次到位</strong>：一次解決一個問題，並確認結果是否符合需求。</li>
</ol>
<p>儘管 Advanced data analysis 能做出會動的圖表，但他的內存有限，如果想取得更好的結果，建議把程式複製到 Local （自己電腦）環境執行。</p>
<p>希望這篇文章有拓寬大家對 Advanced data analysis 的使用思路！</p>
<hr>
<a class="linkcard" href="https://deanlin.net/categories/ai/">
  <span class="lc-body">
    <span class="lc-title">AI 實戰</span>
    <span class="lc-desc">實測生成式 AI 工具、Vibe Coding 與自動化流程的第一手心得，把 AI 變成每天都用得上的即戰力。</span>
    <span class="lc-site"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><path d="M5 12h14M13 6l6 6-6 6"/></svg>林鼎淵 Dean Lin</span>
  </span>
</a>

<p><strong>想將 AI 導入自己的職場與生活嗎？歡迎<a href="https://www.books.com.tw/products/0011004216">購買筆者出版的新書</a></strong>，幫助您<strong>在 AI 的浪潮中站穩腳步，並在未來的職場競爭中佔據優勢！</strong></p>
<figure class="figure"><img src="https://deanlin.net/blog/202307/chatgpt-animated-charts/images/chatgpt-animated-charts-14.webp" width="1400" height="319" alt="林鼎淵著作《ChatGPT 與 AI 繪圖效率大師（新增 Copilot、Gamma、Runway、Suno）》" loading="lazy" decoding="async">
  <figcaption><a href="https://www.books.com.tw/products/0011004216">https://www.books.com.tw/products/0011004216</a></figcaption>
</figure>

]]></content:encoded>
    </item>
    <item>
      <title>只要 3 步驟！用 ChatGPT 生成中文統計圖表（Advanced data analysis)</title>
      <link>https://deanlin.net/blog/202307/chatgpt-chinese-charts/</link>
      <pubDate>Wed, 19 Jul 2023 23:54:38 +0800</pubDate>
      <guid>https://deanlin.net/blog/202307/chatgpt-chinese-charts/</guid>
      <dc:creator>林鼎淵</dc:creator>
      <category>AI 實戰</category>
      <description>ChatGPT 可以產生統計圖表嗎？當然可以！透過 ChatGPT PLUS 的 Advanced data analysis 功能，只要上傳 Excel，即可輕鬆產生圖表。但轉成中文圖表可能會遇到亂碼問題，不過別擔心，只要按照文章步驟就能解決您的困擾！</description>
      <media:content url="https://deanlin.net/blog/202307/chatgpt-chinese-charts/images/chatgpt-chinese-charts-og_hu_d4c35c066304e724.jpg" medium="image" type="image/jpeg" width="1200" height="675" />
      <content:encoded><![CDATA[<p>ChatGPT 可以產生統計圖表嗎？當然可以！</p>
<p>透過 ChatGPT PLUS 的 Advanced data analysis 功能，只要上傳 Excel，即可輕鬆產生圖表。但轉成中文圖表可能會遇到亂碼問題，不過別擔心，只要按照文章步驟就能解決您的困擾！</p>
<p><img src="https://deanlin.net/blog/202307/chatgpt-chinese-charts/images/chatgpt-chinese-charts-01.webp" width="1226" height="667" alt="只要 3 步驟！用 ChatGPT 生成中文統計圖表（Advanced data analysis)（圖 1）" fetchpriority="high" decoding="async"></p>
<blockquote>
<p>目前這個功能只有在 ChatGPT 付費版有提供喔！</p>
</blockquote>
<h2 id="step-1選擇-gpt-4-的-advanced-data-analysis-模式">STEP 1：選擇 GPT-4 的 Advanced data analysis 模式<a class="h-anchor" href="#step-1%e9%81%b8%e6%93%87-gpt-4-%e7%9a%84-advanced-data-analysis-%e6%a8%a1%e5%bc%8f" aria-label="這個段落的連結"></a></h2>
<p>從左下角的設定打開程式解釋器的功能：Settings → Beta features → Advanced data analysis</p>
<p><img src="https://deanlin.net/blog/202307/chatgpt-chinese-charts/images/chatgpt-chinese-charts-02.webp" width="1371" height="882" alt="STEP 1：選擇 GPT-4 的 Advanced data analysis 模式（圖 2）" loading="lazy" decoding="async"></p>
<p>用「New chat」新增一個對話窗，選擇「GPT-4」下方的「Advanced data analysis」。</p>
<p><img src="https://deanlin.net/blog/202307/chatgpt-chinese-charts/images/chatgpt-chinese-charts-03.webp" width="1291" height="835" alt="STEP 1：選擇 GPT-4 的 Advanced data analysis 模式（圖 3）" loading="lazy" decoding="async"></p>
<p><img src="https://deanlin.net/blog/202307/chatgpt-chinese-charts/images/chatgpt-chinese-charts-04.webp" width="1101" height="835" alt="STEP 1：選擇 GPT-4 的 Advanced data analysis 模式（圖 4）" loading="lazy" decoding="async"></p>
<hr>
<h2 id="step-2上傳-excel-檔讓-chatgpt-生成圖表">STEP 2：上傳 Excel 檔讓 ChatGPT 生成圖表<a class="h-anchor" href="#step-2%e4%b8%8a%e5%82%b3-excel-%e6%aa%94%e8%ae%93-chatgpt-%e7%94%9f%e6%88%90%e5%9c%96%e8%a1%a8" aria-label="這個段落的連結"></a></h2>
<p>這邊我從中華民國統計資訊網，取得<a href="https://www.stat.gov.tw/cp.aspx?n=2674">國民所得及經濟成長</a>的統計表 Excel。</p>
<p><img src="https://deanlin.net/blog/202307/chatgpt-chinese-charts/images/chatgpt-chinese-charts-05.webp" width="1400" height="801" alt="STEP 2：上傳 Excel 檔讓 ChatGPT 生成圖表（圖 5）" loading="lazy" decoding="async"></p>
<p>這份 Excel 打開後有兩個 Tab，我們先把「說明」的分頁刪除，否則 ChatGPT 會讀不到資料。</p>
<p><img src="https://deanlin.net/blog/202307/chatgpt-chinese-charts/images/chatgpt-chinese-charts-06.webp" width="1400" height="389" alt="STEP 2：上傳 Excel 檔讓 ChatGPT 生成圖表（圖 6）" loading="lazy" decoding="async"></p>
<p>其實這份 Excel 資料格式並不美觀，就讓我們來挑戰 ChatGPT 的實力吧！</p>
<p><img src="https://deanlin.net/blog/202307/chatgpt-chinese-charts/images/chatgpt-chinese-charts-07.webp" width="1400" height="1082" alt="STEP 2：上傳 Excel 檔讓 ChatGPT 生成圖表（圖 7）" loading="lazy" decoding="async"></p>
<p>這邊將剛剛下載好的 Excel 上傳到 ChatGPT，並詢問：「請幫我分析這份 Excel 適合產生哪種圖表？」</p>
<p><img src="https://deanlin.net/blog/202307/chatgpt-chinese-charts/images/chatgpt-chinese-charts-08.webp" width="731" height="773" alt="STEP 2：上傳 Excel 檔讓 ChatGPT 生成圖表（圖 8）" loading="lazy" decoding="async"></p>
<p>看來 ChatGPT 有成功取得 Excel 裡面的資訊，就讓他產生「時間序列圖(Time Series)」來看看吧！</p>
<p><img src="https://deanlin.net/blog/202307/chatgpt-chinese-charts/images/chatgpt-chinese-charts-09.webp" width="731" height="575" alt="STEP 2：上傳 Excel 檔讓 ChatGPT 生成圖表（圖 9）" loading="lazy" decoding="async"></p>
<p>ChatGPT 有時他沒有辦法在一次對話中完成，此時輸入「繼續嘗試」讓他繼續執行。</p>
<p><img src="https://deanlin.net/blog/202307/chatgpt-chinese-charts/images/chatgpt-chinese-charts-10.webp" width="731" height="614" alt="STEP 2：上傳 Excel 檔讓 ChatGPT 生成圖表（圖 10）" loading="lazy" decoding="async"></p>
<p>最後完成的圖表如下：</p>
<p><img src="https://deanlin.net/blog/202307/chatgpt-chinese-charts/images/chatgpt-chinese-charts-11.webp" width="731" height="666" alt="STEP 2：上傳 Excel 檔讓 ChatGPT 生成圖表（圖 11）" loading="lazy" decoding="async"></p>
<hr>
<h2 id="step-3上傳字體檔案讓-chatgpt-生成中文圖表">STEP 3：上傳字體檔案讓 ChatGPT 生成中文圖表<a class="h-anchor" href="#step-3%e4%b8%8a%e5%82%b3%e5%ad%97%e9%ab%94%e6%aa%94%e6%a1%88%e8%ae%93-chatgpt-%e7%94%9f%e6%88%90%e4%b8%ad%e6%96%87%e5%9c%96%e8%a1%a8" aria-label="這個段落的連結"></a></h2>
<p>上個步驟產生的是英文圖表，如果我們要求他轉為中文圖表會產生亂碼的問題。</p>
<figure class="figure"><img src="https://deanlin.net/blog/202307/chatgpt-chinese-charts/images/chatgpt-chinese-charts-12.webp" width="731" height="581" alt="請幫我轉為中文圖表" loading="lazy" decoding="async">
  <figcaption>請幫我轉為中文圖表</figcaption>
</figure>

<p>此時我們可以上傳字體檔，讓 ChatGPT 重新產生中文圖表，<a href="https://korenetmedia.com/download/%E5%BE%AE%E8%BB%9F%E6%AD%A3%E9%BB%91%E9%AB%94ttf%E5%AD%97%E5%9E%8B/">字體下載位置</a>。</p>
<p><img src="https://deanlin.net/blog/202307/chatgpt-chinese-charts/images/chatgpt-chinese-charts-13.webp" width="808" height="692" alt="STEP 3：上傳字體檔案讓 ChatGPT 生成中文圖表（圖 13）" loading="lazy" decoding="async"></p>
<hr>
<p>透過上面 3 步驟，你也可以成為數據分析師；有了圖表佐證，你的簡報將更具說服力！</p>
<hr>
<a class="linkcard" href="https://deanlin.net/categories/ai/">
  <span class="lc-body">
    <span class="lc-title">AI 實戰</span>
    <span class="lc-desc">實測生成式 AI 工具、Vibe Coding 與自動化流程的第一手心得，把 AI 變成每天都用得上的即戰力。</span>
    <span class="lc-site"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><path d="M5 12h14M13 6l6 6-6 6"/></svg>林鼎淵 Dean Lin</span>
  </span>
</a>

<p><strong>想將 AI 導入自己的職場與生活嗎？歡迎<a href="https://www.books.com.tw/products/0011004216">購買筆者出版的新書</a></strong>，幫助您<strong>在 AI 的浪潮中站穩腳步，並在未來的職場競爭中佔據優勢！</strong></p>
<figure class="figure"><img src="https://deanlin.net/blog/202307/chatgpt-chinese-charts/images/chatgpt-chinese-charts-14.webp" width="1400" height="319" alt="林鼎淵著作《ChatGPT 與 AI 繪圖效率大師（新增 Copilot、Gamma、Runway、Suno）》" loading="lazy" decoding="async">
  <figcaption><a href="https://www.books.com.tw/products/0011004216">https://www.books.com.tw/products/0011004216</a></figcaption>
</figure>

]]></content:encoded>
    </item>
  </channel>
</rss>
