I want to customise tooltip in google visualization chart so I did
final OrgChart orgChart = new OrgChart();
Options options = Options.create();
options.setSize(Size.MEDIUM);
options.setAllowHtml(true);
options.set("tooltip.isHtml", true);
MyDataTable dataTable = MyDataTable.create();
dataTable.addColumn(ColumnType.STRING, "InstanceID");
dataTable.addColumn(ColumnType.STRING, "ParentID");
addTooltipColumn(dataTable);
dataTable.setValue(row, 0, "TEST");
dataTable.setValue(row, 2, "<div><b>test</b></div>");
orgChart.draw(dataTable, options);
private native void addTooltipColumn(MyDataTable data) /*-{
data.addColumn({'type': 'string', 'role': 'tooltip', 'p': {'html': true}});
}-*/;
But it doesn't show tooltip in html format that have added, How I can format tooltip text and change background color and add image to it? Can somebody help me?
Thanks,
or (other Html tags ) its not taking that tags .. – pbhle Feb 26 '16 at 05:40