I'm adding a chart to a MigraDoc Document:
Code:
Chart chart = new Chart();
chart.Left = 0;
chart.Width = Unit.FromCentimeter(16);
chart.Height = Unit.FromCentimeter(12);
Series series = chart.SeriesCollection.AddSeries();
series.ChartType = ChartType.Column2D;
series.Add(0.13, 0.01, 0.49, 0.10, 0.57, 0.19);
series.HasDataLabel = true;
XSeries xseries = chart.XValues.AddXSeries();
xseries.Add(/* some strings */);
chart.XAxis.MajorTickMark = TickMarkType.Outside;
chart.YAxis.MajorTickMark = TickMarkType.Outside;
chart.YAxis.HasMajorGridlines = true;
section.Add(chart);
I would like to have the data labels and y-axis labels on the chart formatted as percents. I attached a picture of what I want to see.
How do I:
1) Format the data labels as percents?
2) Format the y-axis labels as percents?
3) Move the data labels on top of the columns instead of inside of them?