Steps to replicate the issue (include links if applicable):
- When using a chart with Wikidata access, the data is mixed if all the items don't have the same points in time (P585)
- It can be tested on wikis with Wikidata data access for Charts
What happens?: If three different entities are given, for example Q744893, Q1242393 and Q747628 and population is plotted, Q1242393 has less data points that the others, because is a newer entity. The individual graphs are ok, but if the three lines are present they mix the data:
Individual one for Q744893 (wikicode used at euwiki: {{biztanleria grafiko automatikoa|item=Q744893}})
If both Q744893 and Q1242393 are added, the graph is istill working ({{biztanleria grafiko automatikoa|item=Q744893,Q1242393}}):
However, Q1242393 is a newer entity, so no population data exists before 1970. Then, when a third is added, data is mixed, adding to Q1242393 the data from Q1242393: ({{biztanleria grafiko automatikoa|item=Q744893,Q1242393,Q747628}})
However, if the order is changed, to present the one with fewer data points the last, then the lines are rendered correctly: {{biztanleria grafiko automatikoa|item=Q744893,Q747628,Q1242393}}
The same issue happens if the data is very different, like comparing London (Q84) and New York (Q84):
If a third one is added (Barcelona, Q1492), then the result is even more wild:
And it changes if we reverse the order of the items:
What should have happened instead?: The lines should be consistent.
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):







