on 08-09-2012 11:39 AM
Hi Experts,
Need one help. We are using one Bar Chart. And we are using
function getIndividual()
{
var pen = document.APP_ShowLoginStat.getChartObject().getSelectedPen(); // this is to get the pen number of the selected bar
alert(pen);
alert(document.APP_ShowLoginStat.getChartObject().getTagName(pen)); // this is to get the label name/tag name based on pen number
}
to get the selected Pen number (bar). But this is showing always '1' for all bars in one bar chart. Please see below the image (Also please the outlined red color in both images
1st bar is blue which is expected to have pen number as '1', but 2nd bar or next bars are showing same pen number as '1'
Even we noticed that the Quick Info Text (Outlined red color in above images) is showing '1' in middle of the text for all bar when cursur is placed on the bar.
Could anybody have idea how to get corresponding pen number when this is selected?
Please note: we are using MII version : 12.2.3 Build(182)
Regards
Som
I believe the methods you are using are tied to the legend, not necessarily the bar itself. Look in the online help documents for methods like getLastSelectedTag() and getLastSelectedPoint(), and I think you'll be able to figure out what you are looking for. Leveraging the ChartSelectionEvent or ChartDoubleClickEvent is the way to go for things like drill down, etc.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks a lot Jeremy.
The method getLastSelectedTag() works for us to get the selected tag with event trigger - ChartDoubleClickEvent
Now facing another issue : When we are trying to call a function which will open a pop-up (Modal Dialog) from the ChartDoubleClickEvent event trigger, this is always throwing Error : "Object doesn't support this property or method"
please see below the Applet, which is calling the function getPopup() on the event trigger of ChartDoubleClickEvent
<APPLET NAME="APP_ShowLoginStat" CODEBASE="/XMII/Classes" CODE="iChart" ARCHIVE="illum8.zip" WIDTH="800" HEIGHT="300" TABINDEX=1 MAYSCRIPT>
<PARAM NAME="QueryTemplate" VALUE="Automated Dashboard/Query Template/XAC_GetLoginStats">
<PARAM NAME="DisplayTemplate" VALUE="Automated Dashboard/Display Template/CHA_DisplayLoginStats">
<PARAM NAME="Param.1" VALUE="{Duration}">
<PARAM NAME="ChartDoubleClickEvent" VALUE="getPopup">
</APPLET>
Code of function is given below :
function openPopup()
{
var strURL = "www.google.com";
window.showModalDialog(strURL, null ,"dialogWidth:1050px;dialogHeight:600px;center:yes");
}
When we execute above codes, this is always throwing error : Object doesn't support this property or method
Did we miss anything? Or is this so that only this event does not work for opening pop-up window?
Regards
Som
User | Count |
---|---|
11 | |
6 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.