Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
Designing Analytics Reports
How to Add java script methd for value Series Dynamically
Migrateduser
I am creating Value series dynamically in beforegeneration . I have to add interactivity by calling some java script method on moue over . How can I script to achieve it. Please provide any sample lets say call alert() on mouseover on value series by script.<br />
<br />
Thanks in Advance !!<br />
<br />
var sdNew = SeriesDefinitionImpl.create();<br />
//create a new series for each parameter selection<br />
var as = AreaSeriesImpl.create();<br />
<br />
as.setTranslucent(true);<br />
as.getLabel().setVisible(false);<br />
var traceList = traceTierList
.split(":");<br />
var seriesidentifier = "" + traceList[0]+"_"+ traceList[1]; <br />
as.setSeriesIdentifier(seriesidentifier);<br />
<br />
//Create the query. The row value must correlate with the data set row value<br />
<br />
var qry = QueryImpl.create("if((row[\"TierID\"] +\"_\" + row[\"TraceType\"] ) == " +"\"" + seriesidentifier +"\""+")row[\"NTierEffectiveDeltaVal\"] ; else null;")<br />
<br />
<br />
as.getDataDefinition().add(qry)<br />
sdNew.getSeries().add( as );<br />
//Add the new series definition to the first y axis<br />
yAxis1.getSeriesDefinitions().add( sdNew );
Find more posts tagged with
Comments
There are no comments yet