i have wpf app using xamchart . the property of show grid lines is true, but i need to paint cells in grid by condition so it will be in different color.
also regrading to interval i have control the width and height are different sizes.
i want that the created cell will be square even that the width and height are not the same.
thanks
Hello Yoni,
I would like to confirm if you are using XamChart or XamDataChart ? XamChart is no longer supported , you can use XamDataChart and i can help you for that.
Hi
i am using XamDataChart .
i will be happy for your help
If you are trying to have different colored gridlines based on your condition then you could use MajorStroke(MajorStroke="Gray">) on the axis property to set the color.
As for to create the 'cell' in the chart you could use the ScatterPolygonSeries, here is the help document for that:
https://ko.infragistics.com/help/wpf/datachart-scatter-polygon-series
Let me know if you have any question or concern on this matter.
HI, thanks for replying ,
i need that the cells that Intersection with my polygon will have different color , and not the entire grid by using major or minor stroke.
even if my polygon touch a little bit in cell it will have different color.
Thanks
Due to some issue with the public post images are not showing up , so could you please paste the image in the doc file and attach that doc . Also if you can share your sample and show what is the behavior you are getting and what is the behavior you are expecting then it good to follow your update.
Thank you.
cells.docx
Hi , i upload word doc with screenshot inside.
my will is the take all the cells (that create between the vertical and horizontal grid lines) that my polygon has overlapping and give them different color.
Tomer
Thank you for sharing the image. I discussed it with the team and looks like you have multiple polygon series and the area you want to have color is the part of the series, so you can use brush property to color them. That’s the only way I can think off to achieve your requirement if that wont help and you want to change the color of the gridline inside the series then we don’t have any property for that ,you can also set the different color outline to the series if that help.
And yes you are right by setting the major/minor stroke that will color the entire grid. We don’t have any property to color only part of grid line.