Knowledgebase
Chart serialization
Posted by Admin - on 07 February 2019 03:02 PM

SciChart supports serialization of the chart settings to XML. This is useful if you wish to persist a chart configuration and restore it.

XML serialization is supported by implementing of the IXmlSerializable interface. This means that each serializable type has 2 implemented methods of this interface:

public virtual void WriteXml (XmlWriter writer)
{
    // Here we serialize properties we want to XmlWriter
}

public void ReadXml (XmlReader reader)
{
    // Here we reading and restoring state of properties from XmlReader
}

IXmlSerializable has also definition of GetSchema() method but this method should not be used.

Further Reading

Please take a look at this documentation article to learn more about serialization in SciChart and see an example. Also it is worth to mention that the Printing / Export in SciChart relies on the chart serialization mechanism.

(3 vote(s))
Helpful
Not helpful

CONTACT US

Not sure where to start? Contact us, we are happy to help!


CONTACT US

SciChart Ltd, 16 Beaufort Court, Admirals Way, Docklands, London, E14 9XL. Email: Legal Company Number: 07430048, VAT Number: 101957725