AAChartModel / AAChartKit

📈📊🚀🚀🚀An elegant modern declarative data visualization chart framework for iOS, iPadOS and macOS. Extremely powerful, supports line, spline, area, areaspline, column, bar, pie, scatter, angular gauges, arearange, areasplinerange, columnrange, bubble, box plot, error bars, funnel, waterfall and polar chart types. 极其精美而又强大的现代化声明式数据可视化图表框架,支持柱状图、条形图、折线图、曲线图、折线填充图、曲线填充图、气泡图、扇形图、环形图、散点图、雷达图、混合图等各种类型的多达几十种的信息图图表,完全满足工作所需.
https://cocoapods.org/pods/AAChartKit
MIT License
4.72k stars 751 forks source link

请问大佬,下面这样的图怎么实现? #1511

Closed CoderST closed 11 months ago

CoderST commented 11 months ago

截屏2023-11-06 14 57 29 1:点击顶部按钮(其实是X轴时间选择器),会根据数据变成对应的曲线图。 2:Y轴在图形的右测

不胜感激。

AAChartModel commented 11 months ago

1:点击顶部按钮(其实是X轴时间选择器),会根据数据变成对应的曲线图。

如 README 中所言:

/*仅仅更新 AAChartModel 对象的 series 属性时,动态刷新图表*/
[_aaChartView aa_onlyRefreshTheChartDataWithChartModelSeries:aaChartModelSeriesArray];

在你的自定义的 UIButton 按钮的点击事件中, 调用这个单纯刷新数据的方法就可以了.

AAChartModel commented 11 months ago

2:Y轴在图形的右测

参考: