Nandulucky / core-plot

Automatically exported from code.google.com/p/core-plot
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Bars in bar chart gets shifted down when a shadow is added #557

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Create a bar plot with data.  Add shadow to the bars with a y offset.

e.g.
    CPTMutableShadow *barShadow = [CPTMutableShadow shadow];
    [barShadow setShadowColor:barShadowColor];
    [barShadow setShadowOffset:CGSizeMake(0.0, -1.0)];
    [barPlot setShadow:barShadow];

Expected: the bar plot to be in same position with or without shadow and the 
shadow to be at the designated offset from the bar.

Actual: the bar shifted down by the same y offset for the shadow and the shadow 
seem to be in the position of the original bar. Almost like the offset is for 
the bar and not the shadow.

Core-plot 1.3 for iOS.  Using xcode 4.6.3.

Original issue reported on code.google.com by w...@williamlu.com on 6 Aug 2013 at 1:59

Attachments:

GoogleCodeExporter commented 9 years ago
I pasted your sample code into one of the bar plots in the Plot Gallery example 
app and it works correctly, both on release 1.3 and with the latest revision. 
If you've upgraded Core Plot in you app, make sure the app is linking against 
the new version of Core Plot rather than an older version.

Original comment by eskr...@mac.com on 11 Aug 2013 at 4:22