Viewing a single comment thread. View all comments

Odd_Implement_446 t1_iznh71y wrote

10% feels like a low maximum. Inflation is above 20% for the last few months in Hungary.

Correction for max.

27

adebar OP t1_iznheed wrote

If you extend the colour scale range to dark red=20% inflation, most of the chart is just uniformly green.

29

UsrHpns4rctct t1_izniwd6 wrote

Well, that means you need to do something to properly show the numbers, add a new colour further up? Tweek the grading? Both?

7

adebar OP t1_iznjnp7 wrote

Introducing a new colour makes it noisier. In my opinion, adding on a whole rainbow of shades to differentiate 3% of the data (time and country/wise) is not worth it.

You have the link to the code. Feel free to try it out!

19

LazerWolfe53 t1_izpag4k wrote

I agree with op. Those methods would make it more useful for one countries data at the expense of all the other countries data

5

Odd_Implement_446 t1_iznjex1 wrote

Thank you. It’s a nice overview for the past ~ten years but without the whole scale it’s kind of misleading. I understand that you need a broader color range for the representation of the whole inflation range so that the differences in the smaller values are visible but this way it doesn’t represent the true situation for some countries.

1

adebar OP t1_iznk0gv wrote

Thank you for the feedback! I think it's a trade-off: you really lose out on the details on the rest of the chart that is already predominantly green as it is. Consider this: to go to 20% you would probably not only need to introduce one but two more primary colours (eg. one at 15% and one at 20%).

9

Odd_Implement_446 t1_iznm4ve wrote

Yes, it’s a trade off. That’s what I was thinking, too. I just wish inflation would really be in the 10% range.

1

st36 t1_izrmj0r wrote

Use a log scale.

1

adebar OP t1_izrnkv1 wrote

Yeah, you use a log scale with negative values 🤪

2

st36 t1_izro0z4 wrote

If you offset your zero point then you can still use a log scale.

1