Can you attach the image files so I can test this on my server?

On Sunday, April 14, 2013 8:34:48 AM UTC-4, Chris Stamoulis wrote:
>
> Hi there,
>
> That did not load the png for me. The text is there though. Here is the 
> exact code im working with. Hope this helps :)
>
> function drawVisualization() {
> var data = google.visualization.arrayToDataTable([
> ['Business Team', 'In SLA%', 'Tickets In', 'Tickets Out', 'Total Tickets'],
> ['Team1', '<div style="background: transparent url("green_circle.png") 
> no-repeat left top; font-size: 32px;width: 100%; height: 
> height:100%">100%</div>', '<a href="details.php">13</a>', '0', '<a 
> href="details.php">13</a>'], 
> ['Team2', '<div style="background: transparent url("red_circle.png") 
> no-repeat left top; font-size: 32px;width: 100%; height: 
> height:100%">70%</div>', '<a href="details.php">1</a>', '0', '<a 
> href="details.php">1</a>'], 
> ['Team3', '<div style="background: transparent url("yellow_circle.png") 
> no-repeat left top; font-size: 32px;width: 100%; height: 
> height:100%">80%</div>', '<a href="details.php">9</a>', '0', '<a 
> href="details.php">9</a>'], 
> ]);
>  visualization = new 
> google.visualization.Table(document.getElementById('sla_summary'));
> visualization.draw(data, {allowHtml: true});
> }
>
>  google.load('visualization', '1.0', {'packages':['table']});
>  google.setOnLoadCallback(drawVisualization);
>
>
>
>
>
>
> On Saturday, April 13, 2013 6:25:39 PM UTC-4, asgallant wrote:
>>
>> That should work just fine, see http://jsfiddle.net/asgallant/w9WEb/, 
>> though the image won't show up since this isn't hosted on your server. 
>>  Make sure you set the "allowHtml" option correctly - the options are case 
>> sensitive, only the "H" is capitalized.
>>
>> On Saturday, April 13, 2013 4:46:16 PM UTC-4, Chris Stamoulis wrote:
>>>
>>> ['Temp1', '<div style="background: transparent url("green_circle.png") 
>>>>> no-repeat left top; font-size: 32px;width: 100%; height: height:100%"
>>>>> >95%</div> ', true]
>>>>
>>>>  
>>> I am using the simple table with AllowHTML. Nothing special or fancy. Thank 
>>> you for taking time to look at this.
>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization 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-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to