Data structures used in charts
Data used as sources for visualizations is usually organized in some kind of structure. The most common structures are probably lists (arrays) and tables (maps), stored in some standard data format. When using data from external sources, you usually need to clean it up, removing unnecessary values, simplifying its structure, applying bounds, and so on. After that, you can parse it and finally store it locally in a JavaScript array or JavaScript object that can be used by the chart.
Once your data is stored in a JavaScript data structure, you can transform it further by applying mathematical operations on the stored values. You can change the structure, create new fields, merge, and delete data. Typical operations ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access