|
|
|
Re: D3 chart in BIRT [message #1102643 is a reply to message #1099872] |
Fri, 06 September 2013 00:33 |
|
Grabbing the body only seems to work when running in preview in a browser. If you create your own div to append "Hello World" to, it works. The text box code looks like this:
<script>
head.ready(
function ()
{
alert("entering head.ready")
div1 = document.getElementById("mydiv");
d3.select(div1)
.append("p")
.text("Hello World!");
}
);
</script>
<div id="mydiv" />
This works in all of the html outputs. I also moved the css url to a style in the outline. Attached is the working report.
Michael
Developer Evangelist, Silanis
|
|
|
|
|
|
|
|
|
|
Re: D3 chart in BIRT [message #1106848 is a reply to message #1106838] |
Wed, 11 September 2013 16:23 |
|
Padmasridhar,
You should be able to bind the text box to the dataSet you're wanting to use, then use <value-of> tags to call your data from the dataSet and store that to a variable in your script. Hope this helps.
Michael
Developer Evangelist, Silanis
|
|
|
|
|
|
|
Re: D3 chart in BIRT [message #1108581 is a reply to message #1108055] |
Sat, 14 September 2013 03:04 |
|
So, everything is working as expected now? The PDF won't work because of the d3 charts being done on the client side. Let me know if everything other than that is working.
Michael
Developer Evangelist, Silanis
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06073 seconds