Jump to content
MediaWiki

Topic on User talk:Yurik/Flow

Strange line behaviour in Template:Graph:Population history

3
Ah3kal (talk contribs )

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 (talk contribs )

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 (talk contribs )

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!

AltStyle によって変換されたページ (->オリジナル) /