views:

138

answers:

1

i am using Asp.net Chart and showing bar chart. i used dataPoint.MapAreaAttributes to call a JS func(which retrieves the ID) to show next chart on click of a particular bar in the existing chart. but i am unable show hand pointer on mouse over the particular bar on the chart. And when i use Datapoint.Url which is changing the mouse pointer to hand on mouseover the bar but i am unable to call the JS func. So how to show Hand pointer on mouseover of a particular bar?

A: 

you can change the mousepointer with CSS. apply the CSS on the bars and you'll have what you want

cursor:hand

there are all the options: http://www.echoecho.com/csscursors.htm

Stefanvds
Thanks for quick reply. but where to place the class, in the series there is no cssclass property. when i placed css for the chart, the whole chart hand is implemented.
Yajuvendra
do you have an example how the HTML code looks for such a chart because i have no idea how it looks. what you could do is style the CSS hand with jquery selector. but that's not the best option
Stefanvds
<style type="text/css">.xlink {cursor:hand}</style>I have 2 Series, on mouseover of one series in the bar i need to show hand.when i assign css-xlink in <asp:Chart... hand is shown for the whole chart.but for Series there is no property as CssClass to assign this css.
Yajuvendra
what is the html for the whole page? can you update your question with that?
Stefanvds
<table> <tr> <td><asp:Chart ID="ClassPerformancechart" runat="server"> <Series> <asp:Series ChartArea="ChartClass" ></asp:Series> <asp:Series ChartArea="ChartClass" > </asp:Series></Series> <ChartAreas> <asp:ChartArea Name="ChartClass" Area3DStyle-Enable3D="true" > <AxisY Maximum="100" Minimum="0" Title="Score" ></AxisY> <AxisX Title="Class" > </AxisX> </asp:ChartArea> </ChartAreas> </asp:Chart> </td> </tr></table>
Yajuvendra
i ment the HTML you get in the browser :) and edit your question so the html will be styled.
Stefanvds
i got it.i just added href to my code and it worked.dataPoint.MapAreaAttributes = String.Format("onclick=""showClass({0})"" href=""#""""alt=""Show Report""", classid)Thanks for the support.
Yajuvendra