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
TapasviniTapasvini 

creating circles

I want to create a circle using apex. How can I code for that?

SamuelDeRyckeSamuelDeRycke
Hi

Can you be more specefic on what you want to create ? Apex has no visual rendering layer in which you could draw a circle like you could in java/.net for instance.

Or are you trying to create a class called circle which you could give properties and methods ? The more information you provide in your question, the better we can help you out.


TapasviniTapasvini

I want to create circle like this :

SamuelDeRyckeSamuelDeRycke
Like I said, there is no visual layer in Apex, you would need to do what you can in html/javascript and use that on a visual force page.


SFFSFF

That looks a little bit like a chart, some I'm wondering if Visualforce Charting could help?

 

http://www.salesforce.com/us/developer/docs/pages/Content/pages_charting.htm

 

Similarly, Google Charting offers some other similar constructs:

 

http://www.salesforce.com/us/developer/docs/pages/Content/pages_quick_start_advanced_google_charts.htm

 

Good luck!

TapasviniTapasvini

but <apex:chart> doesn't work in my api. IT gives this error: Unknown component apex:chart

SFFSFF

Visualforce charting was added in v23, so make sure your IDE is updated to at least that version. Also make sure that your VF page and controller are set to v23 or higher.

 

Good luck!

TapasviniTapasvini

I m using v25 only.still its not working.