[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
chartjs with string configuration  XML
Forum Index -> Development
Author Message
wwillemsens

Power User

Joined: 14/11/2016 18:05:48
Messages: 32
Offline

Hi,
Some plugins in the chartjs are not json compatible and for the moment we have to transfer the config via a json string (via chartjsconfig)

Is it possible to add a chartStringConfig so we can directly transfer a String, that is not parsed at javascript side, (because it is not a valid JSON string)?

Now the chart is created by

Code:
m_chart = new Chart(chartjs,config);


So with the chartStringConfig it becomes something like

Code:
m_chart = new Chart(chartjs,stringConfig);


Or maybe it is easier to add a boolean option if the passed string has to be parsed or not?

I added a working (if you add the library's) example ( with non JSON compliant config)


Thanks in advance

 Filename index.html [Disk] Download
 Description Example
 Filesize 2 Kbytes
 Downloaded:  275 time(s)

wwillemsens

Power User

Joined: 14/11/2016 18:05:48
Messages: 32
Offline

Anyone that can point me in the good directions?
Kind regards
Wim
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team