On the basis of analyzing and synthesizing the geological data of coalfield exploration,starting from the organization methods of borehole data,we analyse the design idea, the implementation technology, the filling method of lithology pattern, lithological geological column and buffer line drawing algorithms, etc. According to the problems that it is difficult to deal with the coordinate relationship between the stratum and the lithology description with words,we propose a new buffer line drawing method based on the atomatic text layout idea ,and give a detailed description in this paper. Based on the MapGIS6.7 platform,the MFC secondary development method and other methods ,the automatic generation of bore historgrams is realizaed. It makes good adhesion of the geologic graphic and spatial data, makes interchecking between graphics and their attributes, gives play to the full function of GIS, and decreases the development difficulty. Finally,the method is verified by the practical borehole data of HUANGLONG,which can create beautiful and coordinative graphics,and satisfy the demands of practical work.