Code Monkey home page Code Monkey logo

flcharts's Introduction

FLCharts

FLCharts

Version Platforms License Swift Xcode 11.0+ iOS 11.0+ SPM

FLCharts is an easy-to-use library to build highly customizable bar charts. It allows you to create your own chart bar UIView and use it to display data in the chart.
Additionally FLCharts allows you to provide a custom HighlightedView to show the highlighted bar contents on top of the chart.
Embed effortlessly your chart in a FLCard alogside with a title, an average vlue view and additional behaviours.

Table of Contents

Requirements

  • Xcode 11 / Swift 5
  • iOS >= 11.0

Installation

FLCharts is available through CocoaPods. To install it, add the following line to your Podfile:

pod 'FLCharts'

Features

  • Animations for chart bars
  • Customizable Axes (both x and y axis)
  • Dragging / Panning (with touch-gesture)
  • Highlighting values (with customizable popup-views)
  • Create custom cards with embedded chart and more features
  • Scroll through chart while highlighted to change highlighted bar
  • Fully customizable (bar colors, axes color, background, average value, dashed lines, ...)

Configurations

FLChart is highly customizable. You can choose which property to modify through the FLBarChart.config property.

let barConfig = FLBarConfig(colors: [.red, .blue, .green],
                            radius: .capsule,
                            spacing: 10)
                            
let axisLabelConfig = FLAxisLabelConfig(color: .black,
                                        font: .preferredFont(forTextStyle: .body))

let config = ChartConfig(bar: barConfig,
                         axesLabels: axisLabelConfig)
                         
chart.config.dashedLines.color = .darkGray

Docs

You can build FLCharts documentation directly in XCode.
In XCode go to Product -> Build Documentation, once XCode has finished building, the documentation will appear.

Examples

  • Bar Chart

alt tag

  • Multivalue Bar Chart

alt tag

  • Highlighted Bar

alt tag

  • Average view

alt tag

  • Bar chart embedded in FLCard

alt tag

  • Dark mode

alt tag

Animations

  • Panning while highlighted

alt tag

  • Chart animation

alt tag

  • Scrolling behaviour with average and highlighted views

alt tag

Author

Francesco Leoni | [email protected]
francescoleoni98 | https://github.com/francescoleoni98

License

FLCharts is available under the MIT license. See the LICENSE file for more info.

flcharts's People

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.