RadialChartImageGenerator

Radial Bar Chart Generator for Apple Watch -

  • 所有者: hmaidasani/RadialChartImageGenerator
  • 平台:
  • 許可證: MIT License
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

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.

主要指標

概覽
名稱與所有者hmaidasani/RadialChartImageGenerator
主編程語言JavaScript
編程語言CSS (語言數: 3)
平台
許可證MIT License
所有者活动
創建於2015-01-08 01:25:09
推送於2021-11-01 01:36:11
最后一次提交2021-10-31 21:36:11
發布數0
用户参与
星數446
關注者數24
派生數62
提交數78
已啟用問題?
問題數15
打開的問題數10
拉請求數2
打開的拉請求數1
關閉的拉請求數1
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?