Skip to content

A bunch of user-cases to demonstrate what can be done using Swift Charts and taking other best practices to develop these demonstrators screens.

License

Notifications You must be signed in to change notification settings

Eduardo-DM/SwiftCharts-in-action

Repository files navigation

SwiftCharts-in-action

The goal of this repository is show features that can be developed through different user cases. At this point I will remark the feature where a chart can be used as input of data (chartOverlay is essencial). Functional programming is also used for manipulating collections of data.

Development was done following TDD hence all logic is validated by unitary tests.

Now, there are two screens. Each of one represents a different user case.

Interactive stock evolution

This screen represents a user case where user plays a roll in a Supply Chain / Logistic deparment where it is the purchaser. Chart is a cascade bar type, colour shows an input or output of material. Stock level is seen at glance, user can update existing orders or place a new one. Standard procedure would imply select date in a field but I show how using chatOverlay the selection of date is seamless done after napping in the desired point-date. Two ways are developed.

I posted some time ago a video where everything can be seen working: https://www.linkedin.com/feed/update/urn:li:activity:7008369576413433856/

Captura de Pantalla 2023-02-22 a las 10 19 54

Elecction of colours for the bars is not casual, instead taking mainstream combination red (outputs) & green (inputs) I chose blue instead of green for accesibility concerns with blindness.

Intensive use of funcional programming to manipulate the data.

Sales

A basic screen where the last years sales of a company are displayed. The header of the chart shows the average sales for the las 4 years, but logic allows custom this scope easily (it's parameter we pass to the view); this average is calculated by functional programming.

Captura de Pantalla 2023-02-22 a las 9 53 50

About

A bunch of user-cases to demonstrate what can be done using Swift Charts and taking other best practices to develop these demonstrators screens.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages