
內容簡介
透過簡單的 shortcode,從 CSV 檔案資料創建美麗的 HTML5 圖表。需要免費的MaxiCharts外掛程式。
用法
使用 shortcode csv2chartjs
[csv2chartjs url="https://maxicharts.com/wp-content/uploads/2017/04/mysuperfilewithdata.csv" type="bar" width="100%" delimiter=";" rows="2-13" columns="0-5" xaxislabel="%" information_source='<a target="_blank" href="https://specify_data_source">Data source</a>'/]
其中參數為:
url:必填,必須是檔案在你的伺服器上的 URL 或絕對路徑
delimiter:你的 CSV 檔案中使用的分隔符號,預設為,
columns:要繪製的欄位,只能為一個,或者為範圍0-5或2,4-7或其他範圍
rows:要繪製的列(第一行被認為是標題)
information_source:指定資料來源的任何字串(良好的實踐!)
>> 示範網站 <<
>> 更多示範 <<
外掛標籤
開發者團隊
② 後台搜尋「MaxiCharts CSV Source add-on」→ 直接安裝(推薦)
原文外掛簡介
Create beautiful HTML5 charts from CSV files datas with a simple shortcode. Requires free MaxiCharts plugin.
Usage
Use shortcode csv2chartjs
[csv2chartjs url="https://maxicharts.com/wp-content/uploads/2017/04/mysuperfilewithdata.csv" type="bar" width="100%" delimiter=";" rows="2-13" columns="0-5" xaxislabel="%" information_source='Data source'/]
with parameters:
url : required, must be the URL or the absolute path to the file on your server
delimiter : delimiter used in your csv file, defaults to ,
columns : columns to graph, just one, or a range 0-5 or 2,4-7 or something else
rows : rows to graph (first is considered header)
information_source : any string specify where the data come from (good practice!)
>> Demonstration site << >> More demos <<
