Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 2nd, 2012  |  syntax: None  |  size: 0.50 KB  |  hits: 43  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Open a new window using MapAreaAttributes in microsoft chart control
  2. series.MapAreaAttributes= "target='_blank'";
  3.        
  4. Chart1.Series["MySeries"].Points[0].Url = "javascript:void(0)"; //this is just to tell the browser not follow a URL, since you will control this with your javascript
  5.  
  6. Chart1.Series["MySeries"].Points[0].MapAreaAttributes = "onclick="OpenWindow();""; //this is to set the onclick attribute to fire your javascript function when the user clicks your column.
  7.        
  8. "onclick='OpenWindow();'";