Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Flutter x Graph

Flutter x Graph

flutter_charts について、まとめた LT です

第2回 FlutterGakkai https://fluttergakkai.connpass.com/event/248999/ で登壇しました

4geru sakisaka

July 22, 2022
Tweet

More Decks by 4geru sakisaka

Other Decks in Technology

Transcript

  1. ࠓճ࿩͢͜ͱ 💣 charts_ f lutter ʹ͍ͭͯ 💣 αϯϓϧίʔυ class ߏ੒

    💣 ๮άϥϑ / ԁάϥϑ 💣 ંΕઢάϥϑ vs λΠϜϥΠϯνϟʔτ 💣 ෳ߹άϥϑ
  2. ࠓճ࿩͢͜ͱ 🔥 charts_ f lutter ʹ͍ͭͯ 💣 αϯϓϧίʔυ class ߏ੒

    💣 ๮άϥϑ / ԁάϥϑ 💣 ંΕઢάϥϑ vs λΠϜϥΠϯνϟʔτ 💣 ෳ߹άϥϑ
  3. ࠓճ࿩͢͜ͱ 🔥 charts_ f lutter ʹ͍ͭͯ 🔥 άϥϑΛ࡞Δ class ߏ੒

    💣 ๮άϥϑ / ԁάϥϑ 💣 ંΕઢάϥϑ vs λΠϜϥΠϯνϟʔτ 💣 ෳ߹άϥϑ
  4. ࠓճ࿩͢͜ͱ 🔥 charts_ f lutter ʹ͍ͭͯ 🔥 αϯϓϧίʔυ class ߏ੒

    🔥 ๮άϥϑ / ԁάϥϑ 💣 ંΕઢάϥϑ vs λΠϜϥΠϯνϟʔτ 💣 ෳ߹άϥϑ
  5. ɾొ৔ਓ෺ ɾParent View class ɾModel class ɾChart View class ɾbuild

    Ͱ series ͷॳظԽ ɾdata͔ΒσʔλΛ࡞Δؔ਺͕͋Δ ๮άϥϑͱԁάϥϑ
  6. ࠓճ࿩͢͜ͱ 🔥 charts_ f lutter ʹ͍ͭͯ 🔥 αϯϓϧίʔυ class ߏ੒

    🔥 ๮άϥϑ / ԁάϥϑ 🔥 ંΕઢάϥϑ vs λΠϜϥΠϯνϟʔτ 💣 ෳ߹άϥϑ
  7. ɾొ৔ਓ෺ ɾParent View class ɾkey / date Ͱҧ͏ num /

    DateTime ܕͰѻ͏ ɾModel class ɾChart View class ંΕઢάϥϑ vs λΠϜϥΠϯνϟʔτ
  8. ɾొ৔ਓ෺ ɾParent View class ɾModel class ɾંΕઢάϥϑ / λΠϜϥΠϯνϟʔτ 


    (int / DateTime)Ͱσʔλܕ͕ҧ͏ ɾChart View class ંΕઢάϥϑ vs λΠϜϥΠϯνϟʔτ
  9. ɾొ৔ਓ෺ ɾParent View class ɾModel class ɾChart View class ɾLineChart

    / TimeSeriesChart ͰมΘΔ ંΕઢάϥϑ vs λΠϜϥΠϯνϟʔτ
  10. ࠓճ࿩͢͜ͱ 🔥 charts_ f lutter ʹ͍ͭͯ 🔥 αϯϓϧίʔυ class ߏ੒

    🔥 ๮άϥϑ / ԁάϥϑ 🔥 ંΕઢάϥϑ vs λΠϜϥΠϯνϟʔτ 🔥 ෳ߹άϥϑ
  11. ɾϝΠϯʹΑΓάϥϑ͕มΘΔ ɾOrdinalComboChart ͸ List<common.Series<dynamic, String>> ɾ NumericComboChart ͸ List<common.Series<dynamic, num>>

    ෳ߹άϥϑ Build defaultRenderer customSeriesRenderer s ordinal_bar_line OrdinalComboChart BarRendererCon f ig LineRendererCon f ig numeric_line_bar NumericComboChart LineRendererCon f ig BarRendererCon f ig numeric_line_point NumericComboChart LineRendererCon f ig PointRendererCon f ig date_time_line_point TimeSeriesChart LineRendererCon f ig PointRendererCon f ig scatter_plot_line ScatterPlotChart PointRendererCon f ig LineRendererCon f ig
  12. ɾઃఆํ๏ 1. customSeriesRenders ͰΧελϜදࣔ͢Δ 
 chart ͷ type Λઃఆ͢Δ 2.

    customRenderId ͰΧελϜද͍ࣔͨ͠ID 
 Λࢦఆ͢Δ ෳ߹άϥϑ
  13. ෳ߹άϥϑ ɾઃఆํ๏ 1. customSeriesRenders ͰΧελϜදࣔ͢Δ 
 chart ͷ type Λઃఆ͢Δ

    2. customRenderId ͰΧελϜද͍ࣔͨ͠ID 
 Λࢦఆ͢Δ 3. ը૾Λඳը͢Δ Series ʹ setAttribute Ͱ 
 ΧελϜද͍ࣔͨ͠ID Λࢦఆ͢Δ
  14. ɾ໨੝(Axes) / ຌྫ(Legends) / ڍಈ(Behaviors) / ΞΫηγϏϦςΟ(a11y) / ଞݴޠ(i18n) ͳͲͷྫ΋

    ͋Γ·͢ɻ ɾchart_ f lutter ͸ Google ͷϥΠϒϥϦͰ͕͢ɺ f l_chart ͳͲͷผͷύοέʔδ΋͋Γ·͢ɻͥͻ ͞·͟·ͳϥΠϒϥϦͰ༡ΜͰ͍ͩ͘͞ɻ ɾOSSͳͷͰɺ·ͩ଍Γͳ͍෦෼౳͋Ε͹ɺͲΜͲΜ contribute νϟϨϯδ͠·͠ΐ͏ɻ ࠷ޙʹ