Adding the parameter-line while correcting an error

In this post we will add the parameter-line to the input-file. The parameter-line is the first line and contains a couple of values, partially determining the size of the graph. The first two numbers however, tell the generator how many blocks (companies) of data have to be read and which number of lines will be in every block (years).

But before I will show  how it’s done, I have to correct an error in my previous post (shame on me!). From time to time I simply forget the order of the values in the input-file. It’s stupid, because I have created hundreds of AnRep3D-graphs and even wrote the manual myself. Yet I simply forget from time to time  (perhaps it’s my age?). So I looked in the manual last time, but because I was in a hurry I checked the introduction instead of the paragraph explaining the structure of the input-file. It said: “For now we will ignore these possibilities and concentrate on the set revenue, profit, assets, equity.” I didn’t realise that’s the wrong order! Actually it is revenue, profit, equity, assets and for a good reason. Equity will be (much) lower than total assets. The fifth value (after company, year, revenue and profit) determines the width of the building and it’s nicer to have a long and narrow building, than some kind of wall in front. It’s not forbidden to switch the values, but the graph will be much better in the advised order. I’m  happy I discovered this inconsistency in my manual in time! I should use the same order everywhere of course – even if it’s in not the part giving instructions.

After this discovery I switched total assets and equity in the input-file (the first line is still empty, but not for long):

Equity Assets switched

Now the parameter-line has to be added. We chose four companies and took three years for each of them. This means the parameter-line will start with 4,3 – but the series will go on.

The amounts in the input-file are huge. Even if we entered millions instead of actual euros, we have to scale down the values e.g. a thousand times. The revenues, determining the heights of the buildings range from about 1000 to 23000. At the same time the Assets, determining their length range from a couple of about 60000 to nearly one million. Let’s see what will happen if we put in a reduction-value of 5000.

After the size-adjustment value, we can ask for extra spacing between the buildings. This can be useful to give the labels some more space, preventing them from overlapping. There is a default space, with can be kept by adding 0 (%) but also doubled by adding 100(%) – and every integer in between.

Finally, the size of the labels can be set. Small labels will be hard to read, but large labels will probably overlap and cause a blur.

The proof of the pudding is in the eating, so let’s take 4, 3 (no discussion possible) and then 1000, 100, 5 It means the size of the buildings will be reduced 5000 times, space will be doubled (100% extra) and the labels will have an arbitrary size of 5.

So 4, 3, 5000, 100, 5 will be in the parameter-line (4; 3; 5000; 100; 5 would also be allowed). Let’s save the input-file as AnRep3D.txt  – a very original name!

Input-file with parameter-line

About AnRep3D

AnRep3D is the new company, founded after the handover of Scientassist (together with VRBI) to one of my sons. From now I will focus on three-dimensional graphs for the financial markets, showing the main figures from annual reports in comparison. As per 2021 a second product is available: EnRep3D. It is meant to visualise energy. Although the engine is the same, the texts, manual, website and examples (including blogposts) are focused at energy.
This entry was posted in Visualising Financial Information and tagged , , , , , , , , , , , , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.