Coldfusion 2016 CFChart not working with javascript


the pie chart below created in coldfusion v11

with following javascript:

{

"graphset":[

  {

  "border-width":1,

  "background-color":"transparent",

  "foreground-color":"black",

  "plot":{

  "value-box":{"color":"black"},

  "border-color":"black",

  "tooltip-text":"%t\n%v"

  },

  "plotarea":{

  "margin":"dynamic"

  },

  "legend":{

  "border-color":"red",

  "layout":"2x",

  "x":10,

  "y":30,

  "shadow":true,

  "height":"40px"

  }

  }

  ]

}

in v2016 js not work @ , received error:

syntaxerror: unterminated string literal (zingchart-rhino.min.js#8(eval)#1) specific sequence of files included or processed is: c:\websites\haztrak\html\hazportal.cfm, line: 1

if take out javascript pie chart looks like:

i either need fixed v2016 work same js or xml file same js did.

the problem turned out \n causing error. not know why \n (line feed) cause error. should not , did not in prior version. noticed border not displaying correctly. using width of "1" show on left side. in order have border show around entire frame, need width of "2", left border thicker. again, worked fine in previous version. , size of pie change size depending on placement of titles did not happen in prior version.



More discussions in ColdFusion


adobe

Comments

Popular posts from this blog

Soustraire une selection

After Effects: could not find dvaeve_dialogs.txt

Illustrator cs6 "Invalid Serial Number"