Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2017
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. <aura:application >
  2. <canvas aura:id="chart" />
  3. </aura:application>
  4.  
  5. ({
  6. // Your renderer method overrides go here
  7. afterRender: function(component, helper) {
  8. var canvas = component.find("chart").getElement();
  9. var context = canvas.getContext("2d");
  10. context.fillStyle="black";
  11. context.arc(50, 50, 50, 0, 2*Math.PI);
  12. context.fill();
  13. }
  14. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement