Pre loader

Tag: InternalDraw

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 votes
0 answers
8k views

Hello again!
I’m working with changing font properties. I have two questions:

1) Is there any way to apply such properties as FontWeight (Bold), FontStyle (UnderLine, Italic) to the text drawn in InternalDraw method (renderContext.DrawText)?

2) Also I’m using horizontalLineAnnotation with AnnotationLabels. I need to change the same properties as in the question above to the text in AnnotationLabel in code behind. Here is the code snippet to change FontWeight:

var tempAnnotationLabel = new AnnotationLabel
                {
                    Text = fluidValue.Name,
                    LabelPlacement = LabelPlacement.TopLeft,
                    FontSize = 11,
                    FontWeight = FontWeights.Bold,
                };

But when I’m displaying this horizontalLineAnnotation, FontWeight is the same as before. How can I do this?

Thanks in advance

0 votes
9k views

Hi, I’m overriding FastBubbleRenderableeSeries.InternalDraw. I recently upgraded to SciChart 4 and now some of my code throws a KeyNotFoundException.

The following code, inside InternalDraw(..), results in a KeyNotFoundException.

The contents of ZPoints at the time are 0.01, 0.01.

   var points = (XyzPointSeries)renderPassData.PointSeries;

                if (points.Count == 0)
                {
                    return;
                }

                var maxZ = (double)points.ZPoints.GetMaximum();    <---- exception thrown

Am I doing something wrong? How can I get the maximum Z value?

Cheers
Felix

  • F W asked 8 years ago
  • last active 8 years ago
Showing 2 results

Try SciChart Today

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

Start TrialCase Studies