SimpleChart

1.0.1

This is a simple chart library using purely swiftui, enabling support for all platforms from Apple. Most importantly, this could be used in WidgetKit. This library is built by Imposters Limited and main contributed by founder @andywkff . Feel free to contribute and submit pull request. Together we built a better chart for the public.
ImpostersLimited/SimpleChart

What's New

SimpleChart v1.0.1 Release

2021-12-23T13:34:43Z

This is the initial release of SimpleChart.

Full Changelog: 1.0.0...1.0.1

SimpleChart

SimpleChart is a package developed for our company, with the intent of sharing to the developer community. As you may know, there are already a lot of SwiftUI charting library. This is yet another implementations.

What makes this package different? SimpleChart provides utility methods for you to create the chartData list, which is the only necessary parameter for all of our charts config object. To use the provided convinence method, import SimpleChart, call SCManager and the associated methods. SCManager is the manager for all methods provided by this package. SCManager is a shared instance and it is a singleton object.

Available Charts:

  1. Bar Chart
  2. Histogram
  3. Line Chart
  4. Quad Curve (curved version of line chart)
  5. Range Chart (a chart to represent the range of data within the same time period, similar to heart rate range representation in Apple Health app)

All convinence method either accept [Double] or [Int] as an input, except for the following methods:

SCManager.getRangeChartData()

This methods accept both [Double] or [Int], as the “lower” and “upper” argument, along with a list of named tuple (lower: [Double], upper: [Double]) or (lower: [Int], upper: [Int]) for the “data” argument.

All customizations will be done in the config object. You may see the initializer for all of the possible customizations. A special case is that the baseZero might be overrided by the initializer if the data input include negative number.

Pending to implement:

  1. Legend and associated customizations
  2. Label for each axis

The above customizations are already included in the config object, but not implemented in the actual chart views. More customizations will be coming and support and pull request are welcome.

Description

  • Swift Tools 5.5.0
View More Packages from this Author

Dependencies

  • None
Last updated: Mon Oct 21 2024 18:17:18 GMT-0900 (Hawaii-Aleutian Daylight Time)