Topic on User talk:Yurik

Strange line behaviour in Template:Graph:Population history

3
Ah3kal (talkcontribs)

Hello Yurik,

First of all a big Thank you for your amazing work with graphs!

I'd like to report a strange behaviour in Template:Graph:Population history, where a connecting line turns in the wrong direction. An example of this can be found at w:el:Χρήστης:Ah3kal/πρόχειρο 10. The line connecting 1881 to 1891 is extending beyond 1891 to 1900 and then turns back. Thank you for your time.

Yurik (talkcontribs)

This is part of the interpolation algorithm called "monotone". I added a new parameter called "interpolate", and updated Greek wiki and your example with it. interpolate=monotone solves your problem. Also, I would highly recommend using shared tabular data on Commons instead of hardcoding them in the template call. This way someone can update the population, and all graphs in all wikis will be automatically updated. Lastly, I'm running for the board, please support and let others know :) Thanks!!

Ah3kal (talkcontribs)

Thank you very much! Hardcoded data were use only to highlight this behaviour in a stable way since the original graph used data from wikidata and the value for 1700 was just for experimentation. I had allready supported you :) Good luck with it. Regards!

Reply to "Strange line behaviour in Template:Graph:Population history"