In a stacked bar chart, each bar starts at 0. Its parts are laid end to end, so each part starts where the previous one ends, and the bar ends at the total.
(i) One bar for Home and one for Overseas, each split into Test, ODI and T20.
Home: Test from 0 to 62, ODI from 62 to 62+100=162, T20 from 162 to 162+32=194.
Overseas: Test from 0 to 172, ODI from 172 to 172+49=221, T20 from 221 to 221+71=292.

The bowler took 194 wickets at home and 292 wickets overseas, so more wickets overseas.
(ii) One bar for each format, each split into Home and Overseas.
Test: Home from 0 to 62, Overseas from 62 to 62+172=234.
ODI: Home from 0 to 100, Overseas from 100 to 100+49=149.
T20: Home from 0 to 32, Overseas from 32 to 32+71=103.

The bowler took the most wickets in Tests (234), then ODIs (149), then T20s (103). Both charts add up to the same overall total: 194+292=486=234+149+103 wickets.