Hi All,
I am encountering an issue as described below
I have a table with 5 columns and n rows and the first column ie
NotaryName is of type String, a hyperlink is associated with each
notary name.
After I implemented the hyperlink option, notary names are getting
listed in an odd alignment. If I comment the piece of code for
alignment (as given below), NotaryName are getting populated in the
correct alignment.
// var hyperLinkFormatter = new
google.visualization.PatternFormat('<a target=\'_blank\'href=\'/
{1}\'>{0}</a>');
// hyperLinkFormatter.format(data, [0, 1]);
Full code
------------------
function setDirections(fromAddress, toAddress, name, ID, vendorID,
netNotaryRating, mobileNo) {
var gdir1 = new
GDirections(map,document.getElementById("directions"));
var notaryName; var rcdID; var vendID; var netRating; var mobNo;
notaryName = name; rcdID = ID; vendID = vendorID; netRating =
netNotaryRating; mobNo = mobileNo;
gdir1.load("from: " + fromAddress + " to: " + toAddress);
GEvent.addListener(gdir1, "load", function(){
var distance = (gdir1.getDistance().meters / 1609.344);
doSomethingWithTheDistanceWeGotBack
(distance,notaryName,rcdID,vendID,netRating,mobNo);
var decimalFormatter = new
google.visualization.NumberFormat({fractionDigits: 1});
decimalFormatter.format(data, 3); // Apply decimal
formatter to miledistance column
var hyperLinkFormatter = new
google.visualization.PatternFormat('<a target=\'_blank\'href=\'/
{1}\'>{0}</a>');
hyperLinkFormatter.format(data, [0, 1]); // Apply formatter
and set the formatted value of the first column.
var view = new google.visualization.DataView(data);
view.setColumns([0, 1, 2, 3, 4, 5, 6]);
view.hideColumns([1,6]);
table.draw(view, {allowHtml: true, showRowNumber:
false},data.sort([{column: 3},{column:4,desc:true}]));
});
}
I would really appreciate, if someone could help me in resolving this
issue.
Thanks,
Dipin Raju
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-visualization-api?hl=en.