Comments (10)
Changed to enhancement.
Original comment by [email protected]
on 11 Feb 2009 at 2:32
- Added labels: Type-Enhancement
- Removed labels: Type-Defect
from core-plot.
Original comment by [email protected]
on 7 Jun 2009 at 6:21
- Added labels: Priority-High
- Removed labels: Priority-Medium
from core-plot.
CPAnnotation could be a subclass of the new CPBorderedLayer class.
Original comment by [email protected]
on 17 Jun 2009 at 3:59
from core-plot.
It would probably be a good idea to put all annotations in a special annotation
layer above all other layers in the
graph hierarchy.
Original comment by [email protected]
on 29 Nov 2009 at 2:47
from core-plot.
Issue 91 has been merged into this issue.
Original comment by [email protected]
on 23 Jan 2010 at 7:33
from core-plot.
Annotations have been added. They can be anchored to the plot space or to a
layer (usually the plot area or graph). The annotation content can be any
CPLayer, including a CPBorderedLayer if a border is needed.
Of the features described above, the only one not implemented yet is the
pointing line and/or arrow.
The legend class should be a subclass of CPBorderedLayer, not CPAnnotation.
This way, the legend can be added as an annotation on the graph. Legends are
described in issue #90 and will not be discussed here any further.
Original comment by [email protected]
on 5 Nov 2010 at 1:28
- Changed title: Add CPAnnotation classes
from core-plot.
Original comment by [email protected]
on 8 Jan 2011 at 9:42
- Added labels: Priority-Low
- Removed labels: Priority-High
from core-plot.
I tried to add an image annotation to a barplot. It works fine in iOS
simulator, but the image annotation not shown on the device. I am using Xcode
4.2. Tested on two devices, one is iOS 4.3, another one is iOS5.0.1.
The piece of code I tried is below:
CPTPlotSpaceAnnotation *imageAnnotation;
CGRect imageRect = CGRectMake(50, 50 ,30, 30);
CPTLayer *newImagelLayer = [[CPTLayer alloc] initWithFrame:imageRect];
newLabelLayer.contents = (id)[[UIImage imageNamed:@"test.png"] CGImage];
imageAnnotation = [[CPTPlotSpaceAnnotation alloc] initWithPlotSpace:plotSpace anchorPlotPoint:nil];
imageAnnotation.contentLayer = newImagelLayer;
[barPlot addAnnotation:imageAnnotation];
[newImagelLayer release];
[imageAnnotation release];
Is this a known issue? I don't understand why it works in simulator but not on
device.
Original comment by [email protected]
on 6 Jan 2012 at 8:10
from core-plot.
Don't set the contents of a CPTLayer. Instead, use a CPTBorderedLayer and set
the fill. One way to create the fill is like this:
[CPTFill fillWithImage:[CPTImage imageWithCGImage:[[UIImage
imageNamed:@"test.png"] CGImage]]]
Original comment by [email protected]
on 7 Jan 2012 at 4:06
from core-plot.
Moved to GitHub issue #2.
https://github.com/core-plot/core-plot/issues/2
Original comment by [email protected]
on 29 Dec 2013 at 12:30
- Changed state: Done
from core-plot.
Related Issues (20)
- Update podspec (maybe move project to github?) HOT 1
- segment date on axis HOT 3
- Anchor alternatingBandFills to fixed locations so the band colors do not change when scrolling HOT 1
- Unexpected animationCancelled: notification HOT 6
- No longer builds in Xcode 4.6 HOT 2
- CPTAnimation crash on commit 49ebaf7a84b520c85413bc4396dbeb6b1c58477e HOT 2
- xxxWasSelectedAtRecordIndex should fire on UP events, not down HOT 13
- Restore compatibility for Leopard HOT 5
- CPTScatterPlotInterpolationCurved Type not working Correctly HOT 3
- Grid lines should update when set to nil HOT 2
- The swatchBorderLineStyle for a CPTLegend is drawn over with the borderLineStyle of a CPTPieChart HOT 6
- Apple Rejected app for UDID code within Core-Plot HOT 3
- Ability to add gesture recognizers to any CPTLayer based object HOT 2
- log scale minor ticks spacing looks incorrect HOT 2
- Add accessibility support HOT 1
- Adds support for scaling and panning on Mac via Trackpad and Magic Mouse HOT 3
- X Axis Label Truncation HOT 2
- Add annotation for single plot in CPTXYgraph HOT 1
- Core Plot will not compile in Xamarin HOT 3
- Receive Memory Warning HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from core-plot.