Hello,
I am creating a chart for stock exchange data and there is a problem i can't solve for a few days already.
I have custom triangle and pyramid markers for ask and bid offers. They are positioned on the opposite side of Y-axis zero and work great until the distance from 0 become less than some value (close to 0). In such cases, they overlap and form a hexagon star-looking figure. What i need to make sure that pyramid's (bid, below 0 on Y) origin is its top corner, and for triangle everything is vice versa, i.e. origin is the bottom corner as it shows ask, always above 0 on Y.
I tried creating a rectangular template so the marker itself would occupy top/bottom half and it worked for triangle (ask) but doesn't work for pyramid (bid): legend and tooltip both loose the marker picture (that's clear why) and tooltip become visible when mouse is not exactly over the marker.
I assume the reason for the above is that all markers are aligned to center both on X and Y during layout phase so I need a way to amend that alignment.
Thanks, Alex
Hi Alex,
I'm having trouble following what the issue is. Can you provide a screenshot that shows the issue? This will help me understand it better.
This what I was looking for. Both markers has underlying value of 0, the difference should've been in the alignment.
\/ 0 --------- /\
By default, i was something like this:
0 ---><---
I have found two solutions for this problem, both are based on using RenderTransform set to Translate.
If set to marker, such approach ruins the legend.
If set to ScatterSeries, works almost as expected but it looks as scroll performance degradates.
So i wonder if there is any better solution.