cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

Negative displaying in the Pie Chart

Mr_Henry_M
14-Alexandrite

Negative displaying in the Pie Chart

Hello!

 

I have an infotable with the following data:

 

9.PNG

 

When displaying this data in the Pie Chart the second and third records are displayed in different colors:

10.PNG

 

Can this widget combine records with the same Label-field and color them in one color so that there are no such repetitions?

ACCEPTED SOLUTION

Accepted Solutions

Hello,

 

I'm not sure about the widget, but in case it isn't possible, you can easily group it on the server side:

var result = Resources["InfoTableFunctions"].RenameField({
    t: Resources["InfoTableFunctions"].Aggregate({
        t: infotable,
        columns: "col2",
        aggregates: "SUM",
        groupByColumns: "col1"
    }), 
    from: 'SUM_col2',
    to: 'col2'
});

(Substitute infotable, col1 and col2 with correct names).

 

Regards,
Constantine

View solution in original post

2 REPLIES 2

Hello,

 

I'm not sure about the widget, but in case it isn't possible, you can easily group it on the server side:

var result = Resources["InfoTableFunctions"].RenameField({
    t: Resources["InfoTableFunctions"].Aggregate({
        t: infotable,
        columns: "col2",
        aggregates: "SUM",
        groupByColumns: "col1"
    }), 
    from: 'SUM_col2',
    to: 'col2'
});

(Substitute infotable, col1 and col2 with correct names).

 

Regards,
Constantine

Mr_Henry_M
14-Alexandrite
(To:Constantine)

Thanks!

Announcements


Top Tags