I have JSON data that will contain a hyperlink, complete as html markup. I need to display this link as-is, and I think the Table is scrubbing the cell content before display. Is there a way to suppress this action, or do I need to break down the tag on the server side, then use a PatternFormatter to rebuild it before passing it to Table for display?
After setting allowhtml:true, still i am not able to call javaScrippt function from <a href> tag. Here's a code snippet:I want to call a java script function getJsonforCountries as soon as i click on any link in data table.
var formatter = new google.visualization.PatternFormat('<a href="#" onclick="getJsonforCountries({0});">{0}</a>');
formatter.format(data, [0,0]);
Help appreciated :)
After setting allowhtml:true, still i am not able to call javaScrippt function from <a href> tag. Here's a code snippet:I want to call a java script function getJsonforCountries as soon as i click on any link in data table.
var formatter = new google.visualization.PatternFormat('<a href="#" onclick="getJsonforCountries({0});">{0}</a>');
formatter.format(data, [0,0]);
Help appreciated :)
On Thursday, November 15, 2012 12:41:39 AM UTC+5:30, asgallant wrote:
On Thursday, November 15, 2012 12:41:39 AM UTC+5:30, asgallant wrote:
--To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/SaI_eNwvugEJ.
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To post to this group, send email to google-visua...@googlegroups.com.
To unsubscribe from this group, send email to google-visualizati...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Be careful to spell "allowHtml" correctly. It is not "allowhtml" or "allowHTML". Unknown options are generally ignored silently.But asgallant's suggestion is probably more relevant since it appears your argument values are strings rather than, say, numbers which can appear without quotes.dan
On Tue, Nov 27, 2012 at 4:52 AM, Heena <heen...@gmail.com> wrote:
After setting allowhtml:true, still i am not able to call javaScrippt function from <a href> tag. Here's a code snippet:I want to call a java script function getJsonforCountries as soon as i click on any link in data table.
var formatter = new google.visualization.PatternFormat('<a href="#" onclick="getJsonforCountries({0});">{0}</a>');
formatter.format(data, [0,0]);
Help appreciated :)
On Thursday, November 15, 2012 12:41:39 AM UTC+5:30, asgallant wrote:The Table visualization escapes all HTML content unless you set the "allowHtml" option to true.
On Wednesday, November 14, 2012 11:55:05 AM UTC-5, Jonathon McKitrick wrote:I have JSON data that will contain a hyperlink, complete as html markup. I need to display this link as-is, and I think the Table is scrubbing the cell content before display. Is there a way to suppress this action, or do I need to break down the tag on the server side, then use a PatternFormatter to rebuild it before passing it to Table for display?On Thursday, November 15, 2012 12:41:39 AM UTC+5:30, asgallant wrote:To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/SaI_eNwvugEJ.The Table visualization escapes all HTML content unless you set the "allowHtml" option to true.--
On Wednesday, November 14, 2012 11:55:05 AM UTC-5, Jonathon McKitrick wrote:I have JSON data that will contain a hyperlink, complete as html markup. I need to display this link as-is, and I think the Table is scrubbing the cell content before display. Is there a way to suppress this action, or do I need to break down the tag on the server side, then use a PatternFormatter to rebuild it before passing it to Table for display?
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group, send email to google-visualization-api+unsub...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
var grouped_data = google.visualization.data.group(data, [{
column: 0,type:'string',modifier:
function () {
var modifiedString="A";
return modifiedString;
}
}], [
{column: 1, type: 'number',aggregation: google.visualization.data.sum},
{column: 2, type: 'number',aggregation: google.visualization.data.sum},
{column: 3, type: 'number',aggregation: google.visualization.data.sum},
{column: 4, type: 'number',aggregation: google.visualization.data.sum},
{column: 5, type: 'number',aggregation: google.visualization.data.sum}
]);
grouped_data.setProperty(0, 1, "style","text-align: center;");
var groupedView = new google.visualization.DataView(grouped_data);
groupedView.setColumns([1,2,3,4,5]);
var sumChart = new google.visualization.Table(document.getElementById('summedData'));
sumChart.draw(groupedView);
<span style="color:rgb(102,102,102);line-height:15px;font-family:Inconsolata,Monaco,Consolas,"Andale Mono","Bitstream Vera Sans Mono","Courier New",Courier,monospace;font-size:1...
Show original
for (var j = 0; j < columns.length; <span style="color:rgb(0,68,153);line-height:15px;font-family:Inconsolata,Monaco,Consolas,&qu...
Show original
overflow:visible CSS property for print doesnt work when i apply API's height option.
i.e., it prints the window with scrollbar and not entire content
tabSectionA = tab;
var data = new google.visualization.DataTable(js);
var view = new google.visualization.DataView(data);
var chart = new google.visualization.AreaChart(document.getElementById(tab));
google.visualization.events.addListener(chart,
"error", function errorHandler(e) {
google.visualization.errors.removeError(e.id);
});
view.setColumns(cols);
var options = {
width : 600,
height : 200,
hAxis : {showTextEvery : days},
chartArea : {left :'auto'
top:'auto',
width: 'auto',
height : 'auto'
},
'pointSize' : 5,
legend : {
position : 'none'
}
};
chart.draw(view, options);