Order from left to right


#1

I have a question regarding the order of which the list entries are displayed from left to right in the same heirachy row in the org chart. It seems the order is based on the list entry ID generated by sharepoint. Is there any way to change this? I tried changing the item ID under data source settings to a column I created with a new numbering, but that didnt do anything. It seems the only way to rearrange who is displayed first from left to right, is to manualy rename all the info in the entry in the list to the desired person?


#2

Hi Agito,

We just added such functionality to our new major version.

You can add couple of lines to JavaScript editor to apply sorting settings like this:


This is a code snippet:

renderer.config.nodesSortOrder = "ASC"; renderer.config.nodesSortFieldName = "Title";

nodesSortOrder - order, for example “ASC” or “DESC”.
nodesSortFieldName - internal name of list field or property from user profile service.

You can download the new version from our site. Note, if you use version 1.* you will need to upgrade to new version by removing old web part from your page and adding the new one.

If you need to extend your trial just send a request to [email protected]


Persons with two managers
Google Chrome issue
How to adjust web part's height to fit the chart
#3

Hi Anton,

Should this work for Sorting vertically also?

Can I use another column for the sort order? I’m using a SharePoint list and have a number column called “Order” but it doesn’t seem to be working using the following:

renderer.config.nodesSortOrder = "ASC"; renderer.config.nodesSortFieldName = "Order";


Sorting boxes by Title and in more than 2 columns
How to sort org chart in custom hierarchy?
#4

Hi Scott,

Thank you for your question. Currently Org Chart handles all the properties as strings. Probably we will add this functionality in future releases.

Best regards
Anton Khritonenkov