In this section we will introduce you to some of the configurations that useECharts to generate charts. Create a HTML page and introduce Id in the instance is ECharts library usage Here Title Configure the title for the chart: Prompt information Configuration tips: Legend component The legend component shows a different series of tags (symbol), colors and names. You can control which series are not displayed by clicking on the legend. X axis Configure the items to display on the X axis: Y axis Configure the items to display on the Y axis. Series list Each series passes through Each series passes through Type: ‘bar’:Column/bar chart Type: ‘line’:Line/Area Chart Type: ‘pie’:Pie Type: ‘scatter’:Scatter (bubble) plot Type: ‘effectScatter’:Scatter (Bubble) with Ripple Effect Animation Type: ‘radar’:Radar chart Type: ‘tree’:Tree Map Type: ‘treemap’:Tree Map Type: ‘sunburst’:Sunrise chart Type: ‘boxplot’:Box plot Type: ‘candlestick’:Candlestick chart Type: ‘heatmap’:heat map Type: ‘map’:Map Type: ‘parallel’:Series of parallel coordinate systems Type: ‘lines’:diagram Type: ‘graph’:Relationship diagram Type: ‘sankey’:Sankey Type: ‘funnel’:Funnel plot Type: ‘gauge’:Dashboard Type: ‘pictorialBar’:Pictogram Type: ‘themeRiver’:Theme River Type: ‘custom’:Custom series The following is a complete example: Example For more configuration items, please see: https://echarts.apache.org/zh/option.html
In recent years, Geographic Information Systems (GIS) have undergone rapid development in both theoretical and practical dimensions. GIS has been widely applied for modeling and decision-making support across various fields such as urban management, regional planning, and environmental remediation, establishing geographic information as a vital component of the information era. The introduction of the “Digital Earth” concept has further accelerated the advancement of GIS, which serves as its technical foundation. Concurrently, scholars have been dedicated to theoretical research in areas like spatial cognition, spatial data uncertainty, and the formalization of spatial relationships. This reflects the dual nature of GIS as both an applied technology and an academic discipline, with the two aspects forming a mutually reinforcing cycle of progress. 9.3.1. Step 1: create a HTML page ¶
echarts.min.js :
9.3.2. Step 2: prepare a DOM container with height and width for ECharts ¶
main of div used to include charts drawn by ECharts:
9.3.3. Step 3: set configuration information ¶
json format to configure.echarts.init(document.getElementById('main')).setOption(option);
option indicates the use of json the configuration of the data format to draw the chart. The steps are as follows:title: {
text: 'First ECharts instance'
}
tooltip: {},
legend: {
data: [{
name: 'series 1',
// Force the shape to be a circle.
icon: 'circle',
// Set text to red
textStyle: {
color: 'red'
}
}]
}
xAxis: {
data: ["Shirts", "woolen sweaters", "chiffon shirts", "pants", "high heels", "socks"]
}
yAxis: {}
type decide your own chart type:series: [{
name: 'sales volume', // Series Name
type: 'bar', // Series chart types
data: [5, 20, 36, 10, 10, 20] // Data content in the series
}]
type decide your own chart type: 9.3.4. Example ¶
Principles, Technologies, and Methods of Geographic Information Systems
102