You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected: Column order should be same as what is provided in the dataProvider Actual: Column order changes based on the key.
I looked at the source code for the export function. I think this is happening because Amcharts is building an object with each valueField:value as a key:value pair. Ordering is done in this order:
Non-numeric example: (using 'A1' as valueField)
https://codepen.io/emaillenin/pen/ZEWKWrL
CSV Output:
Numeric example: (using '1' as valueField)
https://codepen.io/emaillenin/pen/dyMWMJK
CSV Output:
Expected: Column order should be same as what is provided in the
dataProvider
Actual: Column order changes based on the key.
I looked at the source code for the export function. I think this is happening because Amcharts is building an object with each
valueField:value
as akey:value
pair. Ordering is done in this order:https://www.stefanjudis.com/today-i-learned/property-order-is-predictable-in-javascript-objects-since-es2015/
The text was updated successfully, but these errors were encountered: