Is it possible to get a pie chart to use labels connected with lines to the different slices using Google Visualization API?

920 views
Skip to first unread message

Dinesh Satish Kumar Sriram

unread,
May 4, 2013, 10:12:09 AM5/4/13
to google-visua...@googlegroups.com


  1. using google visualization i was able to produce this chart.
My issues are : -

  1. I want to remove the % value from label
  2. the line which is connecting to label should start out side the chart as below image. please let me know your thoughts.



asgallant

unread,
May 4, 2013, 12:21:05 PM5/4/13
to google-visua...@googlegroups.com
You can remove the percent from the labels in a PieChart by setting the "pieSliceText" option to "label" or "none" (I assume "label" is what you want here, since "none" removes the text completely).  Moving the labels outside the slices is not possible, however.
Message has been deleted

Dinesh Satish Kumar Sriram

unread,
May 4, 2013, 3:01:18 PM5/4/13
to google-visua...@googlegroups.com

thanks, is this possible or not

asgallant

unread,
May 4, 2013, 3:45:42 PM5/4/13
to google-visua...@googlegroups.com
I don't think that pie chart is a Visualization API PieChart - the Viz API can't create charts that look like that.  Can you share the code you used to make that chart?

Dinesh Satish Kumar Sriram

unread,
May 4, 2013, 3:49:08 PM5/4/13
to google-visua...@googlegroups.com
attached is the code.


--
You received this message because you are subscribed to a topic in the Google Groups "Google Visualization API" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-visualization-api/mwfdyY2_pt4/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

charts.zip

asgallant

unread,
May 4, 2013, 4:17:01 PM5/4/13
to google-visua...@googlegroups.com
Setting the the legend.position option to "labeled" isn't part of the documented feature set, so I'm not sure how you would adjust those.  Speaking of undocumented features, there is another one that can save you the trouble of overlaying a circle image onto your pie: set the "pieHole" option to a value between 0 and 1 to put a hole in the center of your pie (larger values make larger holes).


On Saturday, May 4, 2013 3:49:08 PM UTC-4, Dinesh Satish Kumar Sriram wrote:
attached is the code.


On Sun, May 5, 2013 at 1:15 AM, asgallant <drew_g...@abtassoc.com> wrote:
I don't think that pie chart is a Visualization API PieChart - the Viz API can't create charts that look like that.  Can you share the code you used to make that chart?


On Saturday, May 4, 2013 3:01:18 PM UTC-4, Dinesh Satish Kumar Sriram wrote:

thanks, is this possible or not

On Saturday, May 4, 2013 9:51:05 PM UTC+5:30, asgallant wrote:
You can remove the percent from the labels in a PieChart by setting the "pieSliceText" option to "label" or "none" (I assume "label" is what you want here, since "none" removes the text completely).  Moving the labels outside the slices is not possible, however.

On Saturday, May 4, 2013 10:12:09 AM UTC-4, Dinesh Satish Kumar Sriram wrote:


  1. using google visualization i was able to produce this chart.
My issues are : -

  1. I want to remove the % value from label
  2. the line which is connecting to label should start out side the chart as below image. please let me know your thoughts.



--
You received this message because you are subscribed to a topic in the Google Groups "Google Visualization API" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-visualization-api/mwfdyY2_pt4/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to google-visualization-api+unsub...@googlegroups.com.

Dinesh Satish Kumar Sriram

unread,
May 4, 2013, 5:03:39 PM5/4/13
to google-visua...@googlegroups.com
thanks bro..just small queries can we put click function in imagechart. becoz image chart give us this facility.


To unsubscribe from this group and all its topics, send an email to google-visualizati...@googlegroups.com.

Dinesh Satish Kumar Sriram

unread,
May 4, 2013, 5:07:57 PM5/4/13
to google-visua...@googlegroups.com
can you suggest me any open source chart plugin
Reply all
Reply to author
Forward
0 new messages