Pre loader

Tag: RenderContext

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


Is there any way to draw text at custom angle using RenderContext.DrawText?

For example, like in the picture below

Thanks in advance

0 votes

Hello again!
I’m working with creating labels on renderable series using renderContext.DrawText in overrided InternalDraw method. I had a problem: for example, if there are two renderable series with different series colors, all chars look good (see image 1). But if these renderable series have the same color, chars begin to render in strange way (see image 2).
How can I fix this bug?

P.S. It is only my suggestion, but is there some kind of cache that i need to clean?
I’ve attached project below.

  • Egor asked 8 years ago
  • last active 8 years ago
1 vote

Hello, everybody

I am working with drawing text in InternalDraw of FastLineRenderableSeries method.
I have got two questions:

1) When I am changing FontSize dynamically, I get this picture (img 1). How can I fix this problem? P.S. this problem starts to appear when I display two or more renderable series.

2) Is there any method or simple way to get all visible points from FastLineRenderableSeries?
Thanks in advance

1 vote

Have a good day!

I’m working with render context in modifiers. I have this code snippet:

public override void OnParentSurfaceRendered(SciChartRenderedMessage e)
            if (Mouse.LeftButton == MouseButtonState.Pressed&&IsEnabled)
                if (ParentSurface == null) return;
                var yCalc = ParentSurface.YAxes.GetAxisById(TextOfYAxis);
                var startTVD = yCalc.GetDataValue(StartPoint.Y);
                var finalTVD = yCalc.GetDataValue(CurrentPoint.Y);
                var deltaTVD = Math.Round((double) finalTVD - (double) startTVD);
                var pen = e.RenderContext.CreatePen(Colors.Red,true,1);
                var brush = e.RenderContext.CreateBrush(Colors.Red);
                e.RenderContext.DrawLine(pen, StartPoint, new Point(StartPoint.X, CurrentPoint.Y));
                e.RenderContext.DrawEllipse(pen, brush, StartPoint, 4, 4);
                e.RenderContext.DrawEllipse(pen,brush,new Point(StartPoint.X,CurrentPoint.Y),2,2);
                    new Rect(new Point(CurrentPoint.X - 20, CurrentPoint.Y - 20), new Size(100, 30)), Colors.Red, 10,
                    "Delta TVD:" + Math.Round(Geomodel.DeltaTVD + deltaTVD, 2));

My aim is to place rectangle below line series.
Is there any way to work with z-index of such method of drawing?

1 vote

Hi there,

I am currently evaluating SciChart for use within a new piece of software we are developing. One important feature that we need to provide is to be able to draw a polygon and determine which points are contained within it. Then the colour, visibility, etc of these points can be changed. I can see from your documentation that this could be achieved by creating a custom chart modifier to draw lines that make up the shape and then implement my own algorithm to determine which points are contained within it. Before I embark on this route, could you tell me if I have missed any implementation that already exists? Will the drawn polygon zoom and pan with the graph, therefore enclosing the same points?

Kind Regards,


1 vote

Is there any possibility to draw Bands only for special days, like Saturday, Sunday, BankHolidays… ?

  • Jan Kaiser asked 10 years ago
  • last active 9 years ago
Showing 6 results