-
-
Notifications
You must be signed in to change notification settings - Fork 751
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
x轴是文字 且很长时 显示不全,是否支持换行 #465
Comments
1.如下配置图表视图的AAChartModel NSDictionary *gradientColorDic =
@{
@"linearGradient": @{
@"x1": @0,
@"y1": @0,
@"x2": @0,
@"y2": @1
},
@"stops": @[@[@0,@"#8A2BE2"],
@[@1,@"#1E90FF"]]//颜色字符串设置支持十六进制类型和 rgba 类型
};
AAChartModel *aaChartModel= AAChartModel.new
.chartTypeSet(AAChartTypeColumn)
.titleSet(@"")
.subtitleSet(@"")
.categoriesSet(@[@"孤<br>岛<br>危<br>机",
@"使<br>命<br>召<br>唤",
@"荣<br>誉<br>勋<br>章",
@"狙<br>击<br>精<br>英",
@"神<br>秘<br>海<br>域",
@"最<br>后<br>生<br>还<br>者",
@"巫<br>师<br>3<br>狂<br>猎",
@"对<br>马<br>之<br>魂",
@"蝙<br>蝠<br>侠<br>阿<br>甘<br>骑<br>士<br> .",
@"地<br>狱<br>边<br>境",
@"闪<br>客",
@"忍<br>者<br>之<br>印"])
.yAxisTitleSet(@"")
.tooltipEnabledSet(false)
.borderRadiusSet(@3)
.seriesSet(@[
AASeriesElement.new
.nameSet(@"2017")
.dataSet(@[@7.0, @6.9, @9.5, @14.5, @18.2, @21.5, @25.2, @26.5, @23.3, @18.3, @13.9, @9.6])
.colorSet((id)gradientColorDic)
.allowPointSelectSet(YES)
,
]
);
[aaChartView aa_drawChartWithChartModel:aaChartModel]; 也就是说只要在文字中插入 |
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.
The text was updated successfully, but these errors were encountered: