From 8c5574417e3f330475b14bec052505098c00511b Mon Sep 17 00:00:00 2001 From: renyc Date: Sun, 9 Oct 2016 09:21:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9BarChartLayer=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E5=8F=8A=E7=A4=BA=E4=BE=8B=E7=A8=8B=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/all/theme/chart_bar.html | 1 + src/GeoBeans/Layer/ChartLayer/BarChartLayer.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/example/all/theme/chart_bar.html b/example/all/theme/chart_bar.html index 79e0eec..90a7a59 100644 --- a/example/all/theme/chart_bar.html +++ b/example/all/theme/chart_bar.html @@ -7,6 +7,7 @@ + diff --git a/src/GeoBeans/Layer/ChartLayer/BarChartLayer.js b/src/GeoBeans/Layer/ChartLayer/BarChartLayer.js index 81aa428..911ca6e 100644 --- a/src/GeoBeans/Layer/ChartLayer/BarChartLayer.js +++ b/src/GeoBeans/Layer/ChartLayer/BarChartLayer.js @@ -154,7 +154,7 @@ GeoBeans.Layer.BarChartLayer = GeoBeans.Class(GeoBeans.Layer.ChartLayer,{ if(chartField == null){ continue; } - var chartFieldIndex = this.featureType.getFieldIndex(chartField); + var chartFieldIndex = this.featureType.findField(chartField); if(chartFieldIndex != -1){ chartValue = parseFloat(chartValues[chartFieldIndex]); var serieObj = new Object();