GithubHelp home page GithubHelp logo

marcllahona / radialchartimagegenerator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hmaidasani/radialchartimagegenerator

0.0 2.0 0.0 30.46 MB

Radial Bar Chart Generator for Apple Watch -

Home Page: http://hmaidasani.github.io/RadialChartImageGenerator/

License: MIT License

CSS 5.00% HTML 8.85% JavaScript 86.16%

radialchartimagegenerator's Introduction

RadialChartImageGenerator

A simple tool that generates images for animating radial or circular progress charts for the Apple Watch and WatchKit. The charts are referred to as rings, dials, radials or circles.

animation1 animation2 animation3

Overview

Why care about radial progress charts?

  • Clearly, Apple likes radial progress charts which are used in their activity monitor health watch app (Apple Health & Fitness Watch App).

  • Radial charts are just the right way to display a large amount of data on such a small screen size.

  • We as humans have been trained to read radial progress charts from a very young age - clocks. That's why it makes a lot of sense to use them on a watch.

Why use the RadialChartImageGenerator?

  • The Apple WatchKit SDK does not have a built-in tool or library to create these charts or any visualization.

  • The way Apple WatchKit SDK allows animations or visualizations is to use a sequence of static images (WatchKit Design Guidlines). In fact, Apple's own WatchKit sample app called Lister does animations of this radial progress chart using 360 different static images of the chart. The reason for this is that drawing pixels or shapes would require a lot of computation and drain the battery of the watch. So, good luck creating hundreds of images by yourself.

  • The RadialChartImageGenerator comes in to the rescue. With a few clicks, you can select whether you want a single, double, or triple arc radial chart (images shown above), customize the colors and text, and choose how many values or capacity the chart should have. The generator will finally generate every permutation of the radial progress chart and download a zip file with all the images. The alternative is to create these images manually in an image editor program like Photoshop, which would require a lot of effort and time. The RadialChartImageGenerator is a very simple tool that saves so much time with minimal effor.

How To Use

Instructions

  1. Go to http://hmaidasani.github.io/RadialChartImageGenerator/ or open index.html (Chrome and Firefox recommended).

  2. Decide on whether you need a single, double, or triple arc radial chart. animation1

  3. Choose the max value or the capacity of the appropriate arc. animation2

  4. Choose the arc background color. animation3

  5. Decide the color scheme for each appropriate arc. If you would like a gradient color scheme, choose three different colors for the foreground start, mid, and end colors. In order to see how this looks, choose the current value to be equal to the max value to see the full arc gradient. Note: the current value has no effect on the output of the images - it is merely there to see how the arc would look at a given value. animation4

  6. For the single arc, you may select if text should appear in the center. You may also select the text color and the units of the subtext. animation5

  7. Once you have modified each arc to your preference, click the Generate Images button to generate each permutation of images for the given arc structure. Enter the filename prefix of your choice and click on Continue. The double and triple arcs images can optionally be merged to have all the arc layers combined into a single image. The preferred method is to download the arc layers separately. animation6

  8. The images should download in a zip file.

  9. Repeat for all the other arcs if needed.

  10. Import the downloaded images into your WatchKit Xcode project. The below example projects show how this is done.

Examples

Here are some sample WatchKit apps using the images generated using the RadialChartImageGenerator. Note: the most recent version of Xcode is required to run these.

Questions & Feature Requests

Report all of your questions and feature requests to the issues section of git repository.

radialchartimagegenerator's People

Contributors

hmaidasani avatar

Watchers

 avatar  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.