The majority of pictures explaining lateral(transverse) chromatic aberration look like this
Here the focal point for red light is shifted closer to the optical axis and the focal point for blue light is shifted farther from it. This looks wrong to me since it requires blue light to be refracted less than red light in the bottom part of the lens. If lateral aberration is a result of the difference in refractive indices for different wavelengths then it should be possible to recreate the effect in a simple simulation. So I wrote one and it produced the expected result
Here blue light experiences more refraction than red light on both sides of the lens. So it doesn't look like the first picture. In fact, it looks almost like a longitudinal aberration. It would produce a visible effect of a rim around objects viewed through the lens, which is not the effect associated with lateral chromatic aberration. What am I missing here?
UPD:
As JB2's explained in their answer lateral chromatic aberration depends on aperture stop position, which I originally didn't include in the simulation. So below are some screenshots of the simulation with added aperture. There seem to exist a certain distance between lens and aperture stop at which the effect can be seen. I also increased the number of rays traced from the point: