Hi
i have XamDataChart with NumericYAxis.
the values in the axis are linear.
i have request to show grid lines that their size changing relative to the values.
for example :between 0.5 to 1 the height of the line will be 30 cm and between 1 to 2 it will be 20 cm.
i need to manage some logic the control this grid line that if the values is bigger in the axis the gird lines less dense.
Thanks
Hello Tomer,
Thank you for your update on this matter.
I have been researching into this requirement a bit further, and unfortunately it is not possible to control the thickness of the gridlines individually. I am curious if you are looking to achieve the “matrix” type of gridlines that you are showing there too though, at which point I think my recommendation would become something completely different.
The reason this would become something completely different is because there does not exist a way to have a gridline traverse only part of the plot area, so the “inner gridlines” in your screenshot would not be possible with the built-in gridlines of the axes of the chart. Instead, I think I would recommend utilizing a ScatterPolylineSeries, which you can read about here: https://ko.infragistics.com/help/wpf/datachart-scatter-polyline-series.
Note, the individual lines of the ScatterPolylineSeries cannot be individually customized by thickness either, but if you were to put together a series per thickness that you are looking for, I believe you should be able to achieve your requirement that way.
Please let me know if you have any other questions or concerns on this matter.
indeed, i want to control the size of the grid lines like it is attached in the screenshot
My team and I have done an initial review of this post, and would it be possible for you to please provide a screenshot or mockup of what you are looking to achieve in this case? I am under the impression that you are looking to change the size of the gridlines of the chart’s plot area depending on the values of those gridlines, but it sounds like you are intending to have them be rather large, so a sample screenshot or mockup might help us to make a better recommendation in this case.