'Javascript/Excel non-linear X axis/different scale

Is there any way to replicate the graph on the left in Excel?

If not, any way to do it in JavaScript/Python? The upper scale on the X axis is different than lower scale (it's stretched).

Excel Graphs



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source