SMDiagramViewSwift alternatives and similar libraries
Based on the "Charts" category.
Alternatively, view SMDiagramViewSwift alternatives based on common mentions on social networks and blogs.
-
Charts
Beautiful charts for iOS/tvOS/OSX! The Apple side of the crossplatform MPAndroidChart. -
PNChart
A simple and beautiful chart lib used in Piner and CoinsMan for iOS -
Scrollable-GraphView
An adaptive scrollable graph view for iOS to visualise simple discrete datasets. Written in Swift. -
JBChartView
iOS-based charting library for both line and bar graphs. -
BEMSimpleLineGraph
Elegant Line Graphs for iOS (charting library). -
SwiftCharts
Easy to use and highly customizable charts library for iOS -
XYPieChart
A simple and animated Pie Chart for your iOS app. -
TEAChart
Simple and intuitive iOS chart library. Contribution graph, clock chart, and bar chart. -
Graphs
Light weight charts view generater for iOS. Written in Swift. -
XJYChart
iOS Chart. Support animation, click, scroll, area highlight. -
EChart
iOS/iPhone/iPad Chart, Graph. Event handling and animation supported. -
Swift LineChart
Line Chart library for iOS written in Swift -
FSInteractiveMap
A charting library to visualize and interact with a vector map on iOS. It's like Geochart but for iOS! -
PieCharts
Easy to use and highly customizable pie charts library for iOS -
JYRadarChart
an iOS open source Radar Chart implementation -
ANDLineChartView
ANDLineChartView is easy to use view-based class for displaying animated line chart. -
TWRCharts
An iOS wrapper for ChartJS. Easily build animated charts by leveraging the power of native Obj-C code. -
Dr-Charts
Dr-Charts is a highly customisable, easy to use and interactive chart / graph framework in Objective-C. -
JTChartView
JTChartView is the new lightweight and fully customizable solution to draw a chart. -
DDSpiderChart
Easy to use Spider (Radar) Chart library for iOS written in Swift. -
ChartProgressBar
Draw a chart with progress bar style -
CoreCharts
Core Charts | Basic Scrollable Chart Library for iOS -
MSBBarChart
MSBBarChart is an easy to use bar chart library for iOS -
CSPieChart
This is pie chart that is very easy to use and customizable design.
Appwrite - The Open Source Firebase alternative introduces iOS support
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of SMDiagramViewSwift or a related project?
README
SMDiagramViewSwift
Meet cute and very flexibility library for iOS application for different data view in one circle diagram. The opportunity of transformation of this sample make application interactive, colorful with wow-effect.
CocoaControls
Images
[](demo.gif) [](demo.png)
Requirements
- Xcode 9
- iOS 9.x+
- Swift 4
Be sure to read all instructions carefully.
Installing with CocoaPods
use_frameworks!
pod 'SMDiagramViewSwift', '~> 1.0'
Usage
Add a UIView
instance in your .storyboard or .xib, set SMDiagramView
class, connect IBOutlet
and add DataSource
import SMDiagramViewSwift
class ViewController: UIViewController, SMDiagramViewDataSource {
let dataSource = [1, 2, 3, 4, 5]
@IBOutlet weak var diagramView: SMDiagramView!
override func viewDidLoad() {
super.viewDidLoad()
diagramView.dataSource = self
}
}
Setup SMDiagramView
if need
override func viewDidLoad() {
super.viewDidLoad()
diagramView.dataSource = self
diagramView.minProportion = 0.1
diagramView.diagramViewMode = .arc // or .segment
diagramView.diagramOffset = .zero
diagramView.radiusOfSegments = 80.0
diagramView.radiusOfViews = 130.0
diagramView.arcWidth = 6.0 //Ignoring for SMDiagramViewMode.segment
diagramView.startAngle = -.pi/2
diagramView.endAngle = 2.0 * .pi - .pi/2.0
diagramView.colorOfSegments = .black
diagramView.viewsOffset = .zero
diagramView.separatorWidh = 1.0
public var separatorColor = .white
}
DataSource
functions
//Required
func numberOfSegmentsIn(diagramView: SMDiagramView) -> Int {
return dataSource.count
}
//Optional
func diagramView(_ diagramView: SMDiagramView, proportionForSegmentAtIndex index: NSInteger) -> CGFloat {
return CGFloat(1/dataSource.count)
}
func diagramView(_ diagramView: SMDiagramView, colorForSegmentAtIndex index: NSInteger, angle: CGFloat) -> UIColor? {
return .black
}
func diagramView(_ diagramView: SMDiagramView, viewForSegmentAtIndex index: NSInteger, colorOfSegment color:UIColor?, angle: CGFloat) -> UIView? {
return UIView()
}
func diagramView(_ diagramView: SMDiagramView, offsetForView view: UIView?, atIndex index: NSInteger, angle: CGFloat) -> CGPoint {
return .zero
}
func diagramView(_ diagramView: SMDiagramView, radiusForView view: UIView?, atIndex index: NSInteger, radiusOfSegment radius: CGFloat, angle: CGFloat) -> CGFloat {
return 130.0
}
func diagramView(_ diagramView: SMDiagramView, radiusForSegmentAtIndex index: NSInteger, proportion: CGFloat, angle: CGFloat) -> CGFloat {
return 80.0
}
func diagramView(_ diagramView: SMDiagramView, lineWidthForSegmentAtIndex index: NSInteger, angle: CGFloat) -> CGFloat {
//not called for SMDiagramViewModeSegment
return 6.0
}
Compatibility
- IOS 9-11
Changelog
Version: 1.0
- Initial Build
Contributors
- Contributors and stars are welcome.
License
Copyright 2017 VRG Soft
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
[http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*Note that all licence references and agreements mentioned in the SMDiagramViewSwift README section above
are relevant to that project's source code only.