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
2010-08-23 06:06:16
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
2010-08-23 06:18:00
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
2010-08-23 06:19:55
<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
2010-08-23 06:27:33
what is the html for the whole page? can you update your question with that?
Stefanvds
2010-08-23 06:37:30
<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
2010-08-23 06:41:24
i ment the HTML you get in the browser :) and edit your question so the html will be styled.
Stefanvds
2010-08-23 08:08:27
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
2010-08-23 08:27:11