2

I have a bunch of graphs in an Illustrator document. All of them are tagged and have been exported to an XML document. I want to change the numbers in the XML and re-import it to update the graphs with new numbers. When I click 'load variable library', the graphs update like they should, but the numbers are incorrect. Everything gets rounded down: 3,195 becomes 3.00; 4,080 becomes 4.00; 11,568 becomes 11.00.

Has anyone had this experience before?

  • Check the data type i suspect the graph is configured with Integer data type (aka Integer), rather than floating point (aka Real Numbers). After that, check the text formatting for the numbers – Yorik Jun 30 '16 at 15:06
  • check your separarator symbot, most likely it needs to be a . in your xml – joojaa Jun 30 '16 at 16:39
3

Apparently the problem arose because I had commas in the data that I was importing. Illustrator read those as decimals for some reason.

Originally, the data in my XML looked like this:

<graph1>
    <data  numDataColumns="9">
        <values>
            <row>
                <value  key="name"></value>
                <value>3,195</value> [when imported, became 3.00]
                <value>4,819</value> [became 4.00]
                <value>10,490</value> [became 10.00]
                <value>2,324</value> [became 2.00]
            </row>
        </values>
    </data>
</graph1>

Removing the comma solved the problem.

<graph1>
    <data  numDataColumns="9">
        <values>
            <row>
                <value  key="name"></value>
                <value>3195</value>
                <value>4819</value>
                <value>10490</value>
                <value>2324</value>
            </row>
        </values>
    </data>
</graph1>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.