Can you tell me if there is a way to set the font size on the second y axis of a chart created in Aspose.Slides?
I can set the primary y axis text size with this code:
ch.ValueAxis.TextProperties.Paragraphs.ParagraphFormat.DefaultPortionFormat.FontHeight = 10;
But this code results in an 'Object reference not set to instance of an object' error:
ch.SecondValueAxis.TextProperties.Paragraphs.ParagraphFormat.DefaultPortionFormat.FontHeight = 10;
I would also like to format the second axis to show percentage values, from another post on this forum i tried to use this piece of code but it had no effect, can you tell me what I should do instead?
ch.SecondValueAxis.NumberFormat = "0.0%";