Search code examples
tooltipstockanychart

Anystock comparisonMode same value in tooltip


When using a stock chart, I am using the comparisonMode with a date. The value displayed by the crosshair is correct, but the value in the tooltip is the real value (not compared). How could I display the compared value instead?

sample

As you can see on the picture, the compared value is 107.1 but the tooltip is displaying the actual value 893.5. I am using anychart 8.0.0


Solution

  • I'm glad to inform you that in the new version of AnyStock 8.1.0 the calculated change value is available right from the point information. It may be used in tooltips and legends. I guess this is exactly what you were looking for. The example of using this feature you may find on this link. Now the context of every point includes valueChange and valuePercentChange properties.