Your first graph shows that equities and GDP growth are very strongly correlated, actually. Got positive GDP growth? You'll have positive equities growth too. They don't correlate perfectly, of course, but if you found a country with negative GDP over that time period (and a functioning stock market for that entire time, which is unlikely) you'd probably see negative returns.
I mean, just think about what it would mean to have negative GDP growth over 50 years! There's very little chance a country would even *exist* at that point. Even countries in Europe that were destroyed twice in the first half of the 20th century didn't manage to pull off negative GDP.
Your second graph shows individual years - ie, 1980 Germany (I think). It shows the GDP number for that year, and the equities number. But there's not much reason to believe those numbers would correlate very strongly in a given year anyway. You could probably make an argument for a relationship with some kind of lag built in (ie economic crash leads to market crash in 9-12 months?), I guess, but I don't think that's what the creators of the graph did.
Try plotting your data from the first graph (which is what we're actually interested in) in the same format as your second (which is about something else, though I confess I'm not very sure what, unless it's to prove that single-year GDP numbers don't have much to do with single-year stock market numbers, or that stocks mostly go up). You'll see all the data points in the upper right (positive/positive) quadrant, right? Now what does the pattern look like? All the countries with positive GDP numbers are clustered in the positive equities return corner. If you can find some negative GDP countries, they're almost certainly going to have negative equities numbers as well, but like I said earlier, those countries (long term economic collapse with a modern functioning stock market the whole time) don't exist.
-W