Jump to content
Software FX Community

Posting values from interactive chart with javascript


Recommended Posts

Hi all,

Using chartfx 6.2 for .net with Vs 2005 I am designing an interactive bar chart. while clicking on the interactive chart ,I want to open up new Asp window(belongs to other reporting application) by posting values from my form to Asp form.So please let me know how to openup new window by posting values(javascript) and also how to set the tooltip for each bar with the xaxis labels.

I would appreciate your help on this. 




Link to comment
Share on other sites

You need to set the Url property for the chart to a javascript function. For example:

chart.Link.Url = "javascript:MyFunction(%S,'%l')";

In this example, the function is receiving 2 parameters: the series index and the X-Axis label (assuming you have one).

You can use any "%" macro available in TipMask and PointLabelMask.

Your JavaScript will look something like this:


script language="javascript" type="text/javascript">


function MyFunction(seriesIndex, xAxisLabel)


  alert(seriesIndex.toString() + xAxisLabel);


// -->




Link to comment
Share on other sites


 Chrt_LREvsWPA.Link.Url =

"BLOCKED SCRIPTMyFunction('%l')"


<script language="javascript" type="text/javascript">

function MyFunction(d)





I tried as you told.

My chart page URL is http://localhost/EIA(LRE)Website/LRE/LREvsWPA.aspx  (FYI - attached the chart page)

When I click on one of the interactive bar of the chart. Logically it should give javascript alert, Instead it redirects or takes you to:(unavailable page)


you can clearly see in above url that (pls Compare and see above two URLS)

 Chrt_LREvsWPA.Link.Url = "BLOCKED SCRIPTMyFunction('%l')" 

 This  "BLOCKED SCRIPTMyFunction('%l')"  is called as a Page by  Chrt_LREvsWPA.Link.Url property .

Please let me know where I am going wrong.







Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...