Home  >  Q&A  >  body text

javascript - Is this better done with h5 or flash?

The red section on the way should come out slowly from scratch. . What to do?

淡淡烟草味淡淡烟草味2714 days ago1115

reply all(11)I'll reply

  • 高洛峰

    高洛峰2017-05-16 13:39:12

    canvas and svg

    1. canvas: chart.js

    2. svg: snap.svg.js

    Canvas

    1. Resolution dependent

    2. Event handlers are not supported

    3. Weak text rendering capabilities

    4. Ability to save result images in .png or .jpg format

    5. Best for graphics-intensive games where many objects will be redrawn frequently

    SVG

    1. Not dependent on resolution

    2. Support event handler

    3. Best for applications with large rendering areas (like Google Maps)

    4. High complexity will slow down rendering (any application that overuses the DOM is not fast)

    5. Not suitable for gaming applications

    If there is no strict requirement for resolution for simple effect display, canvas is recommended
    Look at this http://www.bootcss.com/p/char... Donut chart

    reply
    0
  • Cancelreply