Category Archives: Phil

Phil 10.29.12

8:00 – 4:00 ESSO

  • So begins a very wet day.
  • Working on figuring out why coloring chart lines is so different from all the other charts. Going to try building a toy project with just one line chart in it and (maybe?) an item renderer.
  • Well that turned out to be easier than I thought.
	private function init():void{
		var hsb:HsbObject = new HsbObject(0x0000AA);
		var lsa:Array = new Array();
		lsa.push(createLineSeries("Profit", "Profit", hsb));
		hsb.rotateHue(40);
		lsa.push(createLineSeries("Expenses", "Expenses", hsb));
		hsb.rotateHue(40);
		lsa.push(createLineSeries("Amount", "Amount", hsb));

		_linechart.series = lsa;
	}

	private function createLineSeries(yf:String, dn:String, hsb:HsbObject):LineSeries{
		var scs:SolidColorStroke = new SolidColorStroke(hsb.getHexColor());
		scs.weight = 3;
		var ls:LineSeries = new LineSeries();
		ls.yField = yf;
		ls.displayName = dn;
		ls.setStyle("lineStroke", scs);
		return ls;
	}

The project files are here. There are two projects. The EdgeUtils project contains the HsbObject class.

Phil 10.26.12

8:00 – 4:00 ESSO

  • Put in the paperwork for an URN
  • Pinged the Morpheus folks to see how we can integrate
  • Working on tracking down bugs and coloring lines
  • Discussed how to add SQL stored(?) procedures to VSS with Dong.
    • Need an editor to create and name scripts
    • Need some kind of macro substitution
    • Some of this is available in the dbObjects in JavaUtils and FGMUtils, using the classes that I wrote to create databases that map to Flex objects.
  • Fixed the bug that was crashing the column rendering in WidgetBase by adding a try/catch block and resetting the array of visibile columns. Not pretty, but it works.
  • Still trying to figure out how to change the color of a line. This seems to be the way: http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7c52.html

Phil 10.25.12

8:00 – 2:00 ESSO

  • Got the following error:
  • RangeError: Index ‘2’ specified is out of bounds.

    [C:autobuild3.xframeworksprojectsframeworksrcmxcollectionsListCollectionView.as:529]
    at mx.collections::ListCollectionView/addAll()[C:autobuild3.xframeworksprojectsframeworksrcmxcollectionsListCollectionView.as:512]
    at com.edgeti::WidgetBase/listColumnsHandler()[C:PhilProject WorkspacesHelios_3.6 FB4.5_32_bit_Aug_2012GenericQueryWidgetsrcmainflexcomedgetiWidgetBase.as:236]

  • Backups
  • Status meeting
    • Dave wants a contingincy plan if the server goes down. Need to talk to Vernon about this.
    • Looked at integrating with Morphious.

Phil 10.24.12

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.

Phil 10.23.12

8:00 – 2:00 ESSO

  • Backups and housecleaning
  • Installed new vis2.swf. Not happy yet with the colors, but the commas work.
  • Talked to Lenny about FACTS
  • Got some heads up on tomorrow’s meeting.
  • Working with colors. I’m going to increment a fixed amount off of the border color – see how that works. Well – I think:
  • Well, that seems to work nicely:

Phil 10.22.12

8:00 – 9:45 ESSO

  • Backups
  • Updated the index.html page to mention that we are production!
  • Made a printout of the xml that describes the FlexiChart that we’re using, and I think I figured out what the issue with the tooltips is. The yField does not exist as a row in the table. I need to get what the label and the mapping is for each row (series?) from the flexiChart.

9:45 – 12:15 FP

  • How users make applications fit their needs. Or, how users misuse Excel, Outlook, and PowerPoint.

12:15 – 4:00 – ESSO

  • Digging into FlexiChart to see if I can get the series information and use it in the dataTip function. Done and working.

 

Phil 10.19.12

8:00 – 4:00 ESSO

  • Deployed new Vis2 and PA. Vis2 still needs some work with autocalculating colors, and tooltip values are being lost in some of the FlexiCharts.
  • We do have a production machine. It’s the one labeled ‘test’. Declare victory and move on!
  • VisTool Meetings are now every other Thursday starting next week
  • Added a minimum saturation value as well as min and max hue angle steps in the auto color code
  • Extended printing of FlexiChart tooltips to show all data names and values to see why things are not showing up in the on-site tooltips
  • We really do need to incorporate this – xkcd-style plots

Phil 10.18.12

8:30 – 2:30 ESSO

  • Backups
  • Some back and forth with Denise about servers. It turns out that she moved, and is in HQ now.
  • Some talk with Jim G. about OSGI issues on some of their work
  • It looks like there may be a demo on the 24th for GAO?

2:30 – 4:30 FP

  • Qualitative Methods and HCI

Phil 10.17.12

9:30 – 4:00 ESSO

  • Dentist this morning
  • More tracing of where the tooltip functionality is handled in FlexiChart. I’m starting to think it’s the default behavior, so I’m working on getting a data tip function to extract what’s going on and insert the appropriate text and values.
  • Wound up adding a dataTipFunction at the <flexichart:FlexiChart/> level that got the displayName from the HitData.element, which in this case is always going to be a series of some kind. The display name allows me to get the correct value from the item data Object, which is then formatted.
  • Still need to bring all the colors in line with the values that are now calculated from the palette.
  • Added in change logs to VISIBILITY.

Phil 10.15.12

Phil 8:30 – 4:30

  • Backups and such. All is quiet. Even fixed a typo or two.
  • Decided to put all the HSB code in  com.edgeti.EdgeUtils.color.HsbObject. Once that’s working, I’ll put it in FGMFlexUtils45, since it’s probably going to be pure Actionscript.
  • Well, I’ll be. It ran the first time!
  • Starting on adding formatted tooltips for numbers. Started to build a formattedDataTip function in AdvancedQueryWidget. Need to pull the name and value from the HitData, then check to see if the value is a number, and if so, add commas and decimal places. Still need to figure out where this is done in FlexiChart, but it will (should?) be the same code.

Phil 10.12.12

8:00 – 4:00 ESSO

  • Backups – all is well.
  • Farewell lunch for Jessica
  • Working on color recognizing code. Editor freaked out and gave warnings for items inherited from QueryWidgetBase and WidgetBase. Solved mysteriously after some flailing. Probably closing and re-opening the project fixed it.
  • Got the main piece of the color code working, but I can’t have a hybrid model that lets the default color scheme take over once I’ve run out of custom colors. So I’m converting the RGB of the two theme colors and calculating a family of colors in HSB space. This will be nicer anyway, since the theme will now be usable on the pie chart and will make the other charts look a little better.
  • Neat video on data visualization and ‘data foraging’: http://www.youtube.com/watch?v=_IbTZBMHiY4

Phil 10.11.12

ESSO 8:00 – 2:00

  • Finished putting FlashBuilder back together
  • Adding bar column and pie chart awareness of color, if available
  • Burned updates and status report
  • Status meeting at 10:30
  • Starting on setting color to match words in columns

Phil 10.10.12

7:30 – 4:30 ESSO

  • Demo for Col. Dukes.
    • For a column where the items are colors, the bar/pie/column should match that color
    • Need to add commas and remove decimal places to tooltip renderer
    • Tried to open Flashbuilder, but no luck. Spent the rest of the day re-installing everything.
  • Need to bring in my status tomorrow along with patch disk
  • GWT Chapter 3
    • Chapter 3 example code compiles and runs!

Phil 10.9.12

8:00 – 2:00 ESSO

  • Backed up everything
  • Had an odd problem with what boiled down to a FY Month zero problem on the script that produced charts showing who had projects that had listed the same amount spent between the current month and the previous month. Since there was no month before October (Month 1), the SQL query crashed. Fixed by adding a test to see if the month was October, and adding a “no data available” case to the logic of the script.
  • It appears that the Ingest Manager my still be trying to merge tables. Dong’s going to test this (and add in the ChangeLog?). THe correct behavior should be a DROP TABLE

2:00 – 4:00 FP

  • QM