Pre loader

Adding Current X-Axis Value to CustomChartmodifier

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

0
0

Hi Daniel,

The following code will place a label on the Axis:

var axisCanvas = axisBase.ModifierAxisCanvas;
var uiElement = new TextBlock() { Text = "Hello World!" } ;
Canvas.SetLeft(uiElement, 100); 
Canvas.SetTop(uiElement, 10); 
axisCanvas.Children.Add(element);

Please be sure in custom modifiers to clear out labels that are no longer used when ChartModifierBase.OnDetached() is called!

Best regards,
Andrew

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies