Skip to content

Commit

Permalink
修改BarChartLayer的问题及示例程序
Browse files Browse the repository at this point in the history
  • Loading branch information
radi-ac committed Oct 9, 2016
1 parent fadca16 commit 8c55744
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions example/all/theme/chart_bar.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

<script type="text/javascript" src="../../../src/depends/jquery-1.11.1.js"></script>
<script type="text/javascript" src="../../../src/depends/bootstrap.min.js"></script>
<script type="text/javascript" src="../../../src/depends/echarts-all.js"></script>

<!--Base-->
<script type="text/javascript" src="../../../src/GeoBeans.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion src/GeoBeans/Layer/ChartLayer/BarChartLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 8c55744

Please sign in to comment.