It has reproduced here
I try prevent sort dataSource
JavaScriptdataSource = [
{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
JavaScriptdataPrepareSettings: { sortingMethod: false }
but it doesn't prevent sorting by categories.
In case, when I setup
JavaScriptsortingMethod: ()=>0
it prevents sorting at all
Problem near dx.all.17.2.7 -> line 126760 of sortData function
Question is: it's right way or you could propose better solution?
With
sortingMethod: ()=>0
I have found problem with legend. On hovering it select wrong piece of pie.
Hi,
From your previous message, it is unclear to me whether the issue is resolved. Would you please clarify this?
problem exists: just hover mouse on legend and it selects wrong piece of pie
Hi,
The dxPieChart widget does not have the "dataPrepareSettings" option. On the other hand, it is incorrect that the dxPieChart elements order does not match the datasource items order. Thank you for pointing out this behavior. We have reproduced it on our side and will discuss it with the team. We will contact you once we have any results. In the meantime, as a workaround, you can add extra IDs to datasource items and define appropriate content in the customizeText callback function. For example: https://codepen.io/anon/pen/ELyoeR?editors=0010.
The dxPieChart widget does not have the "dataPrepareSettings" option.
Actually a Pie Chart changes behavior on this option. So, it seems like the Pic Chart has this option. You could pay attention on this too.
About workaround - thank you, I will try.
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
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.