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 know you are all very busy, but hope you can find some short time just for a simple help (I think đŸ™‚

How do you think I could set the style of this three annotations that I create manually ? The box for example is totally invisible after I create it , and the Vertical and Horizontal line are small lines , so I think this is related to styles.
On creation the style is set in the AnnotationCreationModifier .
I even tried to set the style there when adding to the annotations collection đŸ™‚
any ideas?

thank you very much

  • You must to post comments
0
0

Hello Marcel,

Quick tips:

  1. Please, ensure whether you set HorizontalAlignment (Left by default, so line will be docked to left side), I think you need HorizontalAlignment = “Stretch”

  2. Please, check if X1,X2,Y1,Y2 properties have valid values assigned.

  3. Try to use object initializer syntax:

HorizontalLineAnnotation a = new HorizontalLineAnnotation
{
X1 = (double) b.X1 + 100,
X2 = (double) b.X2 + 100,
Y1 = (double) b.Y1 + 1,
Y2 = (double) b.Y2 + 1,
YAxisId = b.YAxisId};

Hope this will help!

Best regards,
Yuriy

  • Marcel
    Good morning Yuriy, thank you for your reply,yes it helps , I was looking for a style property and didnt realized those properties were directly in the object itself :)thank you and have a nice day
  • Yuriy
    Thanks Marcel,You are welcome - we are glad to help!Best regards, Yuriy
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.