Ha, I totally thought you meant try starting the post 1/2 pixel down from
the previous post if he wanted someone to answer. "Why isn't anyone
answering me?!?!?!" "Dude, your posts are off by a half pixel, duh."

On Sat, Oct 31, 2009 at 12:39 AM, dorkie dork from dorktown <
[email protected]> wrote:

>
>
> Maybe try starting them 1/2 to 1 pixel before your current positions and
> 1/2 to 1px after your end position.
>
> On Fri, Oct 30, 2009 at 6:41 PM, cjsteury2 <[email protected]> wrote:
>
>>
>>
>>
>>
>> --- In [email protected] <flexcoders%40yahoogroups.com>,
>> "cjsteury2" <cra...@...> wrote:
>> >
>> > Okay... i have finally figured out how to write a custom itemrenderer
>> for HOLC Chart Series Item... And the secret is posted below (about 99% of
>> the way)... can anyone PLEASE tell me how to render the Open and Close Tick
>> marks correctly?? Using this code they are a little off...
>> >
>> > I have tried to get the DrawRect() function a million diff ways but do
>> not know what is throwing it off...
>> >
>> > package com.steury.controls.orders { // empty package.
>> >
>> > import flash.display.Graphics;
>> > import mx.charts.series.items.HLOCSeriesItem;
>> > import mx.core.IDataRenderer;
>> > import mx.skins.ProgrammaticSkin;
>> >
>> > public class ChartColorRenderer extends mx.skins.ProgrammaticSkin
>> > implements IDataRenderer{
>> >
>> > private var color:Number;
>> > private var green:Number = 0x00ff00;
>> > private var red:Number = 0xfe0000;
>> > private var _hlocItem:HLOCSeriesItem;
>> > private var open:Number;
>> > private var close:Number;
>> >
>> > public function ChartColorRenderer() {
>> > // Empty constructor.
>> > }
>> > public function get data():Object {
>> > return _hlocItem;
>> > }
>> >
>> > public function set data(value:Object):void {
>> > _hlocItem = value as HLOCSeriesItem
>> > invalidateDisplayList();
>> > open=_hlocItem.openFilter;
>> > close=_hlocItem.closeFilter;
>> > }
>> >
>> > override protected function
>> > updateDisplayList(unscaledWidth:Number,unscaledHeight:Number):void {
>> > super.updateDisplayList(unscaledWidth, unscaledHeight);
>> > if (open > close) color = red;
>> > if (open < close) color = green;
>> > var g:Graphics = graphics;
>> > g.clear();
>> > g.beginFill(color,1);
>> > g.drawRect(0, 0, unscaledWidth, unscaledHeight);
>> > g.endFill();
>> > g.beginFill(color,1);
>> > g.drawRect(open,0,10,1);
>> > g.endFill();
>> > g.beginFill(color,1);
>> > g.drawRect(0,close,10,1);
>> > g.endFill();
>> > }
>> > } // Close class.
>> > } // Close package.
>> >
>>
>>
>  
>

Reply via email to