Free Support Forum -

Three axis charts

I would like to know how I would be able to go about editing the chart that I have attached and as i am evaluating the program to see if it meets all the needs so far all of these needs are met would like to know if this is possible.

I have worked out how to edit the charts but would really like to know how i can make both axis the same size the ones on the left and right

Hi Priyesh,

Thanks for your interest in Aspose.Slides.

I like to share that you can customize the value axis units for the charts. Please use the following sample code to serve the purpose. Please share, if I may help you further in this regard.

public static void changeAxisUnits()
String path = @“D:\Aspose Data”;

PresentationEx pres = new PresentationEx(path + “Test.pptx”);

SlideEx slide = pres.Slides[0];

ChartEx chart = (ChartEx)slide.Shapes[0];

chart.SecondValueAxis.IsAutomaticMajorUnit = false;
chart.SecondValueAxis.IsAutomaticMaxValue = false;
chart.SecondValueAxis.IsAutomaticMinorUnit = false;
chart.SecondValueAxis.IsAutomaticMinValue = false;

chart.SecondValueAxis.MaxValue = 5f;
chart.SecondValueAxis.MinValue = 0f;
chart.SecondValueAxis.MinorUnit = 0.1f;
chart.SecondValueAxis.MajorUnit = 0.5f;

pres.Save(path + “TestModified.pptx”, Aspose.Slides.Export.SaveFormat.Pptx);

Many Thanks,