有没有人试图为CorePlot添加触摸交互?
我正在尝试实现自定义图层,以便能够在图表上绘制一条线,该线将显示特定值,并在用户触摸图表区域时将自己绘制在指定位置,但我没有任何运气.
如何在Core Plot框架中添加图例?
我非常感谢任何指导或帮助.
我对轴标签有些麻烦.看来我的自定义标签在绘图区域外是不可见的.查看核心图的设计概述,轴标签应位于绘图区域之外.关于如何在情节区域外看到它们的任何想法?
下面的代码/图像显示了标签仅在绘图区域内显示的方式.如果我将标签偏移更改为正数,则标签根本不显示.我在iOS 5中使用Core Plot 0.9.
提前致谢!
CPTTheme *theme = [CPTTheme themeNamed:kCPTPlainWhiteTheme];
graph = [[theme newGraph] retain];;
CPTGraphHostingView *hostingView = (CPTGraphHostingView *)self.view;
hostingView.hostedGraph = graph;
graph.paddingLeft = 40.0;
graph.paddingTop = 40.0;
graph.paddingRight = 40.0;
graph.paddingBottom = 40.0;
graph.masksToBorder = NO;
// ... setup axis
axisSet.yAxis.majorIntervalLength = CPTDecimalFromInt(0);
axisSet.yAxis.minorTicksPerInterval = 0;
axisSet.yAxis.labelingPolicy = CPTAxisLabelingPolicyNone;
// if this number is negative, the labels show,
// if it is positive, that is outside the plot area, the labels are hidden.
axisSet.yAxis.labelOffset = …Run Code Online (Sandbox Code Playgroud) 谁能帮忙?连接时我收到此错误..
abort: error: nodename nor servname provided, or not known
Run Code Online (Sandbox Code Playgroud)
请帮帮我.
实际上我想从存储库中获取coreplot的源代码我在终端中执行此命令
"hg clone core-plot.googlecode.com/hg core-plot "
Run Code Online (Sandbox Code Playgroud)
我得到错误......
"abort: error: nodename nor servname provided or not known,"
Run Code Online (Sandbox Code Playgroud)
可以帮我吗?
在构建使用Core Plot框架的iPhone应用程序时,我看到以下链接器错误:
ld: warning: ignoring file /Users/taxtmart5/Library/Developer/Xcode/DerivedData/Solagen_Calculator-cwvwcdlnuukfftakggygqoczxyuy/Build/Products/Debug-iphoneos/libCorePlot-CocoaTouch.a, file was built for archive which is not the architecture being linked (armv6)
Undefined symbols for architecture armv6:
"_OBJC_CLASS_$_CPPlotRange", referenced from:
objc-class-ref in VerticalBarChart.o
"_OBJC_CLASS_$_CPXYGraph", referenced from:
objc-class-ref in VerticalBarChart.o
"_OBJC_CLASS_$_CPLineStyle", referenced from:
objc-class-ref in VerticalBarChart.o
"_OBJC_CLASS_$_CPTextStyle", referenced from:
objc-class-ref in VerticalBarChart.o
"_OBJC_CLASS_$_CPAxisLabel", referenced from:
objc-class-ref in VerticalBarChart.o
"_OBJC_CLASS_$_CPBarPlot", referenced from:
objc-class-ref in VerticalBarChart.o
"_CPDecimalFromString", referenced from:
-[VerticalBarChart renderInLayer:withTheme:] in VerticalBarChart.o
"_OBJC_CLASS_$_CPColor", referenced from:
objc-class-ref in PlotItem.o
objc-class-ref in VerticalBarChart.o
"_OBJC_CLASS_$_CPMutableTextStyle", referenced from: …Run Code Online (Sandbox Code Playgroud) 有没有人对ios的图表库/框架有任何建议.我需要能够创建从内部数据库/仓库到iPad的条形图,饼图,线条趋势图,散点图.我读过一些关于核心情节的混合报道.
我已经下载了一个名为Plot_Gallery _ios的项目名称,主要用于绘制图形.这是从core_plot下载的,主要目标项目是Plot_Gallery_IOS,还有一个名为CorePlot-CocoaTouch.xcodeProj的子项目文件,其中包含所有库文件.主要用于本项目的运行.
问题我面临的是当我尝试在我的ipad中加载这个应用程序后编译它给出一个错误即
CodeSign错误:SDK'iOS 6.0'中的产品类型'Application'需要代码签名
我试着解决这个问题很长一段时间我不能..我试图建立设置和更改代码签名身份到Dont代码标志,并通过选择调试作为IOS SDK我尝试所有可能的方法来解决它但我我无法将此应用加载到我的ipad中.
我也尝试选择Ios SDK作为iphoneDeveloper,但我得到了链接器错误,所以问题是什么?它是bcoz它包含2个目标项目,其中Plot_Gallery_IOS是主要的,并且在sub中有CorePot_cocoatouch.xcodeProject并且休息所有其他文件..
所以任何人都可以告诉我如何解决这个问题.我很久以来就坚持这个问题.
我是CocoaPods的新手,我正在尝试在我的Podfile中使用此行安装CorePlot:
platform :ios, "7.0"
...
pod 'CorePlot', :git => 'https://github.com/core-plot/core-plot.git'
Run Code Online (Sandbox Code Playgroud)
当我在.xcworkspace安装后打开文件时,CorePlot会显示缺少的框架.我将这些链接的二进制文件安装到我的Xcode项目中,但这并没有解决问题.在CorePlot目标中,似乎没有单独的方法来安装框架.

这不是唯一的问题.当我尝试在CorePlot库中引用文件时,即使我可以看到CorePlot目标中的文件,我也会收到文件未找到错误:
我尝试了以下import语句:
#import "CorePlot-CocoaTouch.h"
#import <CorePlot-CocoaTouch.h>
#import <CorePlot/CorePlot-CocoaTouch.h>
#import "CorePlot/CorePlot-CocoaTouch.h"
Run Code Online (Sandbox Code Playgroud)
都导致同样的错误.

我不知道这些问题是否相关.我应该检查什么,可能出了什么问题?这是我看过的:
https://github.com/core-plot/core-plot/issues/163
我很感激任何有关正在发生的事情的疑难解答提示或解释.谢谢.
这是我的完整Podfile:
platform :ios, '7.0'
target 'CorePlotTestDo-OverTests' do
pod 'CorePlot', :git => 'https://github.com/core-plot/core-plot.git'
pod 'AFNetworking', '~> 2.5'
end
Run Code Online (Sandbox Code Playgroud)
我初始化pod时没有保存输出,但这是pod更新的输出:
Update all pods
Analyzing dependencies
Pre-downloading: `CorePlot` from `https://github.com/core-plot/core-plot.git`
Downloading dependencies
Using AFNetworking (2.5.4)
Installing CorePlot 1.6 (was 1.6)
Generating Pods project
Integrating client project
Run Code Online (Sandbox Code Playgroud) core-plot ×10
ios ×6
iphone ×5
cocoa-touch ×3
objective-c ×3
xcode ×3
bar-chart ×1
charts ×1
cocoapods ×1
frameworks ×1
ios4 ×1
ipad ×1