cancel
Showing results for 
Search instead for 
Did you mean: 

BarChart (iChart) + Pen Number

former_member201407
Participant
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

jcgood25
Active Contributor
0 Kudos

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.

former_member201407
Participant
0 Kudos

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

agentry_src
Active Contributor
0 Kudos

Hi Som,

Please open a new question and mark this one answered.

Regards, Mike (moderator)

jcgood25
Active Contributor
0 Kudos

Compare the name of your function and the one referenced in the applet tags.  As Mike suggested, it is best to keep threads focused on one problem at a time.

Answers (0)