python(40): Data visualization--Introduction to pyecharts

1. Introduction

illustrate;

pyecharts is divided into two major versions: v0.5.X and v1. v0.5.X and v1 are incompatible. v1 is a brand new version.

v0.5.x supports Python2.7, 3.4+;

v1.x only supports Python3.6+

2. Basic introduction

2.1 Description of rendering area

3. Draw graphics

When you are not familiar with using this plug-in at the beginning, you can find similar graphics in the demo according to the effect you want, change the parameters in the demo program by referring to the usage documentation, and gradually adjust the parameters to make the graphics achieve the effect you want.

For example, if you want to draw a histogram and display the percentage on the histogram, download the official demo program and search in the bar directory. The result is stack_bar_percent.html, which roughly meets the requirements (as shown in the picture), but needs to be adjusted.

Next, refer to the interface document and the corresponding relationship between other graphic features and parameter configuration, adjust the parameters based on the effect you want to achieve, and finally achieve the following effect

Official documentation

pyecharts - A Python Echarts Plotting Library built with love.https://pyecharts.org/#/zh-cn/quickstart

Official github project

 Demo usage example: https://github.com/pyecharts/pyecharts-gallery.git

Guess you like

Origin blog.csdn.net/qq_37674086/article/details/124600337