SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components

Welcome to the SciChart Community Forums!

Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy. We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!

Please note: SciChart team will only answer questions from customers with active support subscriptions. Expired support questions will be ignored. If your support status shows incorrectly, contact us and we will be glad to help.

0
0

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

  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.