hustcc / React-G2Plot

:robot: Unofficial react component wrapper for @antvis/G2Plot
https://git.hust.cc/React-G2Plot/
MIT License
22 stars 5 forks source link

Issue while rendering the HeatMap Chart for the 2nd time. #4

Closed Rajesh-Lohith closed 4 years ago

Rajesh-Lohith commented 4 years ago

We have a feature that uses your HeatMap chart to display some data. I have a refresh icon that gives a chart preview after selecting the values. Thereafter, Every time when I change the xAxis and yAxis values from the drop-down, I am trying to re-render the chart to preview it. But, I am getting the below error.

Capture

container.ts:92 Uncaught TypeError: Cannot read property 'filter' of undefined at Group.Container.getBBox (container.ts:92) at MatrixLegend.getBBox (legend.ts:108) at padding.ts:95 at each (each.ts:11) at PaddingController.processOuterPadding (padding.ts:93) at HeatmapLayer.ViewLayer.getViewRange (view-layer.ts:705) at HeatmapLayer.ViewLayer.init (view-layer.ts:248) at HeatmapLayer.Layer.render (layer.ts:110) at HeatmapLayer.ViewLayer.render (view-layer.ts:295) at plot.ts:222 at each (each.ts:11) at Heatmap.BasePlot.eachLayer (plot.ts:226) at Heatmap.BasePlot.render (plot.ts:222) at default_1. (index.js:28) at helper.js:17

hustcc commented 4 years ago

v1 has so many bugs, so I start v2 version.