Pie Chart with Variables from a function

31 views
Skip to first unread message

Dar ky

unread,
Jan 12, 2017, 8:49:31 AM1/12/17
to jqplot-users
Hi,

i got a function that reads from a formular certain values and calculates a lot of variables.
i'd like to make use of these variables and create a pie chart with these.

can someone give me a rough idea how to handle this? I tried to define the variables globaly, but they where not accepted within the pie chart.

Regards



Larry Martell

unread,
Jan 12, 2017, 8:51:59 AM1/12/17
to jqplot-users
Please post your code on jsfiddle or codepen so we can see it and try
it and modify it.

Dar ky

unread,
Jan 17, 2017, 1:34:00 AM1/17/17
to jqplot-users
Hi,

im not familiar with those pages - so i didn't get the pie chart to work here :( but i posted the code:
 

Larry Martell

unread,
Jan 19, 2017, 10:52:57 AM1/19/17
to jqplot-users
Here is something that works and that your could adapt to your needs.

https://jsfiddle.net/joftj9fw/
Reply all
Reply to author
Forward
0 new messages