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!

0
0

When chart title is longer than available space, title string is cut from both the sides. Is it possible to set it to left aligned and/or wrap when title is longer that available space?

Please check the attached image.

In Image “Mass Calibration Check…” is displayed as “ss Calibration check…”

Images
  • You must to post comments
0
0

Hi Manish,

Yes, this is possible via a simple workaround. You could re-template the control, but I wouldn’t recommend doing that (it leads to maintenance issues). Another, simpler way is to subscribe to SciChartSurface.Loaded and add this code in the handler to update the properties of the Title textblock:

        private void OnLoaded(object sender, RoutedEventArgs routedEventArgs)
        {
            var root = (sciChart.RootGrid as Grid);
            var title = root.Children.OfType<TextBlock>().First();

            title.TextWrapping = TextWrapping.Wrap;
            title.HorizontalAlignment = HorizontalAlignment.Left;
            title.TextAlignment = TextAlignment.Left;
        }

This results in the following (see attached image).

FYI you may be interested to learn that v1.5.5.1888 is out which includes the UnsortedDataSeries which your team has requested. A demo of UnsortedDataSeries can be found by going to our examples suite -> Oscilloscope and selecting Lissajous as Data Source.

Best regards,
Andrew

Images
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.