BaseChannelData class abstract

基础数据处理类 当前包括三种类型 1. 渠道, 2: 方法, 3:堆栈

Implementers

Constructors

BaseChannelData()

Properties

allDataMap Map<String, Map<String, List<ChannelItemInfo>>>
所有数据
final
allLineShowList List<Series<LinearSales, DateTime>>
跟上面不同的是这个是没有被过滤的这个数据是没有被过滤的
final
days int
默认展示七天数据
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
lineShowList List<Series<LinearSales, DateTime>>
折线图显示数据 折线的按照每个 条目 分割,每个 条目 里面有它最近多天的数据
final
listViewDataList List<LineListItemBean>
列表数据
final
maxAverage double
条目 最大的平均值
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
singleItemShowMap Map<String, bool>
控制每个 条目 是否显示
final
singleItemSumCostMap Map<String, int>
单个条目的总耗时,不分日期
final

Methods

filterLine(List<Series<LinearSales, DateTime>> allLineShowList, Map<String, bool> singleItemShowMap, List<Series<LinearSales, DateTime>> lineShowList) → void
过滤
getLineBgColor(int index) Color
获取当前线的背景颜色
getLineColor(int index) Color
获取当前线的颜色
getListTitleDesc() String
获取列表的 title 描述
getListViewItemDesc(int index) String
获取 listview 的 item 描述
getListViewItemHeight() int
获取 listview item 的高度,默认等于 40, stack 需要高一点,用来显示更多信息
getTitle() String
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parseData(Map<String, Map<String, List<ChannelItemInfo>>> allDataMap, List<Series<LinearSales, DateTime>> allLineShowList, List<Series<LinearSales, DateTime>> lineShowList, Map<String, int> singleItemSumCostMap, Map<String, bool> singleItemShowMap, List<LineListItemBean> listViewDataList) → void
解析处理数据
resetAllData([bool allDataIgnore = false]) → void
重置所有的数据
reverseData() → void
翻转数据
set7or30Days(bool day7) → void
30天或7 天
showOrHideItem(String name, bool show) → void
显示或隐藏某个条目
sortData(List<LineListItemBean> listViewDataList, bool desc) → void
排序 desc 是否倒序
startGetData() Future<void>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited