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;
wb.Clear(0);
chart.ChartData.Categories.Clear();
chart.ChartData.Series.Clear();
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.