Open
Description
代码
我使用项目提供的demo,以下是demo自带示例方法,我做了一点修改,添加了缩放和标签显示,然后有些问题想请教下
//SpecialChartComposer.swift
static func bubbleChart() -> AAChartModel {
AAChartModel()
.chartType(.bubble)
.title("AACHARTKIT BUBBLES")
.subtitle("JUST FOR FUN")
.yAxisTitle("℃")
.yAxisGridLineWidth(0)
.dataLabelsEnabled(true)// 此处为增加代码
.zoomType(.xy)
.colorsTheme([
// AAGradientColor.radialGradient(position: .topCenter, startColor: AAColor.red, endColor: AAColor.green),
AAGradientColor.deepSea,
AAGradientColor.lemonDrizzle,
AAGradientColor.wroughtIron,
])
.series([
AASeriesElement()
.name("BubbleOne")
.colorByPoint(true)
// .marker(AAMarker()
// .lineColor(AAColor.red)
// .lineWidth(3))
.data([
[97, 36, 79],
[94, 74, 60],
[68, 76, 58],
[64, 87, 56],
[68, 27, 73],
[74, 99, 42],
[7, 93, 99],
[51, 69, 40],
[38, 23, 33],
[57, 86, 31],
[33, 24, 22]
])
.dataLabels(AADataLabels()// 此处为增加代码
.inside(true)
.verticalAlign(.middle)
.color(AAColor.black)
.style(AAStyle()
.fontSize(10)
.textOutline("0px 0px contrast")))
])
}
问题
请问:
- 缩放仅仅是x轴y轴间隔等比例缩放,气泡本身大小不会等比例变的吗?
- 拖动手势仅支持双指拖动不支持单指吗?双指拖动貌似和双指缩放冲突,双指拖动时能明显看到图在抖动,应该是在做缩放
- 缩放手势停止的时候图会自动的弹以下,类似弹簧效果,这个是没法取消的吗?
Metadata
Metadata
Assignees
Labels
No labels