-
Notifications
You must be signed in to change notification settings - Fork 109
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
Support gauge chart 支持仪表图 #18
Labels
enhancement
New feature or request
Comments
Sample OneConfigure AAOptions fun simpleGaugeChart(): AAOptions {
return AAOptions()
.chart(AAChart()
.type(AAChartType.Gauge)
)
.pane(AAPane()
.startAngle(-150f)
.endAngle(150f)
)
.yAxis(AAYAxis()
.min(0f)
.max(100f)
.plotBands(arrayOf(
AAPlotBandsElement()
.from(0f)
.to(60f)
.color("#FF0000")
)
)
)
.series(arrayOf(
AASeriesElement()
.data(arrayOf(80))
)
)
} Final chart |
Sample TwoConfigure AAOptionsfun gaugeChartWithPlotBand(): AAOptions {
return AAOptions()
.chart(AAChart()
.type(AAChartType.Gauge))
.title(AATitle()
.text("速度仪"))
.pane(AAPane()
.startAngle(-150f)
.endAngle(150f))
.yAxis(AAYAxis()
.min(0f)
.max(200f)
.title(AATitle()
.text("km/h"))
.plotBands(arrayOf(
AAPlotBandsElement()
.from(0f)
.to(120f)
.color("#ffc069"),
AAPlotBandsElement()
.from(120f)
.to(160f)
.color("#fe117c"),
AAPlotBandsElement()
.from(160f)
.to(200f)
.color("#06caf4")
)
)
)
.series(arrayOf(
AASeriesElement()
.data(arrayOf(80))
))
} Final chart |
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: