Thanks Tom! That pretty much did it. The data labels for 0 values are still
there, but I'm ok with that!
On Tuesday, March 19, 2013 10:11:33 AM UTC-4, Tom Rybka wrote:
>
> Pie Charts are a little odd, they're not meant to show values < 0.
>
> However, you've passed in chds=-1.667,100 which is resetting the minimum
> (which for Pie, should be 0), thus making 0 be "larger."
>
> If you either remove chds, or make it chds=0,X where X is 100 or
> something, then you should be fine.
>
> On Tuesday, March 19, 2013 8:11:04 AM UTC-4, Sam Evans-Brown wrote:
>>
>> Hey all,
>>
>> I'm using an application named TileMill to visualize some data as a map.
>> TileMill can link to the Google Charts API to create interactivity. All is
>> well except for when some of the data fields have a zero value. When that
>> happens the API draws that "slice" into the pie chart anyway, even though
>> it should not be there (see the attached screenshot). Is there a way to
>> conditionally code the API so that it doesn't draw a value in when it's a
>> zero?
>>
>> Pasted below is the code that I'm putting into TileMill. the {{{}}}
>> signifiers are my data "tokens" that pull data from my
>> shapefile/spreadsheet. All of them contain a zero for certain towns on the
>> map.
>>
>> Any suggestions?? A thousand thanks to whichever kind souls help me out!
>>
>>
>>
>> <img src="http://chart.googleapis.com/chart?chs=307x250
>> &cht=p
>> &chco=A2C180
>> &chds=-1.667,100
>>
>> &chd=t:{{{PctWasteWa}}},{{{PctSewerRe}}},{{{PctNewSewe}}},{{{PctCSO}}},{{{PctStormwa}}}
>>
>> &chdl=Waste+Water+Treatment|Sewer+Rehab|New+Sewers|Combined+Sewer+Overflow|Stormwater&chp=0.033
>> &chl=
>> {{{PctWasteWa}}}|{{{PctSewerRe}}}|{{{PctNewSewe}}}|{{{PctCSO}}}|{{{PctStormwa}}}
>> &chtt=Water+Needs+By+Type" width="307" height="225" alt="Water Needs By
>> Type" />
>>
>
--
You received this message because you are subscribed to the Google Groups
"Google Chart API" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-chart-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.