I'm trying to set up some cross hairs showing the x, y values at the mouse cursor, but on barcharts I don't get the same hittest values as on the axis label.How would I go about doing this correctly, should I treat bar charts differently?
Hi David,
I am experiencing a similar issue. I have a line chart with dates on x- axis. I want to track the mouse move and display the x-axis date and y-axis value anywhere on the chart. I tried using hittest xvalue and yvalue. But xvalue is returning the point location and not the label. I tried using datapoint.label, but that just returns the labels for a valid data point and not any point on chart.
Please advise.
sorry, we don't have this feature right now. you can submit a feature request here: http://devcenter.infragistics.com/protected/requestfeature.aspx
my recommendation to handle this problem using the current version is to create a composite chart with 2 line layers and 2 y-axes.
hi...is it possible to break the y axis as we do in excel so that I can display both small and high values clearly??
sorry, i see now why my last response wasn't too helpful. after some investigation i found that this is a bug in the control. i entered as bug # BR34349. it will be resolved in a future hotfix.
the problem is, the bar chart is configured backwards -- that is, the X axis is using ordinal calculations and so internally it seems to range from 0 to numberOfDataPoints + 1. the Y axis ranges from 0 to maximumDataValue, but the maximum might be rounded up.
David Negley"] i think what you need to do is round to the nearest integer, then get the point back from your datasource using that value as an index
I already know this and it works fine on column charts, please have a look at my bar chart (on the right) and give me and exampleof how you would translate any of the X or Y values to an index.
<SERIES> <VALUE X="100" Y="0.1"/> <VALUE X="120" Y="0.2"/> <VALUE X="140" Y="0.3"/> <VALUE X="160" Y="0.4"/> <VALUE X="180" Y="0.5"/> <VALUE X="200" Y="0.6"/> <VALUE X="220" Y="0.7"/> </SERIES>