All Projects → adventam10 → AMVennDiagramView

adventam10 / AMVennDiagramView

Licence: MIT license
AMVennDiagramView is a view can display the diagram like Venn diagram.

Programming Languages

swift
15916 projects
ruby
36898 projects - #4 most used programming language
objective c
16641 projects - #2 most used programming language

Projects that are alternatives of or similar to AMVennDiagramView

OrgChart
Organization chart layout library
Stars: ✭ 16 (-58.97%)
Mutual labels:  chart, diagram
Mermaid
Provides a parser function to generate diagrams and flowcharts with the help of the mermaid script language
Stars: ✭ 27 (-30.77%)
Mutual labels:  chart, diagram
javascript
Basic Primitives Diagrams for JavaScript - data visualization components library that implements organizational chart and multi-parent dependency diagrams, contains implementations of JavaScript Controls and PDF rendering plugins.
Stars: ✭ 46 (+17.95%)
Mutual labels:  chart, diagram
Swiftsunburstdiagram
SwiftUI library to easily render diagrams given a tree of objects. Similar to ring chart, sunburst chart, multilevel pie chart.
Stars: ✭ 400 (+925.64%)
Mutual labels:  chart, diagram
Vue Chartjs
📊 Vue.js wrapper for Chart.js
Stars: ✭ 4,554 (+11576.92%)
Mutual labels:  chart, diagram
Flowy Vue
Vue Flowy makes creating flowchart or hierarchy chart functionality an easy task. Build automation software, mind mapping tools, organisation charts, or simple programming platforms in minutes by implementing the library into your project.
Stars: ✭ 107 (+174.36%)
Mutual labels:  chart, diagram
Gojs
JavaScript diagramming library for interactive flowcharts, org charts, design tools, planning tools, visual languages.
Stars: ✭ 5,739 (+14615.38%)
Mutual labels:  chart, diagram
X6
🚀 JavaScript diagramming library that uses SVG and HTML for rendering.
Stars: ✭ 2,686 (+6787.18%)
Mutual labels:  chart, diagram
PlantUml-Language-Service
PlantUml Language Service extension for Visual Studio 2017 and 2019
Stars: ✭ 24 (-38.46%)
Mutual labels:  diagram
awsdtc
AWS Data Transfer Cost Explorer
Stars: ✭ 90 (+130.77%)
Mutual labels:  chart
ng-charts
🎨📉 A fully functional Angular 14+ Chart.js library based from ng2-charts
Stars: ✭ 14 (-64.1%)
Mutual labels:  chart
PlantUml.Net
a .Net wrapper for PlantUml
Stars: ✭ 35 (-10.26%)
Mutual labels:  diagram
helm-charts
Helm charts for sigstore project
Stars: ✭ 33 (-15.38%)
Mutual labels:  chart
uml-diagram-for-kotlin-design-pattern-examples
UML diagram list of GoF design pattern examples written in Kotlin.
Stars: ✭ 23 (-41.03%)
Mutual labels:  diagram
ChartTheStockMarket
🔥 📈 💸 Chart the Stock Market - FCC Challenge
Stars: ✭ 39 (+0%)
Mutual labels:  chart
gke-toolbox
A Helm Chart with pre-configured tools for your Container Engine clusters
Stars: ✭ 20 (-48.72%)
Mutual labels:  chart
horoscope
Open source horoscope generation engine
Stars: ✭ 18 (-53.85%)
Mutual labels:  chart
chart4s
Draw a web chart by Scala
Stars: ✭ 36 (-7.69%)
Mutual labels:  chart
leaflet.minichart
Leaflet.minichart is a leaflet plugin for adding to a leaflet map small animated charts
Stars: ✭ 27 (-30.77%)
Mutual labels:  chart
topology.js
A diagram visualization framework uses canvas and typescript. Developers are able to build topology, UML, diagram, architecture, mind, SCADA and so on.
Stars: ✭ 148 (+279.49%)
Mutual labels:  diagram

AMVennDiagramView

Pod Platform Pod License Pod Version Carthage Compatible Swift Package Manager compatible

AMVennDiagramView is a view can display the diagram like Venn diagram. It displays two circles whose area ratio is almost an accurate.

Demo

2018-02-17 18 31 11

Usage

Create vennDiagramView.

let vennDiagramView = AMVennDiagramView(frame: view.bounds)
view.addSubview(vennDiagramView)
vennDiagramView.setupVennDiagram(value1: 1000, value2: 500, commonValue: 200)
vennDiagramView.dataSource = self

Conform to the protocol in the class implementation.

// MARK:- Required
func vennDiagramView(_ vennDiagramView: AMVennDiagramView, fillColorForSection section: Int) -> UIColor
func vennDiagramView(_ vennDiagramView: AMVennDiagramView, strokeColorForSection section: Int) -> UIColor
    
// MARK:- Optional
func vennDiagramView(_ vennDiagramView: AMVennDiagramView, titleForSection section: Int, value: CGFloat) -> String  // default is empty
func titleForCommonArea(in vennDiagramView: AMVennDiagramView, value: CGFloat) -> String // default is empty
func vennDiagramView(_ vennDiagramView: AMVennDiagramView, textColorForSection section: Int) -> UIColor // default is black
func textColorForCommonArea(in vennDiagramView: AMVennDiagramView) -> UIColor // default is black
func vennDiagramView(_ vennDiagramView: AMVennDiagramView, textFontForSection section: Int) -> UIFont // default is System 17.0
func textFontForCommonArea(in vennDiagramView: AMVennDiagramView) -> UIFont // default is System 17.0

section of value1 is 0. section of value2 is 1.

Installation

CocoaPods

Add this to your Podfile.

pod 'AMVennDiagramView'

Carthage

Add this to your Cartfile.

github "adventam10/AMVennDiagramView"

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].