Skip to content

Commit

Permalink
解决分类类型图表数据图表显示时未按给出数据排序的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
jacky6024 committed Nov 30, 2017
1 parent c58b089 commit 9f99382
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
Expand Down Expand Up @@ -56,7 +55,7 @@ public abstract class CategoryDataset extends BaseDataset {
protected String buildDatasetJson(Context context,Cell cell,String props){
List<?> dataList=DataUtils.fetchData(cell, context, datasetName);
List<Object> categoryList=new ArrayList<Object>();
Map<Object,Map<Object,List<Object>>> seriesDataMap=new HashMap<Object,Map<Object,List<Object>>>();
Map<Object,Map<Object,List<Object>>> seriesDataMap=new LinkedHashMap<Object,Map<Object,List<Object>>>();
for(Object obj:dataList){
Object category=Utils.getProperty(obj, categoryProperty);
if(category==null){
Expand Down

0 comments on commit 9f99382

Please sign in to comment.