How to set goals in a ColdFusion bullet chart? -


bullet charts supported in coldfusion version 10, can't find documentation explains how use cfml code. want know how set goals on series in cfml.

this minimal bullet chart in cfml:

<cfchart     format="html"     type="bullet">    <cfchartseries serieslabel="foo">     <cfchartdata item="bar 1" value="1000">     <cfchartdata item="bar 2" value="2000">   </cfchartseries>  </cfchart> 

coldfusion using zingchart library under hood , how can set goals in js:

{   "type": "bullet",   "series": [     {       "values": [20,40,25,50,15,45,33,34],       "goals": [25,43,30,40,21,59,35,31]     }   ] } 

i have looked coldfusion server tags definitions trying figure out if there special attribute or tag define series goals, nothing.

\web-inf\cftags\meta-inf\taglib.cftld 

looking again taglib.cftld file figured out attributes supported cfchartdata tag:

  • item
  • value
  • zvalue

the solution cf11+ use zvalue attribute specify value of goal on each data point:

<cfchart     format="html"     type="bullet">    <cfchartseries serieslabel="foo">     <cfchartdata item="bar 1" value="1000" zvalue="800">     <cfchartdata item="bar 2" value="2000" zvalue="2500">   </cfchartseries>  </cfchart> 

Comments

Popular posts from this blog

sql server - Cannot query correctly (MSSQL - PHP - JSON) -

php - trouble displaying mysqli database results in correct order -

C++ Linked List -