Skip to main content
16-Pearl
May 11, 2020
Solved

Data not showing in properties of Label chart (i have to select display field and X axis field)

  • May 11, 2020
  • 1 reply
  • 3638 views

Hi ,

 

i have bound the infotable data (All data) to Label chart but unable to see infotable fields in Properties of Chart.

as i have to select specific field as x axis and display field. using  TWX  8.5.0.

 

Thanks 

Best answer by Constantine

Yes! In fact, in your code you should create infotables using data shape name, like that:

var result = Resources["InfoTableFunctions"].CreateInfoTableFromDataShape({ dataShapeName: "MyDataShape" });
result.AddRow({ name: 'a', value: 1 });
result.AddRow({ name: 'b', value: 2 });
...

This will protect you from some of those typos.

 

/ Constantine

1 reply

6-Contributor
May 11, 2020

Hi Vaibhav,

 

You must bound the infotable to the Data property of the chart. After that you will get list option for x-axisfield and y-axis field  choose according to your use case.

 

Must define datashape for the infotable.

 

Thanks

Ankur

 
 

 

 

 

16-Pearl
May 13, 2020

Hi ,

Thanks for reply, 

I am getting data now but unable to see in Chart, its showing value as 'NaN' at Y-axis. i have attached snap please check it. and i am able to see all data/fields as result of service. why its showing NaN?

VaibhavShinde_0-1589371683255.png

VaibhavShinde_1-1589371794166.png

 

Thank you

18-Opal
May 13, 2020

Hello @VaibhavShinde,

 

You need to select correct DataFieldX properties as well.

 

/ Constantine