Simple Graph

Fb91796c7916b1eb32bf64123876310e?s=47 Yoshimi Kondo
November 24, 2015

Simple Graph

Fb91796c7916b1eb32bf64123876310e?s=128

Yoshimi Kondo

November 24, 2015
Tweet

Transcript

  1. SIMPLE GRAPH YOSHIMIKEISUI #POTATOTIPS

  2. INTRODUCTION

  3. SIMPLE GRAPH - YOSHIMIKEISUI, FINC INC. ࣗݾ঺հ ▸ FiNC Inc.

    ▸ iOS / Swift ▸ Ruby on Rails ▸ github: yoshimikeisui ▸ Qiita: yoshimikeisui
  4. PRODUCT

  5. SIMPLE GRAPH - YOSHIMIKEISUI, FINC INC. PRODUCT ▸ ϔϧεέΞΞϓϦ ▸

    ମॏ΍า਺ͳͲͷϩά ▸ ੜ׆श׳ΛΞυόΠε ▸ ݈߁ʹ·ͭΘΔ৘ใ
  6. SIMPLE GRAPH - YOSHIMIKEISUI, FINC INC. PRODUCT ▸ ϔϧεέΞΞϓϦ ▸

    ମॏ΍า਺ͳͲͷϩά ▸ ੜ׆श׳ΛΞυόΠε ▸ ݈߁ʹ·ͭΘΔ৘ใ Ϧχϡʔ Ξ ϧʂ
  7. SIMPLE GRAPH - YOSHIMIKEISUI, FINC INC. PRODUCT ▸ ϔϧεέΞΞϓϦ ▸

    ମॏ΍า਺ͳͲͷϩά ▸ ੜ׆श׳ΛΞυόΠε ▸ ݈߁ʹ·ͭΘΔ৘ใ
  8. GRAPH DRAWING

  9. SIMPLE GRAPH - YOSHIMIKEISUI, FINC INC. GRAPH DRAWING

  10. HOW? ࣗ࡞

  11. SIMPLE GRAPH - YOSHIMIKEISUI, FINC INC. ͸͡ΊʹΈͨ΋ͷ ▸ CorePlot ▸

    iOS-Charts ▸ PNChart
  12. SIMPLE GRAPH - YOSHIMIKEISUI, FINC INC. ͸͡ΊʹΈͨ΋ͷ ▸ CorePlot -

    ݱόʔδϣϯͰ࢖༻͍ͯ͠Δ ▸ iOS-Charts - ѹ౗తͳࢧ࣋਺ ▸ PNChart - γϯϓϧͦ͏
  13. SIMPLE GRAPH - YOSHIMIKEISUI, FINC INC. Ͱ΋ ▸ ͦΜͳͨ͘͞Μάϥϑछྨ͍Βͳ͍ ▸

    ࢦఆ͢ΔΦϓγϣϯ͕ଟͯ͘ɺwrapͯ͠࢖͏ ▸ ͍͢͝ඍົͳϨΠΞ΢τ΍άϥϑͷϥϕϧΛௐ੔͠ʹ͍͘
  14. HOW? ࣗ࡞

  15. HOW? ࣗ࡞ https://github.com/yoshimikeisui/SimpleGraphSample

  16. HOW TO USE

  17. SIMPLE GRAPH - YOSHIMIKEISUI, FINC INC. GRAPH FRAME STROKE +

  18. SIMPLE GRAPH - YOSHIMIKEISUI, FINC INC. HOW TO USE SIMPLE

    GRAPH ▸ ઢͷ෦෼ = LineStroke ▸ എܠ = LineStrokeGraphFrame
  19. MECHANISM

  20. SIMPLE GRAPH - YOSHIMIKEISUI, FINC INC. GRAPH FRAME STROKE +

    ߏ੒
  21. SIMPLE GRAPH - YOSHIMIKEISUI, FINC INC. ΍Δ͜ͱᶃ

  22. SIMPLE GRAPH - YOSHIMIKEISUI, FINC INC. X࣠ͷ఺ͷ෯ΛٻΊΔ

  23. SIMPLE GRAPH - YOSHIMIKEISUI, FINC INC. width / ࠷௕ͷ഑ྻͷCount

  24. SIMPLE GRAPH - YOSHIMIKEISUI, FINC INC. ΍Δ͜ͱᶄ

  25. SIMPLE GRAPH - YOSHIMIKEISUI, FINC INC. Y࣠ͷ఺ͷߴ͞ΛٻΊΔ

  26. SIMPLE GRAPH - YOSHIMIKEISUI, FINC INC. height / ࠷େ஋

  27. SIMPLE GRAPH - YOSHIMIKEISUI, FINC INC. GRAPH FRAME ▸ strokesͷ࠷େ஋͔ΒY࣠ͷߴ͞ΛٻΊΔ

    ▸ strokesͷ࠷େݸ਺͔ΒX࣠ͷ௕͞ΛٻΊΔ
  28. SIMPLE GRAPH - YOSHIMIKEISUI, FINC INC. GRAPH STROKE ▸ X࣠ͱY࣠ͷ஋ΛऔಘͰ͖

    ΔΑ͏ʹ ▸ superviewͰ͋Δ GraphFrame͔Βऔಘ
  29. SIMPLE GRAPH - YOSHIMIKEISUI, FINC INC. GRAPH STROKE ▸ protocolͰ༻ҙ͞ΕͨgetXPoint,

    getYPointͰ࠲ඪΛऔಘ ▸ UIBezierPathͰඳࣸ
  30. SIMPLE GRAPH - YOSHIMIKEISUI, FINC INC. GRAPH FRAME STROKE ഑ྻͷ௕͞

    ϝϞϦ͝ͱͷX࣠ͷ෯ ஋͝ͱͷY࣠ͷߴ͞ ഑ྻͷ஋
  31. WHY PROTOCOL?

  32. SIMPLE GRAPH - YOSHIMIKEISUI, FINC INC. PROTOCOL STROKE LINE STROKE

    PROTOCOL STROKE LINE STROKE PROTOCOL STROKE BAR STROKE LINE GRAPH FRAME PROTOCOL GRAPH FRAME BAR GRAPH FRAME PROTOCOL BAR FRAME ϝΠϯͷϩδοΫΛ׆͔ͯ͠ɺ਺छྨͷάϥϑ͕ඳ͚Δ
  33. ςΩετ ·ͱΊ ▸ γϯϓϧͳάϥϑͳΒɺࣗ࡞͢Δͱָɺָ͍ͦͯ͠͠ ▸ protocolΛ࢖ͬͯɺجຊϩδοΫΛ੾Γग़͢ ▸ ͜ΕΛجʹͯ͠ɺ࠷ऴతʹ͸͜͏ͳΕͨˣ

  34. END