Cancer is one of the most difficult medical problems in today’s world. There are many factors that induce cancer in humans, and obesity has become an important factor in inducing cancer. This study systematically and quantitatively describes the development trend, current situation and research hotspot of the relationship between cancer and obesity by using document statistics and knowledge graph visualization technology. Through the visualization technology analysis of knowledge graph in this study, the research hotspot and knowledge base source of the relationship between cancer and obesity in the last 20 years have been ascertained. Obesity-related factors, such as immunity, insulin, adiponectin, adipocytokines, nonalcoholic fatty liver and inflammatory reaction, may affect the occurrence of obesity and increase the risk of cancer. Obesity-related cancers include respiratory cancer, colorectal cancer, hepatocellular cancer, prostate cancer, gastric cancer, etc. Our research provides direction and basis for future research in this field, as well as technical and knowledge basis support for experts and researchers in related medical fields.