Swiftpack.co - francescoleoni98/FLCharts as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by francescoleoni98.
francescoleoni98/FLCharts ‘1.0.6’
Easy to use and highly customizable charts library for iOS
⭐️ 17
🕓 1 week ago
.package(url: "https://github.com/francescoleoni98/FLCharts.git", from: "‘1.0.6’")



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


  • Xcode 11 / Swift 5
  • iOS >= 11.0


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

pod 'FLCharts'


  • 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, ...)


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


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


  • 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


  • Panning while highlighted

alt tag

  • Chart animation

alt tag

  • Scrolling behaviour with average and highlighted views

alt tag


Francesco Leoni | leoni.francesco98@gmail.it
francescoleoni98 | https://github.com/francescoleoni98


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


Stars: 17
Last commit: 4 days ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

Release v1.1.1
3 days ago
  • IMPROVEMENT: Fixed NSLayoutConstraint+XT.swift file
  • FEATURE: Added Legend option in FLCard
  • IMPROVEMENT: Fixed Package.swift file

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics