function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Merry SMerry S 

programmatically (using Apex) change the arc of a canvas drawn circle in a vf page

User-added image

This is an example of a dashboard type page I have created using visualforce. What I was wondering... is it possible to draw those circles (they are just images now), based on data in a query. For instance, could I draw a circle to be smaller or larger based on revenue. I have looked at canvas and understand how to get the circle.. just not sure where I would look (research) to figure out if what I am trying to do is even possible.

I would need the circles to all be the same size initially and when an end user clicks "show size" the circles would change based on revenue. And they would have to still show the r/y/g.

Any direction is helpful. In the meantime - back to my research!
Ashish_SFDCAshish_SFDC
Hi , 


This is currently not possible via visualforce but you can use HTML or CSS and Images in the place of the Graph. 

You may post an Idea : https://success.salesforce.com/ideaPost

Also see this link which has a related discussion, 

http://stackoverflow.com/questions/15741529/layering-up-canvas-to-make-a-background


Regards,
Ashish