I want a minimal example of plotting data using pure Julia code

So far I understood that packages written in Julia such as Gadfly or Makie make calls to other external libraries which are written in another language for example C or C++.
As far as I looked on the Internet C or C++ does not have any functionality to plot a line on a monitor yet there are libraries written in these languages that can do that. As someone with no computer science background it is a bit puzzling for me! I looked further and this is what I understood so far:
Back in the days such as the MS-DOS era, someone could use C to directly plot something on monitor. But nowadays with modern C or C++ it is not possible to do so directly and instead these languages have to ask the operating system’s API for plotting functionality and this API or OS is itself written in C or C++. Now it looks like the OS uses a version of C that allowed it to develop plotting functionality while the version of C that people use these day has lost that functionality or at least the OS does not allow it anymore.
Can somebody let me know if what I just described is correct? In general I am puzzled how C or C++ does not have facilities for plotting yet other libraries can be written in these languages to do so. I encountered the concept of compiler bootstrapping. Is the same thing going on here for plotting?