Pre loader

Make ChartTitle take no space in layout

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

Answered
0
0

Is there anyway to make the ChartTitle render, but take no space in the layout? I want to YAxis to extend up into the area of the ChartTitle.

Images
  • You must to post comments
Best Answer
0
0

Yes, there is. Don’t use a ChartTitle at all, instead place a TextAnnotation with CoordinateMode.Relative on the chart

<s:SciChartSurface>

    <s:SciChartSurface.XAxis>
        <s:NumericAxis/>
    </s:SciChartSurface.XAxis>

    <s:SciChartSurface.YAxis>
        <s:NumericAxis/>
    </s:SciChartSurface.YAxis>

    <s:SciChartSurface.Annotations>
        <s:TextAnnotation CoordinateMode="Relative" X1="0.02" Y1="0.02" FontSize="16" 
                            HorizontalAnchorPoint="Left" VerticalAnchorPoint="Top" Text="Hello World!"/>
    </s:SciChartSurface.Annotations >

</s:SciChartSurface>
  • 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