Fading Coder

One Final Commit for the Last Sprint

Resolving ECharts Custom Map Display Issues with Anhui Province Data

When implementing an Anhui province map in ECharts, the built-in version contained outdated administrative boundaries including Chaohu City, which was no longer acceptable. The ECharts Map Data Tool (http://ecomfe.github.io/echarts-map-tool/) provided updated GeoJSON data for Anhui province. Initial...

Creating Heatmaps with ECharts and Baidu Maps API

Integrating ECharts with the Baidu Maps API enhances the development of interactive heatmap visualizations for large-screen dashboards. Simulating GPS Data with Python Generate random gegoraphic coordinates within a specified radius using Python to simulate GPS data for heatmap testing. import rando...

Designing Multi–Y-Axis Charts in ECharts with Bars, Lines, and Mixed Series

Designing multi–Y-axis charts in ECharts becomes essential when visualizing measures at different scales (for example, thousands of devices vs. tens of products). The following patterns progressively build from a single axis to several Y-axes and finallly to mixed-series charts. Setup Include EChart...

ECharts Option Patterns for Axes, Labels, Grid, Styling, and Percentage Bars

ECharts Axes, Labels, Grid Spacing, Styling, and Percentage Bars 1. Controlling gaps at the ends of an axis When a category axis needs the plot to touch the axis edges, turn off axis padding. const option = { xAxis: { type: 'category', boundaryGap: false // no gap at both ends; use true to leave pad...

Fix ECharts "Cannot get DOM width or height" in hidden or zero‑sized containers

When a chart is initialized while its container has no measurable size (for example, in side a hidden tab with display:none or a div without explicit width/height), ECharts logs "Can’t get dom width or height!" and the chart remains blank. This commonly happens when rendering multiple char...