AAChartModel / AAChartKit Public
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
请问一下图表有没有可能设置默认选中项? #939
Comments
|
不知道你要的是否是这种效果(在线示例): https://jshare.com.cn/highcharts/BhH0aq 参见官方 API: https://api.highcharts.com.cn/highcharts#Point.select |
|
我想问的效果是,在图表渲染完成后,是否可以通过OC的方法或者属性自动设置某一个数据点为选中状态并且显示纵向数据线? |
|
AAChartKit 没有这个功能, Highcharts 貌似没有提供此类 API |
|
那再请问下AAChartKit是否有可以设置柱状图表每个数据柱图形宽度的方式? |
自定义柱状图条形图宽度, 参见 issue #537 |
|
那么请问AAChartKit在图表渲染完成后,是否可以获取每个数据点或者数据柱的具体位置(frame)? |
这个也没有, 只有能够获取用户手指滑动或者点击图表回调事件, 回调事件中能够得到如下信息 @interface AAMoveOverEventMessageModel : NSObject
@property (nonatomic, copy) NSString *name;
@property (nonatomic, strong) NSNumber *x;
@property (nonatomic, strong) NSNumber *y;
@property (nonatomic, copy) NSString *category;
@property (nonatomic, strong) NSDictionary *offset;
@property (nonatomic, assign) NSUInteger index;
@end事件信息控制台打印示例如下 2020-07-16 15:52:46.459878+0800 AAChartKit-ProDemo[29990:5410796] 👌👌👌👌 selected point series element name: 2019
user finger moved over!!!,get the move over event message: {
category = C;
index = 6;
name = 2019;
offset = {
plotX = "198.79166666667";
plotY = "324.906987093903";
};
x = 6;
y = "18.6";
}
2020-07-16 15:55:13.688314+0800 AAChartKit-ProDemo[29990:5410796] 👌👌👌👌 selected point series element name: 2017
user finger moved over!!!,get the move over event message: {
category = Swift;
index = 1;
name = 2017;
offset = {
plotX = "45.875";
plotY = "463.1780151312862";
};
x = 1;
y = "6.9";
}
2020-07-16 15:55:14.571877+0800 AAChartKit-ProDemo[29990:5410796] 👌👌👌👌 selected point series element name: 2018
user finger moved over!!!,get the move over event message: {
category = Python;
index = 2;
name = 2018;
offset = {
plotX = "76.458333333333";
plotY = "448.8121940364931";
};
x = 2;
y = "5.7";
}
2020-07-16 15:55:15.598733+0800 AAChartKit-ProDemo[29990:5410796] 👌👌👌👌 selected point series element name: 2018
user finger moved over!!!,get the move over event message: {
category = R;
index = 10;
name = 2018;
offset = {
plotX = "321.125";
plotY = "423.6720071206053";
};
x = 10;
y = "8.6";
}
2020-07-16 15:55:16.334395+0800 AAChartKit-ProDemo[29990:5410796] 👌👌👌👌 selected point series element name: 2017
user finger moved over!!!,get the move over event message: {
category = MATLAB;
index = 11;
name = 2017;
offset = {
plotX = "351.70833333333";
plotY = "430.8549176680018";
};
x = 11;
y = "9.6";
} |
请问一下大神作者,在没有进行任何点击的情况下,我有没有可能通过方法或者属性给图表设置一个默认选中的index?
The text was updated successfully, but these errors were encountered: