8:00 – 4:00 ESSO
- Working on getting auto colors to work properly in trend widget.
- 10:00 Meeting to talk to GAO folks. I think that went well. There will be a followup meeting.
- Continued to beat on getting autopallete working for TrendWidget. After stepping through the ThresholdColumnRederer and figuring that out, I wound up with the same wrong coloring that I was getting when I ran the fill function from within the TrendWidget. The problem was that the ChartItem index was referring to each *cluster* of columns, not the columns within the cluster. As a hack to get around this, I put an Array in TrendWidget that counts the yFields that are passed to the field function. The *index* of the yFields is then used as the hue angle. Anyway, here’s the code:
protected function setColumnSeriesColor(element:ChartItem, index:Number):IFill {
var yFieldName:String = "_unset_";
var o:Object = element.element;
// check if the yFieldName is in an array. if it is, then get the index. if not, add and get the index.
if(o.hasOwnProperty("yField")){
yFieldName = o.yField;
if(_yfieldNameArray.lastIndexOf(yFieldName) == -1){
_yfieldNameArray.push(yFieldName);
}
index = _yfieldNameArray.lastIndexOf(yFieldName);
}
return ColorUtil.setSeriesColor(element, index);
}
- Next is getting the line charts to work with the color scheme.
- Oh yeah, and add dataTip formatting to pie charts in QueryWidgetBase.
