Git Product home page Git Product logo

leavesdiagram's Introduction

LeavesDiagram

Custom animated pie chart component

Installation

Swift PM

Add package dependency to the your xcode project or package file

Package.swift:

dependencies: [
    .package(url: "[email protected]:josshad/LeavesDiagram.git", "0.0.0"..."0.2.0")
 ]

Xcode project:

  • Select project in Project Navigator
  • Select your project in main window
  • Go to Package dependencies tab
  • Tap on + and enter [email protected]:josshad/LeavesDiagram.git into search fiel
  • Make version or branch dependencies

CocoaPods

To install LeavesDiagram using CocoaPods, please integrate it in your existing Podfile, or create a new Podfile:

target 'MyApp' do
  pod 'LeavesDiagram'
end

Then run pod install.

Manual

Add files from Sources/LeavesDiagram to your project

Customization

Initialisation parameters:

  • radius: Maximum leaf radius. If not specified — than radius will be min(height, width)/2
  • fullAngle: Angle between first and last leaf. Default is 2π (360°) — full circle
  • strokeColor: Stroke color of each leaf. If not specified — same color as for leaf

Additional paramters:

  • leafSelectionStyle: Allow to change behaviour on select the snail leaf:
  1. scale

  1. opacity Changes alpha of the leaf

  2. none

leavesdiagram's People

Contributors

josshad avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.