[wordpress插件] TablePress Extension: ChartistTablePress扩展:图表专家

wordpress 插件 文章 2020-03-22 01:50 780 0 全屏看文

AI助手支持GPT4.0

评分
100
描述

Using Chartist.js, this Chartist.js ,此

org/plugins/tablepress/">TablePress Extension creates a responsive chart based on the data in a TablePress table.

org / plugins / tablepress /“> TablePress 扩展程序基于TablePress表中的数据创建响应式图表。

Use

使用

Add the Shortcode [table-chart id=123 /] to a post or page to create a chart from the TablePress table 123.

将简码 [table-chart id = 123 /] 添加到帖子或页面上,以使用TablePress表123创建图表。

Optional parameters:

可选参数:

    • Show/hide chart line: showline=true (default: true)
    • 显示/隐藏图表线: showline = true (默认值:true)

    • Show/hide show chart area: showarea=false (default: false)
    • 显示/隐藏显示图表区域: showarea = false (默认值:false)

    • Set chart y low: low=0 (default: table low)
    • 将图表y设置为低: low = 0 (默认值:表格低)

    • Set chart y high: high=10 (default: table high)
    • 将图表y设置为高: high = 10 (默认值:表格高)

    • Set line with of the donut chart: donut_width=200 (default: false)
    • 用甜甜圈图设置一条线: donut_width = 200 (默认值:false)

    • Enable/disable smooth line: linesmooth=true (default: true)
    • 启用/禁用平滑线: linesmooth = true (默认值:true)

    • Enable/disable line points: showpoint=true (default: true)
    • 启用/禁用线点: showpoint = true (默认值:true)

    • Enable/disable horizontal bars: horizontal=true (default: false)
    • 启用/禁用水平条: horizo​​ntal = true (默认值:false)

    • Enable/disable stacked bars: stack=true (default: false)
    • 启用/禁用堆叠的条形: stack = true (默认值:false)

    • Set chart aspect ratio: aspect_ratio=3:4 (default: 3:4) Alternatives: 1, 15:16, 8:9, 5:6, 4:5, 3:4

    • 设置图表的宽高比: 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, or 1:4

    • ,2:3、5:8、1:1.618、3:5、9:16、8:15、1:2、2:5、3:8、1:3或1:4

    • Select chart type: chart=bar (default: line) Alternatives: line, bar, pie, donut, percent or piepercent (mix of pie and percent).
    • 选择图表类型: chart = bar (默认值:折线)备选方案:折线,条形图,饼图,甜甜圈,百分比或piepercent(饼图和百分比的混合)。

    • Set label offset: label_offset=100 (default: false)
    • 设置标签偏移量: label_offset = 100 (默认值:false)

    • Set chart padding: chart_padding=100 (default: false)
    • 设置图表填充: chart_padding = 100 (默认值:false)

    • Use animations (not available for all chart types): animation=buildup (default: false)
    • 使用动画(不适用于所有图表类型): animation = buildup (默认值: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

    CSS定制

    If you'd like to overide the default style

    如果您想覆盖默认样式

    , you can add a tablepress-chartist-custom.css in wp-content directory.

    ,您可以在 wp-content 目录中添加 tablepress-chartist-custom.css

    It will be loaded after the Extension’s default CSS file libdist/chartist.min.css.

    它将在扩展程序的默认CSS文件 libdist / chartist.min.css 之后加载。

    Example:

    示例:

    /** 

      / ** 

    * SVG Shape CSS properties: http://tutorials.jenkov.com/svg/svg-and-css.html#shape-css-properties 

    * SVG Shape CSS属性: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系列-a,下一行是.ct系列-b等。* /

    .ct-chart .ct-series.ct-series-a .ct-bar,

    .ct-chart .ct-series.ct-series- .ct-bar,

    .ct-chart .ct-series.ct-series-a .ct-line,

    .ct-chart .ct-series.ct-series-.ct-line,

    .ct-chart .ct-series.ct-series-a .ct-point {    

    .ct-chart .ct-series.ct-series- .ct-point {    

    stroke: #073DA0;

    笔划:#073DA0;

    }

    }

    .ct-series .ct-line, .ct-chart .ct-bar {    

    .ct系列.ct行,.ct图表.ct-bar {    

    fill: none;    

    填充:无;    

    stroke-width: 10px;

    笔划宽度:10px;

    }

    }

    .ct-chart .ct-point {    

    .ct-chart .ct-point {    

    stroke-width: 10px;    

    笔划宽度:10px;    

    stroke-linecap: round;

    笔画线帽:圆形;

    }

    }

安装步骤

Prerequisite (install first): The TablePress plugin

先决条件(首先安装): TablePress 插件

    1. In Plugins->Add New, search for tablepress chartist
    2. 插件->添加新中,搜索 tablepress图表专家

    3. Click Install Now
    4. 点击立即安装

    5. When the plugin is installed, activate it.
    6. 安装插件后,将其激活。

下载地址
https://downloads.wordpress.org/plugin/charts-for-tablepress-chartist.0.9.zip
-EOF-

AI助手支持GPT4.0


国内超级便宜服务器

摸鱼人热门新闻聚合

钻级赞助商 我要加入

开发者在线工具

第三方支付技术请加QQ群

相关文章
[wordpress插件] Activate Update Services激活更新服务
[wordpress插件] BU SlideshowBU幻灯片
[wordpress插件] Payment Gateway Based Fees and Discounts for WooCommerce基于支付网关的WooCommerce费用和折扣
[wordpress插件] Custom Testimonial定制证明
[wordpress插件] Cyklodev WP Paypal IntegrationCyclodev WP Paypal集成
随便看看
微信开放平台跟公众平台有什么区别? 3608
怎么添加小程序支付功能? 4516
教育科技公司申请微信支付被拒绝? 4798
微信公众号免300认证教程 5892
小程序已经上线,作为管理员无法在小程序数据助手查看数据? 5299
小程序广告组件通过审核,但是小程序内没有显示广告? 5067
企业微信通讯录账号被管理员误/恶意删除,怎么办? 9568
问题? 9048
如何快速搭建抽奖助手小程序(无需代码知识) 6177
许涛 大哥在吗, 要解冻小程序的时候提示信息主体不一致, 能帮忙看下吗? 7472