Comments (2)
I duplicated this behavior on ours. This should respect the given order.
Looks like sort order in API is incorrect at chartwerk.datamap.sort
, which is set here.
Looking at the csvtojson library that gives the order, one person had the same issue, which was fixed by turning off the type sniffing in checkType param. That is now false by default in current versions, so it may just need a version bump in this repo.
If that doesn't fix it, then I may need to set the header order from the raw data string before converting to JSON, which I'll need to test against some other conditions...
Adding as bug for quick fix. (hi, ariana!)
from chartwerk-editor.
So on closer look, EMCA guarantees that keys that are integer-like will always come before alpha keys in JS objects (though alpha keys can be arbitrarily sorted).
So to sort data properties, chart templates should use the sort order in chartwerk.datamap.sort
, which will be an array of the headers as sorted in the original data.
@arianagiorgi you may just need to adjust the data table chart template a little to get what you need now.
from chartwerk-editor.
Related Issues (20)
- Height calculation is off HOT 1
- Date parsing HOT 1
- Update django template
- Legend keys placeholder text
- Sync size buttons with preview window HOT 2
- Numeric color scales HOT 1
- Legend key placeholders for numeric color scales
- Free symbols for annotations
- Null values in scale axis should not get assigned a color
- Updating the template from a child chart creates a new template HOT 2
- Prompt user before page reload HOT 1
- Date parsing HOT 1
- Convert build system to webpack
- Date parsing issues since last update HOT 6
- Can't input negative values for axes min and max HOT 1
- Can't input negative values for axes shaded regions
- Update/switch between double/single preview state depending on which element user is editing
- Sort options for categorical base axis
- Don't count link length against character count in text fields
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chartwerk-editor.