The stat is doubly misleading because it is skewed by the proliferation of long direct flights as turbofan widebody jets proliferated and air travel became more affordable which both happened in the same time period as that chart.
I don't think flying is particularly dangerous but the person you're replying to is being highly naive or misleading by taking that chart at face value.