前言介紹
- 這款 WordPress 外掛「TablePress Extension: Chartist」是 2017-01-19 上架。
- 目前有 800 個安裝啟用數。
- 上一次更新是 2022-04-21,距離現在已有 1109 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 5.9 以上版本才可以安裝。
- 有 5 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
chart | table | responsive | tablepress |
內容簡介
此外掛使用Chartist.js製作,可根據TablePress表格中的資料建立回應式圖表。
使用方式
在文章或頁面中新增縮寫碼[table-chart id=123 /],以從TablePress表格123建立圖表。
選擇性參數:
顯示/隱藏圖表線條:showline=true(預設值:true)
顯示/隱藏圖表區域:showarea=false(預設值:false)
設定圖表y底線:low=0(預設值:表格低)
設定圖表y頂線:high=10(預設值:表格高)
設定甜甜圈圖表的線條寬度:donut_width=200(預設值:false)
啟用/禁用平滑線條:linesmooth=true(預設值:true)
啟用/禁用線條點:showpoint=true(預設值:true)
啟用/禁用水平條形圖:horizontal=true(預設值:false)
啟用/禁用堆疊條形圖:stack=true(預設值:false)
設定圖表長寬比:aspect_ratio=3:4(預設值:3:4)另類選擇:1、15:16、8:9、5:6、4:5、3:4、2:3、5:8、1:1.618、3:5、9:16、8:15、1:2、2:5、3:8、1:3或1:4
選擇圖表類型:chart=bar(預設值:line)替代選擇:line、bar、pie、donut、percent或piepercent(混合了pie和percent)。
設定標籤位移量:label_offset=100(預設值:false)
設定圖表填充:chart_padding=100(預設值:false)
使用動畫效果(不適用於所有圖表類型):animation=buildup(預設值:false)
如果表格的「表格標題行」選項已啟用,則擴展程式將使用表頭資料作為圖表標籤。
其他行將顯示為線條或條形。圓餅圖或百分比圖表只會使用第一個資料行。百分比圖表會忽略標頭行。
自訂CSS
如果您想覆蓋預設樣式,可以在wp-content目錄中新增tablepress-chartist-custom.css。它會在擴展程式的預設CSS檔libdist/chartist.min.css後載入。
範例:
/**
* SVG Shape CSS properties: http://tutorials.jenkov.com/svg/svg-and-css.html#shape-css-properties
*/
/* First line / bar is .ct-series-a, next is .ct-series-b etc. */
.ct-chart .ct-series.ct-series-a .ct-bar,
.ct-chart .ct-series.ct-series-a .ct-line,
.ct-chart .ct-series.ct-series-a .ct-point {
stroke: #073DA0;
}
.ct-series .ct-line, .ct-chart .ct-bar {
fill: none;
stroke-width: 10px;
}
.ct-chart .ct-point {
stroke-width: 10px;
stroke-linecap: round;
}
原文外掛簡介
Using Chartist.js, this TablePress Extension creates a responsive chart based on the data in a TablePress table.
Use
Add the Shortcode [table-chart id=123 /] to a post or page to create a chart from the TablePress table 123.
Optional parameters:
Show/hide chart line: showline=true (default: true)
Show/hide show chart area: showarea=false (default: false)
Set chart y low: low=0 (default: table low)
Set chart y high: high=10 (default: table high)
Set line with of the donut chart: donut_width=200 (default: false)
Enable/disable smooth line: linesmooth=true (default: true)
Enable/disable line points: showpoint=true (default: true)
Enable/disable horizontal bars: horizontal=true (default: false)
Enable/disable stacked bars: stack=true (default: false)
Set chart aspect ratio: aspect_ratio=3:4 (default: 3:4) Alternatives: 1, 15:16, 8:9, 5:6, 4:5, 3:4, 2:3, 5:8, 1:1.618, 3:5, 9:16, 8:15, 1:2, 2:5, 3:8, 1:3, or 1:4
Select chart type: chart=bar (default: line) Alternatives: line, bar, pie, donut, percent or piepercent (mix of pie and percent).
Set label offset: label_offset=100 (default: false)
Set chart padding: chart_padding=100 (default: false)
Use animations (not available for all chart types): animation=buildup (default: false)
If the “Table Head Row” option is enabled for the table, the Extension will use the head row data for the chart labels.
The other rows will be shown as lines or bars. Pie or percent charts will only use the first data row. Percent charts will ignore the header row.
CSS customizations
If you’d like to overide the default style, you can add a tablepress-chartist-custom.css in wp-content directory. It will be loaded after the Extension’s default CSS file libdist/chartist.min.css.
Example:
/**
* SVG Shape CSS properties: http://tutorials.jenkov.com/svg/svg-and-css.html#shape-css-properties
*/
/* First line / bar is .ct-series-a, next is .ct-series-b etc. */
.ct-chart .ct-series.ct-series-a .ct-bar,
.ct-chart .ct-series.ct-series-a .ct-line,
.ct-chart .ct-series.ct-series-a .ct-point {
stroke: #073DA0;
}
.ct-series .ct-line, .ct-chart .ct-bar {
fill: none;
stroke-width: 10px;
}
.ct-chart .ct-point {
stroke-width: 10px;
stroke-linecap: round;
}
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「TablePress Extension: Chartist」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
0.7 | 0.8 | 0.9 | trunk | 0.10.1 |
延伸相關外掛(你可能也想知道)
Responsive Menu – Create Mobile-Friendly Menu 》這是一個高度自訂化的 WordPress 響應式選單外掛程式,擁有超過150個可自訂選項,讓您擁有22,500種組合選擇!您不需要編寫代碼或知識,只需使用簡單易用的介...。
WP Mobile Menu – The Mobile-Friendly Responsive Menu 》需要一個專門的手機網站體驗嗎?需要一個能讓您的手機訪客參與的手機菜單外掛嗎?, , WP Mobile Menu是最優秀的WordPress響應式手機菜單。使用任何設備(智能...。
WPtouch – Make your WordPress Website Mobile-Friendly 》WPtouch是一個 WordPress 插件,為您的 WordPress 網站自動添加一個簡單而優雅的行動版主題,以迎接行動訪客。建議您使用 Google 推薦的 WPtouch,它可以立即...。
Sidebar Widgets by CodeLights 》❗ 很抱歉,由於 SiteOrigin 的 widgets API 完全更改,CodeLights 不再支援 SiteOrigin Page Builder 的原生使用。解決方案:您仍然可以在純文字編輯器中創...。
WP Responsive Menu 》WP Responsive Menu是一個簡單的外掛,可以讓您在WordPress網站上快速添加高度可定制的響應式菜單,在設置頁面上直接進行自定義,無需任何編碼技能。, 查看實...。
Font Awesome 4 Menus 》此 WordPress 外掛能夠在不需編寫任何程式碼的情況下,將 Font Awesome 4 圖示添加到您的 WordPress 選單和網站上!您只需將 fa-(圖示名稱)添加為選單的 cl...。
Team Members 》這個外掛會為管理員面板增加一個「團隊」區塊,讓您可以輕鬆地在網站上展示您的員工/職員。您可以快速地將成員加入您的團隊,加入他們的照片、職位、個人簡介...。
Portfolio Gallery – Image Gallery Plugin 》外掛名稱:Portfolio Filter Gallery WordPress Plugin, , 外掛描述:, , 這是一個非常簡易的方法,可以為 WordPress 網站創建美麗和響應式的作品集。Portfol...。
Genesis Responsive Slider 》此外掛可讓您建立簡單的響應式幻燈片,顯示每篇文章的特色圖像、標題和摘要。, 它包含您的投影片的最大尺寸選項,可讓您選擇顯示文章或頁面,可以從哪個類別...。
BlossomThemes Social Feed 》BlossomThemes Social Feed 外掛讓您可以在您的網站上顯示 Instagram 個人資料。該外掛與 BlossomThemes 的佈景主題搭配使用效果最佳。, 您可以最多顯示 25 ...。
Microthemer Lite – Visual Editor to Customize CSS 》Microthemer是一個輕量級且功能強大的視覺編輯器,可以自訂網站的CSS樣式,從Google字體到響應式佈局,它適用於程式開發人員和非程式開發人員,並與Elementor...。
Accordion Blocks 》Accordion Blocks 是一個簡單的外掛程式,可為您的頁面新增如手風琴般的下拉式選單的 Gutenberg 區塊。, 手風琴選單可以與您的佈景主題無縫結合。不過,您可...。
Timeline Express 》Timeline Express 是最佳的 WordPress 時間軸外掛程式,可讓您在網站上建立美麗的動畫垂直時間軸。填入公告,設定日期,Timeline Express 會按照正確的時間順...。
Tabby Responsive Tabs 》, 增加一組水平標籤,在較窄的視窗時會變成手風琴, 使用 jQuery 建立標籤和手風琴, 支援同一頁面多組標籤, 使用語意化的標題和內容標記, Aria 屬性和角色有助...。
ShiftNav – Responsive Mobile Menu 》ShiftNav 是 WordPress 的一個很棒的行動裝置選單外掛程式。它的外觀和操作方式與像 Facebook、Gmail 等受歡迎的應用程式的本機 App 側邊拉出式選單非常相似...。