Pre loader

Tag: ExportToBitmapSource

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
631 views

Hi,
I’ve got some questions to expand on this topic: https://www.scichart.com/questions/js/how-do-you-export-or-save-a-chart-as-an-image-in-js-library

1) Can you export areas of a chart that are not visible on the screen? I have a large line chart, like a seismograph, that is never fully displayed on the screen because it is too long.

2) Can you export from a chart that is not visible on the screen?

Thank you

  • max keirn asked 2 months ago
  • last active 1 month ago
0 votes
12k views

SciChart supports exporting to BitmapSource at a specific size, however, this feature does not work for us because we are using custom types for our chart annotations, and we get the following error:

“Please be advised that SciChart doesn’t handle serialization of objects with properties of interface type, collection type or custom type. You need to implement IXmlSerializable in such objects to have them handled properly.”

We haven’t found any example of how to implement IXmlSerializable in on custom type, and were wondering if some guidelines about what is needed to implement that interface could be provided.

The custom type that we are using is an AnnotatedPointMarker, which inherits the sci chart interface IPointMarker. It consists on a square, marking a data point, plus a text annotation on top, and a small line joining the square and the text.

  • malú Diaz asked 3 years ago
  • last active 3 years ago
1 vote
11k views

Hi,

After updating to 5.2.1.11757, all axis labels are missing when exporting graph using SciChartSurface.ExportToBitmapSource(true, size). Reverting back to 5.2.0.11680 solves the issue.

Thanks,
Kawai

  • Kawai Lo asked 6 years ago
  • last active 6 years ago
0 votes
0 answers
14k views

Hi,

When using the SciChartSurface.ExportToBitmapSource(useXamlRenderSurface: true) to export graph at large size for printing (e.g. at 600 DPI, when the screen is at 96 DPI), the grid lines and axis tick lines do not scale, and point markers are missing. Text, StrokeThickness of line series and legends are shown correctly.

Is it an issue in the renderer? Or is there any setting for the renderer to render them correctly?

Params of the attached graph:

LineSeriesStyle.StrokeThickness = 2,

MajorTickLineStyle.StrokeThickness = 1,
MinorTickLineStyle.StrokeThickness = 1,
MajorGridLineStyle.StrokeThickness = 1,

EllipsePointMarker.StrokeThickness = 1, Width = 6, Height = 6

Thanks,
Kawai

Showing 4 results