Trying to Explode Pie Slices
-
Hi. This is a great plugin. I’m using it already for the tables and am just exploring it for the charts.
I’m trying to explode pie segments. I must have a JSON problem, but I don’t see it. I’ve searched through the help and the forum, but it looks to me like it should work.
I’m referencing this code from the Google documentation:
var options = { title: 'Indian Language Use', legend: 'none', pieSliceText: 'label', slices: { 4: {offset: 0.2}, 12: {offset: 0.3}, 14: {offset: 0.4}, 15: {offset: 0.5}, }
I’m using this gdoc code:
[gdoc key="https://docs.google.com/spreadsheets/d/1BZsqE-CRGtX2MSDgfzPUWikcVm0PQr8gWgDUrxRDhtw/edit?usp=sharing" chart="Pie" query="select C, D" chart_height=600 chart_width=600 title="My Test Data" chart_slice_visibility_threshold=0.14 chart_pie_slice_text="label" chart_pie_slice_text_style='{"color": "black", "fontSize": 15}' chart_slices='{2:{"offset": 0.2}, 3:{"offset": 0.4}}']
Here’s my test page:
https://test.edkatzman.com/index.php/2017/01/13/graph#exploded
Thanks for any guidance. I think once I get this, I’ll be all set.
- The topic ‘Trying to Explode Pie Slices’ is closed to new replies.