Описание
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='<a target="_blank" href="https://specify_data_source">Data source</a>'/]
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
or2,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!)
Установка
Easy
- Search via plugins > add new.
- Find the plugin listed and click activate.
- Use the Shortcode
Отзывы
Участники и разработчики
«MaxiCharts CSV Source add-on» — проект с открытым исходным кодом. В развитие плагина внесли свой вклад следующие участники:
УчастникиПеревести «MaxiCharts CSV Source add-on» на ваш язык.
Заинтересованы в разработке?
Посмотрите код, проверьте SVN репозиторий, или подпишитесь на журнал разработки по RSS.
Журнал изменений
-
1.3.2 — bug fix related to file download and write on server
-
1.3.1 — Bug fix on unavailable csv file
-
1.3.0 — Be carefull, big change upgrading underlying php league csv library to 9.x. Should be seemless for existing shortcodes.
-
1.2.4 — Notice: Constant MAXICHARTS_PATH already defined, fixed
-
1.2.3 — bug on information source fixed
-
1.2.2 — bug on csv delimiter if catched from URL
-
1.2.1 — other logger categories
-
1.2 — log fix
-
1.1 — monolog replaced log4php
-
1.0 — module extraction