meta-information in .svg

15 views
Skip to first unread message

tno...@googlemail.com

unread,
Jan 5, 2019, 8:39:54 AM1/5/19
to Data Illustrator
wondering if there are any plans to put some meta-information into the .svg-export which makes it easier to update with new numbers. Due to the absolute coordinates, it is probably hard to encode the complete generation process, but some simple drill-down and scaling rules for leaf-nodes would be easy, like:


To indicate that this group is a drill-down to the "state" of "Maine" and then sorted according to "size":

<g property="state" value="Maine" sort_property="size" >


To indicate that the value x was generated with property "size" in the current drill-down:

<rect xmlns="http://www.w3.org/2000/svg" x="846.3" x_property="size" y="110.03226" width="4.77778" height="1.43779"/>

Note that the exact way to scale x can be easily reverse engineered given the input .csv, but the (linear) formula values could also be given.


To indicate that the color was selected using the "size" property in the current drill-down:

<rect xmlns="http://www.w3.org/2000/svg" x="846.3" y="110.03226" width="4.77778" height="1.43779" fill="#0064dc" fill_property="size"/>


This would help to update a chart with new numbers or even turn it into an automatic report or jupyter widget. I understand that data illustrator is not intended to be a BI-tool, but this would avoid having to rerun all steps (manually or automatic) just to update a few values.

P.S. the whole workflow with the repeat and partition is quite cool, feels supernatural!




Reply all
Reply to author
Forward
0 new messages