Bug Report T629169
Visible to All Users

PieChart - Elements' order differs form the underlying datasource items' order

created 7 years ago

It has reproduced here
I try prevent sort dataSource

JavaScript
dataSource = [ {testType: "A", value: 11.10}, {testType: "B", value: 12.57}, {testType: "A", value: 13.51}, {testType: "A", value: 16.17}, {testType: "B", value: 18.97}, {testType: "C", value: 28.27} ];

for this I setup

JavaScript
dataPrepareSettings: { sortingMethod: false }

but it doesn't prevent sorting by categories.

In case, when I setup

JavaScript
sortingMethod: ()=>0

it prevents sorting at all

Problem near dx.all.17.2.7 -> line 126760 of sortData function

Show previous comments (6)
DevExpress Support Team 7 years ago

    Hi,

    The dataPrepareSettings option is not supposed to change anything in dxPieChart and I wasn't able to achieve this using the settings you demonstrated in the previous replies. See the attached video.

    Would you please clarify what exactly option affects dxPieChart?

      My version. I have different order of legend items and Pies. If I remove sortingMethod: ()=>0 - the order of is different. In your case you leave the ID in datasource and argument field

      DevExpress Support Team 7 years ago

        Thank you for your clarification. We will research this case in order to improve PieChart behavior. Once we have any news, we will update this thread.

        Answers approved by DevExpress Support

        created 7 years ago

        We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

        Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.