Profile Picture

Chart DataPoint Labels and Gridline Spacing

Posted By Daniel Brookes 14 Years Ago
Author
Message
Daniel Brookes
Posted 14 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)

Group: Forum Members
Last Active: 12 Years Ago
Posts: 4, Visits: 1
Hello Support,

Sorry for the reply to your post, I have been tied up with other things until today.

Thank you very much for your replys, both are exactly what I needed. I've sorted the Data Labels on mousover, the examples included are superb.

I am struggling a bit with the Grid but I think I just need to persevere a bit more and am learning as I go.

Thanks Again!


Nevron Support
Posted 14 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009
Hello Daniel,

Regarding the first question - there is no built-in functionality that shows / hides the data label when the mouse is over a data point. To implement this you have to track the mouse move event and show or hide the data labels manually. You can take a look at the following examples in our Windows Forms demo application:

All Examples > Interactivity > Mouse Events > Tracking Mouse Events
All Examples > Panels > Chart > Series Attributes > Data Labels



Regarding Major Gridlines - In general the density of major axis ticks and gridlines is controlled through the MajorTickMode property of the axis scale configurator. The default mode is AutoMinDistance - it doesn't allow the distance between two ticks to be less then some specified value (in view coordinates). You may also find useful the AutoMaxCount mode - in this mode the value of the MaxTickCount property is regarded. The axis generates as much ticks as possible without exceeding MaxTickCount.

In both modes it is not possible to specify the exact number of ticks/gridlines, because this number depends on other factors like tick rounding, calculated step base value, etc.



Best Regards,
Nevron Support Team



Daniel Brookes
crazy Posted 14 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)

Group: Forum Members
Last Active: 12 Years Ago
Posts: 4, Visits: 1
Hello,

I am struggling to find out how I can create Labels for my DataPoints which appear when you hover over the points.

I've tried setting my series to SeriesLegendMode.DataPoints, which shows the Tooltip text for each DataPoint but it is perminantly displayed. Is there a way that I can show the DataPoint Labels when the user mouses over a DataPoint only?

Also, whats the best way to set the "Major Grid" spacing (sorry, I dont have access to my source code at the moment as I am at work). I have my graph displaying Gridlines, the Y Axis is configured with a starting value of 0, ending value of 100 (the DataPoint value is always a Percent).

Gridlines are displayed every 10 on the Y Axis, the Gridlines for the X Axis are also displayed every 10 points. The problem is this means if there is less than 10 DataPoints on the Graph there are no gridlines on X.

I think this is because I am setting the scale for the Y axis to start at 0 and end at 100, but for the X axis the scale varies depending on the data returned. So if there are only 10 DataPoints to add to the graph, I will only see one Gridline on the X Axis. Whereas if there were 100 I would see what I want to achieve, 10 Gridlines on the X Axis.

Is there a way I can configure gridlines for both the X and Y Axis which appear a defined number of times regardless of the number of DataPoints?

Basically I am trying to acheive the attached (this isnt a Nevron Chart I have taken a screenshot from as I am at work, but its what I would like to acheive).

Sorry if this has been asked before but I'm having trouble searching because I am not 100% sure what to search for, but I've read through loads of threads with no joy.




Attachments
Capture.PNG (50 views, 14.00 KB)


Similar Topics


Reading This Topic