开发者 |
munger41
maxicharts |
---|---|
更新时间 | 2021年9月20日 21:30 |
PHP版本: | 4.0 及以上 |
WordPress版本: | 4.9 |
[gfchartsreports gf_form_id="form_id" include="fieldNb1,fieldNb2,fieldNb3,.." exclude="fieldNb4,fieldNb5,..." color_set="set" type="graphType" width="width(px|%)" float="true|false" chart_js_options="options"]
where all parameters are optional:
include="1,3,4"
)exclude="2,4,6"
)[gfchartsreports chart_js_options="title: {display: true, text: 'My Funky Chart Title', fontSize:28,fontFamily:'Arial',fontColor:'#00B88A',fontStyle:'bold',padding:20}"]
Displays fields 4, 7 and 18 of gravity form #3 with bar charts. Default colors used.
[gfchartsreports gf_form_id="3" include="4,7,18" type="bar"]
Displays field 2 of gravity form #2 with default pie chart. Use red color set, with not randomization.
[gfchartsreports gf_form_id="2" include="2" color_set="red"]
Displays all but fields 4,7,18 of gravity form #8 with horizontalBar type charts. Use blue color set, randomized.
[gfchartsreports gf_form_id="8" exclude="4,7,18" color_set="blue" color_rand="true" type="horizontalBar"]
Test it live here : >> Demonstration site <<