Super Cool HTML5 Canvas chart app chart.js custom prompt line chart

Source: Internet
Author: User

Super Cool HTML5 Canvas chart app chart.js custom prompt line chart

Effect Preview

Instance Code

<div class= "Htmleaf-container" > <div class= "htmleaf-content" > <div style= "width:3 0%;margin:0 auto; " > <div> <canvas id= "Canvas" height= "width=" ></canvas&                    Gt </div> </div> </div> </div> <script src= "/api/jq/chart/ Js/chart.js "></script> <script> var randomscalingfactor = function () {RET            Urn Math.Round (math.random () * 100)};                var linechartdata = {Labels: ["January", "February", "March", "April", "may", "June", "July"], Datasets: [{label: "My first DataSet", FillColor: " RGBA (220,220,220,0.2) ", Strokecolor:" Rgba (220,220,220,1) ", Pointcolor:" RGB A (220,220,220,1) ", POIntstrokecolor: "#fff", Pointhighlightfill: "#fff", Pointhighlightstroke: "R GBA (220,220,220,1) ", Data: [Randomscalingfactor (), Randomscalingfactor (), Randomscalingfactor (), RA                    Ndomscalingfactor (), Randomscalingfactor (), Randomscalingfactor (), Randomscalingfactor ()]},                        {label: "My Second DataSet", FillColor: "Rgba (151,187,205,0.2)",                        Strokecolor: "Rgba (151,187,205,1)", Pointcolor: "Rgba (151,187,205,1)", Pointstrokecolor: "#fff", Pointhighlightfill: "#fff", point Highlightstroke: "Rgba (151,187,205,1)", Data: [Randomscalingfactor (), Randomscalingfactor (), random                    Scalingfactor (), Randomscalingfactor (), Randomscalingfactor (), Randomscalingfactor (), Randomscalingfactor ()] }                ]            } window.onload = function () {var ctx = document.getElementById ("Canvas"). Getcontex                T ("2d"); Window.myline = new Chart (CTX).            Line (Linechartdata, {responsive:true}); } </script>

  

Super Cool HTML5 Canvas chart app chart.js custom prompt line chart

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.