Hi everyone,
I am creating a scatter series on which my x-axis and y-axis both have range from -5 to 5. I need Major stroke lines visible but need to make more highlight (darker) the line which is at "0" for both axis? Please suggest.
Hello,
Thank you for your post. I have been looking into it and I created a sample project for you with the functionality you want. Basically I created DataTemplates for the Labels of the Axes, where I put TextBlock and Border. I also used Converter in order to make the Border at 0 darker than the others. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.
Hello Stefan,
Thank you for your feedback. I am sorry if I could not explain my requirements properly. Basically I don't want to highlight point on x-Axis. I want to highlight MajorStroke line on Layout Area of the chart. I have attached a sample screen shot what I need.
Yes, I achieved my goal using your proposed solution. Thank you.
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
Thanks again.
Dear Stefan,
I have a requirements that these Overlay lines (0 Axis Tick) must come at center of layout area (chart) like this
so I tried to manually set Axis Minimum, Maximum and Interval values such that these Overlay lines (at 0) come at the center of Layout area but could not succeed.:
I have updated your sample code to depicts this problem.
http://sdrv.ms/1fohAEG
Any thoughts how can I acheive this? Thanks again.
I have been looking into the sample and I modified it, so now it has the functionality you want. Basically I bound the ValueOverlay's Value to the ActualWidth for the vertical line and ActualHeight for the horizontal line and used Converters in order to calculate the values. Please let me know if this helps you or you need further assistance on this matter.
Thank you for your response. Basically I need both Axis "0" must also come at center along with ValueOverlay. I actually want to create a SQUARE area with same min & max value for both (X & Y) axis and need that both axis have 0 at center. Let me give you an example, If I set Min = -7 and Max = 7 and then set Interval = 2 so I want only 7 tick marks on Axis and 0 should come at center along with ValueOverlay.
I really appreciate your response.
Thanks,
M. Irfan
Hello again,
I can say that currently you are not able to set a label for the ValueOverlay, if there isn't one at zero. If you want a zero to be placed at the center of the axis you should set appropriate min, max and interval values. If you set Min and Max to -6 and 6 and interval 2, you will have zero at center and the value overlays will be at center as well, using the approach I suggested you previously. As for a label for the value overlay, you can suggest new product idea for future versions (or vote for existing ones) at http://ideas.infragistics.com.
There are many benefits to submitting an product idea:
- Direct communication with our product management team regarding your product idea.
- Notifications whenever new information regarding your idea becomes available.
- Ability to vote on your favorite product ideas to let us know which ones are the most important to you. You will have ten votes for this and can change which ideas you are voting for at any time.
- Allow you to shape the future of our products by requesting new controls and products altogether.
- You and other developers can discuss existing product ideas with members of our Product Management team.
Steps to create your idea:
The Product Idea site puts you in the driver’s seat and allows you to track the progress of your ideas at any time, see how many votes it got, read comments from other developers in the community, and see if someone from the product team has additional questions for you.