I’m currently using IGOHLCSeriesDataSourceHelper high/low, but I don’t really understand what open/close is. I think I can guess volume.
Anyways, in my app the cardinal rule is high > low. If low >= high, then I need to display something different. It can’t just flip and look normal. What is the easiest way of dealing with data that may break my rule?
Ah, how I yearn to fill the negative path with clearColor...
The fill rule would work if the range path consisted of closed sub paths. But since it's one single set of connecting lines, setting fillrule won't do anything.
The range series would need to have an additional path to keep track of the negative fills, which would eliminate the need to have a fillrule.
I know you already have a product idea submitted for this feature.
Hi Caylan,
I'm not sure if changing fill rule will affect the ploygon's fill shape. I'll try a couple of different scenarios and let you know what happens.
Thanks
I did confirm that "series.allowCrossingPaths = YES;" did allow my paths to cross.
Also, the more I think about winding the more I feel it won't affect the fill. If you are like me and didn't know much about winding, this blog post helped me better understand what's going on. http://blogs.adobe.com/webplatform/2013/01/30/winding-rules-in-canvas/nonzero_2/
Max, I had an idea...
What if you publish the bezierpath's winding rule? The default is non-zero... which fills everything. However, if you set to NSEvenOddWindingRule, it might get the results we're looking for, which is to signal a lack of area between the negative (flipped) range. There might need to be additional logic so that a fully flipped range does not fill... but I'm usually the kind of person who plays with the winding until it looks right. Thoughts?