bars.html (401B)
1 <body> 2 <script src="https://unpkg.com/moonjs"></script> 3 <script src="https://unpkg.com/moon-bars"></script> 4 <div id="app1"> 5 <p>{{msg}}</p> 6 7 <bars 8 m-literal:data="[5, 7, 4, 3, 5]" 9 m-literal:fill="['#7bddd3', '#079af9']" 10 height="100" 11 width="300"> 12 </bars> 13 </div> 14 <script> 15 Moon.use(MoonBars); 16 const app1 = new Moon({ 17 el: "#app1", 18 data: { 19 msg: "Hello Moon!" 20 } 21 }); 22 </script> 23 </body>