We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Font Size in CategoryAxis or ValueAxis of ChartEx

How do you set the font size in either the CategoryAxis or the ValueAxis of ChartEx?

Hi David,


I have observed your requirement and regret to share that this property is currently unenviable in Aspose.Slides for .NET presently. However, an issue with ID SLIDESNET-33191 has already been added in our issue tracking system to further investigate the possibility of implementing the said feature. This thread has been linked with the issue so that you may be notified accordingly once the issue will be resolved.

We are sorry for your inconvenience,

The issues you have found earlier (filed as SLIDESNET-33191) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.
(12)

Dear,


Can you please provide a code snipped for changing the font size in CategoryAxis and ValueAxis in a PercentStackedColumn3D chart.

Thank you so much,
Sami Simon

Hi Sami,

Please use the code snippet given below to serve the purpose. Please share, if I may help you further in this regard.
PresentationEx srcPres = new PresentationEx();

SlideEx slide=srcPres .Slides [0];

ChartEx chart=slide.Shapes.AddChart (ChartTypeEx.ClusteredColumn,0,0,400,300);

//Setting value axis

TextFrameEx tf = chart.ValueAxis.TextProperties;

PortionFormatEx port = tf.Paragraphs[0].ParagraphFormat.DefaultPortionFormat;

//Set the Font for the Portion

port.LatinFont = new FontDataEx("Times New Roman");

//Set Bold property of the Font

port.FontBold = NullableBool.True;

//Set Italic property of the Font

port.FontItalic = NullableBool.True;

//Set the Height of the Font

port.FontHeight = 15;

//Set the color of the Font

port.FillFormat.FillType = FillTypeEx.Solid;

port.FillFormat.SolidFillColor.Color = Color.Blue;


//Now Setting Category Axis

tf = chart.CategoryAxis.TextProperties;

port = tf.Paragraphs[0].ParagraphFormat.DefaultPortionFormat;

//Set the Font for the Portion

port.LatinFont = new FontDataEx("Times New Roman");

//Set Bold property of the Font

port.FontBold = NullableBool.True;

//Set Italic property of the Font

port.FontItalic = NullableBool.True;

//Set the Height of the Font

port.FontHeight = 15;

//Set the color of the Font

port.FillFormat.FillType = FillTypeEx.Solid;

port.FillFormat.SolidFillColor.Color = Color.Blue;

if (chart.HasLegend)

chart.HasLegend = false;

srcPres.Save("D:\\Aspose Data\\Presentation4.pptx", Aspose.Slides.Export.SaveFormat.Pptx);


Many Thanks,