• Hi it works fine with my html code,
    but when I put it into <?php ?>, the diagram could not show then.

    All I changed is change ” to ‘,
    and my code is
    echo "[chartboot version= '2.3' code= '81F5' border= '1' width= '625' height= '325' attribution= '0' jsondesc= '{'containerId':'visualization81F5','dataTable':{'cols':^{'id':'','label':'Names','pattern':'','type':'string'},{'id':'','label':'Quantity','pattern':'','type':'number'}|,'rows':^{'c':^{'v':'A','f':null},{'v':12,'f':null}|},{'c':^{'v':'B','f':null},{'v':25,'f':null}|},{'c':^{'v':'C','f':null},{'v':21,'f':null}|},{'c':^{'v':'D','f':null},{'v':9,'f':null}|},{'c':^{'v':'E','f':null},{'v':16,'f':null}|}|,'p':null},'options':{'legend':'right','isStacked':false,'vAxes':^{'title':null,'minValue':null,'maxValue':null,'viewWindow':{'max':null,'min':null},'useFormatFromData':true,'logScale':false},{'viewWindow':{'max':null,'min':null},'minValue':null,'maxValue':null,'useFormatFromData':true,'logScale':false}|,'animation':{'duration':500},'booleanRole':'certainty','hAxis':{'useFormatFromData':true,'minValue':null,'maxValue':null,'viewWindow':null,'viewWindowMode':null}},'state':{},'view':{},'isDefaultVisualization':true,'chartType':'ColumnChart'}' ]";

    Could you help me plz? Thanks ??

    https://www.ads-software.com/extend/plugins/chartboot-for-wordpress/

Viewing 1 replies (of 1 total)
  • Plugin Author lpagg

    (@lpagg)

    Hi x69chen, you have quotes in place of double quotes in your shortcode.
    You should have the following shortcode from the CB for WP editor injected in your page/post:

    [chartboot version= '2.3' code= '81F5' border= '1' width= '625' height= '325' attribution= '0' jsondesc= '{"containerId":"visualization640D","dataTable":{"cols":^{"id":"","label":"Names","pattern":"","type":"string"},{"id":"","label":"Quantity","pattern":"","type":"number"}|,"rows":^{"c":^{"v":"A","f":null},{"v":12,"f":null}|},{"c":^{"v":"B","f":null},{"v":25,"f":null}|},{"c":^{"v":"C","f":null},{"v":21,"f":null}|},{"c":^{"v":"D","f":null},{"v":9,"f":null}|},{"c":^{"v":"E","f":null},{"v":16,"f":null}|}|,"p":null},"options":{"legend":"right","isStacked":false,"vAxes":^{"title":null,"minValue":null,"maxValue":null,"viewWindow":{"max":null,"min":null},"useFormatFromData":true},{"viewWindow":{"max":null,"min":null},"minValue":null,"maxValue":null,"useFormatFromData":true}|,"animation":{"duration":500},"booleanRole":"certainty","hAxis":{"minValue":null,"maxValue":null,"viewWindow":null,"viewWindowMode":null,"useFormatFromData":true}},"state":{},"view":{},"isDefaultVisualization":true,"chartType":"ColumnChart"}' ]

    Rgds.

Viewing 1 replies (of 1 total)
  • The topic ‘Could it works on PHP file?’ is closed to new replies.