Jump to content
JChartFX Community
  • 0

3D Bar chart with variable column in same chart


Medioman92

Question

hi,

i'm facing this problem, i want to generate a column chart with montly grouped bars.

the problem is that the number of bars for each month is a range starting from 0 going to N, so i can have a month with 0 bars and a month with N bars.

i generate the data from JSON with javascript :

 var data2 = [];

$.each(dati.mesiCommesse,function (index, mese){

var obj ={"Mese":mese.nomeMese};

//mese.orePerCommessa can contain 0 elements

$.each(mese.orePerCommessa,function (index, commessa){

obj[commessa.nomeCommessa] = commessa.oreDouble;

});

data2.push(obj);

});

chart2.setDataSource(data2);

in the chart i get a "no data avaible" message...how to solve ?

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...