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.
I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.
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