Integrate beautiful minimalistic plots into your app.

Last update: May 19, 2022

PlotUI · Tests

Integrate beautiful minimalistic plots into your app.

Installation

You can use PlotUI as package dependency to your app using Xcode:

github.com/ybubnov/PlotUI

Documentation

The PlotUI Documentation contains additional details on how to get started with PlotUI.

Usage

Define your plot using the PlotView structure, and populate it with concrete data representation, like BarView, to render data in your app's user interface.

The following example creates a bar chart with 3 data points, where horizontal ticks are labeled with week days instead of numbers:

PlotView {
    BarView(
        x: [3, 4, 5],
        y: [2000, 2100, 2300]
    )
} horizontal: {
    HAxis(
        ticks: [1, 2, 3, 4, 5],
        labels: ["Sun", "Mon", "Tue", "Wed", "Thu"]
    )
} vertical: {
    VAxis(ticks: [1000, 2000, 3000])
}
.contentDisposition(minX: 1, maxX: 5, minY: 0, maxY: 3000)
.frame(width: 500, height: 300)

You can use LineView to define a line chart:

PlotView{
    LineView(
        x: [0, 1, 2, 3, 4, 5],
        y: [10, 20, 0, 45, 30, 50]
    )
}
.tickInsets(bottom: 20, trailing: 20)
.contentDisposition(minX: -5, maxX: 15, minY: 0)
.frame(width: 600, height: 300)

License

PlotUI is MIT licensed.

GitHub

https://github.com/ybubnov/PlotUI
You might also like...

Repositório com o app exemplo para o uso do gráfico radar.

Repositório com o app exemplo para o uso do gráfico radar.

RadarExample Repositório com o app exemplo para o uso do gráfico radar. É um método gráfico de apresentar dados multivariáveis, na forma de um gráfico

Nov 5, 2021

Demonstration of a Sketching App Using 3D Touch

Demonstration of a Sketching App Using 3D Touch

ForceSketch ####Demonstration of a Sketching App Using 3D Touch #####Companion project to this blog post: http://flexmonkey.blogspot.co.uk/2015/10/for

Apr 12, 2022

'Minimalistic Push' is a minimalistic push-up application now built with Flutter.

'Minimalistic Push' is a minimalistic push-up application now built with Flutter.

Minimalistic Push Minimalistic Push is one of the simplest push-up trackers out there. You can track your push-ups in the training mode and see an ove

May 12, 2022

JSONHelper - ✌ Convert anything into anything in one operation; JSON data into class instances, hex strings into UIColor/NSColor, y/n strings to booleans, arrays and dictionaries of these; anything you can make sense of!

JSONHelper Convert anything into anything in one operation; hex strings into UIColor/NSColor, JSON strings into class instances, y/n strings to boolea

Apr 26, 2022

Custom camera with AVFoundation. Beautiful, light and easy to integrate with iOS projects.

🚨 Warning This repository is DEPRECATED and not maintained anymore. Custom camera with AVFoundation. Beautiful, light and easy to integrate with iOS

May 21, 2022

Demonstration of how to integrate AppleScript/Cocoa scripting into a Catalyst app

Demonstration of how to integrate AppleScript/Cocoa scripting into a Catalyst app

CatalystAppleScript Trivial demonstration showing how to build support for AppleScript into a Catalyst app. Showcases multiple commands and variables

May 17, 2022

The hassle-free way to integrate analytics into any iOS application.

The hassle-free way to integrate analytics into any iOS application.

Developer Feedback Requested: Analytics-Swift Pilot A pilot release of the new Analytics-Swift library is available at the Analytics-Swift repository.

May 20, 2022

Unofficial Dribbble iOS wrapper allows you to integrate Dribble API into iOS application (Designer, Shot, Comment, User Story, Like, Follow)

DribbbleSDK DribbbleSDK is easy-to-use iOS wrapper for Dribbble SDK. We're working hard to complete the full coverage of available methods and make th

Dec 2, 2020

KHabit an open source, pure and minimalistic app which helps you maintain productive habits, and nothing more.

an open source, pure and minimalistic app which helps you maintain productive habits, and nothing more. The app is completely open source, it does not contain in-app or ads, and does not track the user in any way.

May 10, 2022

an open source, pure and minimalistic app which helps you maintain productive habits, and nothing more.

KHabit an open source, pure and minimalistic app which helps you maintain productive habits, and nothing more. The app is completely open source, it d

May 5, 2021

The minimalistic, secure and open-source two-factor authentication app.

The minimalistic, secure and open-source two-factor authentication app.

Einmal /ˈainmaːl/ German: once The minimalistic, secure and open-source two-factor authentication app. Features ♻️ Cross-platform — available on Andro

Apr 22, 2022

DataKernel is a minimalistic wrapper around CoreData stack to ease persistence operations.

DataKernel What is DataKernel? DataKernel is a minimalistic wrapper around CoreData stack to ease persistence operations. It is heavily inspired by Su

Jan 29, 2022

A minimalistic, thread safe, non-boilerplate and super easy to use version of Active Record on Core Data.

A minimalistic, thread safe, non-boilerplate and super easy to use version of Active Record on Core Data.

Skopelos A minimalistic, thread-safe, non-boilerplate and super easy to use version of Active Record on Core Data. Simply all you need for doing Core

May 11, 2022

Minimalistic Swift HTTP request agent for iOS and OS X

Agent Table of Contents Introduction Usage HTTP Verbs Overloading Method Chaining Response Closure Verbs Methods NSMutableURLRequest Contributing Lice

Apr 14, 2022

This project is a minimalistic Pomodoro timer for OS X written in Swift

This project is a minimalistic Pomodoro timer for OS X written in Swift

Minimalistic Pomodoro for OSX This project is a minimalistic Pomodoro timer for OS X written in Swift started by @bengsfort, and substantially enhance

Nov 17, 2021

A minimalistic looking banner library for iOS. It supports multiple customizable kinds of Banner types

A minimalistic looking banner library for iOS. It supports multiple customizable kinds of Banner types

A minimalistic looking banner library for iOS. It supports multiple customizable kinds of Banner types

May 15, 2022

A demo of how you can integrate SwiftUI and Airtable in your app

A demo of how you can integrate SwiftUI and Airtable in your app

SwiftUI Airtable Demo This is a small, functional example app that demonstrates how you can use Airtable as a lightweight backend. I wouldn't recommen

Mar 20, 2022

INTUZ is presenting an interesting a Multilevel Expand/Collapse UITableView App Control to integrate inside your native iOS-based application

INTUZ is presenting an interesting a Multilevel Expand/Collapse UITableView App Control to integrate inside your native iOS-based application

INTUZ is presenting an interesting a Multilevel Expand/Collapse UITableView App Control to integrate inside your native iOS-based application. MultilevelTableView is a simple component, which lets you use the tableview with multilevel tree view in your project.

Sep 21, 2021

I have build a beautiful egg timer app to boil your eggs to perfection depending on how you prefer your eggs.

I have build a beautiful egg timer app to boil your eggs to perfection depending on how you prefer your eggs.

I build this app when taking course in Udemy. The course is "iOS & Swift - The Complete iOS App Development Bootcamp".

Jan 26, 2022
A simple and beautiful chart lib used in Piner and CoinsMan for iOS(https://github.com/kevinzhow/PNChart) Swift Implementation

PNChart-Swift PNChart(https://github.com/kevinzhow/PNChart) Swift Implementation Installation This isn't on CocoaPods yet, so to install, add this to

Apr 21, 2022
A simple and beautiful chart lib used in Piner and CoinsMan for iOS
A simple and beautiful chart lib used in Piner and CoinsMan for iOS

PNChart You can also find swift version at here https://github.com/kevinzhow/PNChart-Swift A simple and beautiful chart lib with animation used in Pin

May 15, 2022
Beautiful charts for iOS/tvOS/OSX! The Apple side of the crossplatform MPAndroidChart.
Beautiful charts for iOS/tvOS/OSX! The Apple side of the crossplatform MPAndroidChart.

Version 4.0.0, synced to MPAndroidChart #f6a398b Just a heads up: Charts 3.0 has some breaking changes. Please read the release/migration notes. Anoth

May 16, 2022
A simple and animated Pie Chart for your iOS app.

XYPieChart XYPieChart is an simple and easy-to-use pie chart for iOS app. It started from a Potion Project which needs an animated pie graph without i

May 16, 2022
Demonstrate a way to build your own line chart without using any third-party library
Demonstrate a way to build your own line chart without using any third-party library

LineChart This code demonstrate a way to build your own line chart without using any third-party library. It contains a simple yet effective algorithm

Oct 17, 2021
Mac app for virtualizing Linux and macOS (supports M1/Apple Silicon)

Microverse is a thin virtualization app for macOS, which allows running Linux (and, soon, macOS) guest virtual machines, achieved with macOS' own virtualization framework.

May 15, 2022
Line plot like in Robinhood app in SwiftUI
Line plot like in Robinhood app in SwiftUI

RHLinePlot Line plot like in Robinhood app, in SwiftUI Looking for how to do the moving price label effect? Another repo here. P.S. Of course this is

May 2, 2022
Health Sample app using Swift, RxSwift, Anchorage, Charts
Health Sample app using Swift, RxSwift, Anchorage, Charts

HealthSample First run pod install, then build the project and run in your devices or simulators. This project has used RIBs, Swift, RxSwift, Anchorag

Feb 11, 2022
Repository with example app for using Bar chart
Repository with example app for using Bar chart

Gráfico de Barras (Exemplo) Repositório com app exemplo para o uso do gráfico de Barras. O gráfico de barras é um gráfico com barras retangulares e co

Nov 5, 2021