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

Free Support Forum - aspose.com

Change min/max values of map chart legend

Is it possible to change the min and max values of the legend (coloring) of the map chart?

In PowerPoint one can edit these values as seen in the picture.

image.png (6.1 KB)

        Presentation Presentation = new Presentation(AppDomain.CurrentDomain.BaseDirectory + "\\Assets\\Charts\\Chart16.pptx");

        ISlide slide = Presentation.Slides[0];

        var shapes = slide.Shapes;

        var chart = shapes.Where(s => s.Name == "MapChart").First() as Aspose.Slides.Charts.IChart;

        Aspose.Slides.Charts.IChartDataWorkbook wb = chart.ChartData.ChartDataWorkbook;



        chart.ChartData.Series.Add("", Aspose.Slides.Charts.ChartType.Map);

        chart.ChartData.Categories.Add(wb.GetCell(0, 1, 0, "Canada"));
        chart.ChartData.Series[0].DataPoints.AddDataPointForMapSeries(wb.GetCell(0, 1, 1, 30));

        chart.ChartData.Categories.Add(wb.GetCell(0, 2, 0, "Germany"));
        chart.ChartData.Series[0].DataPoints.AddDataPointForMapSeries(wb.GetCell(0, 2, 1, 15));

        chart.ChartData.Categories.Add(wb.GetCell(0, 3, 0, "France"));
        chart.ChartData.Series[0].DataPoints.AddDataPointForMapSeries(wb.GetCell(0, 3, 1, 10));

Thank you.

Thank you for the query. I will answer you as soon as possible.

Unfortunately, Aspose.Slides does not yet provide such an option. I added a ticket with ID SLIDESNET-42683 in our tracking system. Our development team will consider a possibility to implement this feature. You will be notified when this option is added to Aspose.Slides.