Besan Block

描述

This WordPress plugin adds a responsive and accessible data chart block to the post editor. The chart feeds off of data from a publicly viewable Google sheet.

螢幕截圖

  • Chart block in the post editor.

  • Example screenshot of the chart block displaying a vertical bar chart on the front-end.

  • Example screenshot of the chart block displaying a horizontal bar chart on the front-end.

Blocks

This plugin provides 1 block.

tdg/chart
Chart

安裝

  1. In the WordPress admin, install and enable the “Besan Block” plugin.

  2. Enter your Google Sheets API key on the plugin’s settings page.

  3. Edit any page or post and add the “Chart” editor block.

  4. In the Inspector panel (on the right-hand side of the editor), enter the following information:

    • The URL of your publicly viewable Google sheet
    • The column of data that your chart will be based on
    • What kind of chart you would like to display
    • What color the bars of the chart should be.
  5. Optionally (but preferably), enter a title and caption for the chart inside the editor.

  6. Save and view the page!

The block will calculate the number of unique values inside that column and create a chart based on that data.

常見問題

What is “Besan”?

“Besan” is the Vulcan word for “chart”. Live long and prosper.

What kinds of charts do you support?

So far, only bar charts (horizontal and vertical). More charts (including pie charts) are coming soon… or, well, eventually.

評價

There are no reviews for this plugin.

貢獻者及開發者

“Besan Block” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Besan Block 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.1

  • Tested plugin with WordPress core 5.4.
  • Fixed PHP error on admin settings page.

1.0

  • Initial release