Coloring layers based on data set

Post questions on how to use or achieve an effect in Inkscape.
s.raymond
Posts: 2
Joined: Thu Jun 23, 2011 5:19 am

Coloring layers based on data set

Postby s.raymond » Thu Jun 23, 2011 5:36 am

I am hoping to utilize a US map with counties in SVG format to map the results of a project. Every county is an object and has its "FIPS code" in the object id field. I would like to fill the counties with a specific color based on a data set. The data set is an excel document containing two columns: one column with the id field and another column containing the color value in hex code. I can save this table as CSV. Based on this file, I need help using Inkscape to automatically color the counties. I have very little experience using Inkscape. Thank you in advance for your assistance and time.

User avatar
prkos
Posts: 1625
Joined: Tue Nov 06, 2007 8:45 am
Location: Croatia

Re: Coloring layers based on data set

Postby prkos » Thu Jun 23, 2011 6:37 am

I don't think you can do it without scripting, either javascript or a python extension for Inkscape, maybe even shell script. Do you have any experience with scripting?

This is similar: viewtopic.php?f=11&t=9212
just hand over the chocolate and nobody gets hurt

Inkscape Manual on Floss
Inkscape FAQ
very comprehensive Inkscape guide
Inkscape 0.48 Illustrator's Cookbook - 109 recipes to learn and explore Inkscape - with SVG examples to download

s.raymond
Posts: 2
Joined: Thu Jun 23, 2011 5:19 am

Re: Coloring layers based on data set

Postby s.raymond » Thu Jun 23, 2011 7:02 am

No. I do not have any experience scripting. Earlier, I was starting to read a tutorial article that was similar to what I am hoping to accomplish that involved some scripting.


Return to “Help with using Inkscape”