xceedsoftware / DocX

Fast and easy to use .NET library that creates or modifies Microsoft Word files without installing Word.
Other
1.76k stars 470 forks source link

Xceed.Document.NET.BarChart #438

Open deychandan opened 2 years ago

deychandan commented 2 years ago

How can I set custom y Axis scale value in bar chart. In my graph I want to change my scale 0 to 100 instead 1 to 120. And also want the scale like (0,10,20,30, ... 100) Is it possible?

image

Thanks Chandan

XceedBoucherS commented 2 years ago

Hi,

In the Plus version of DocX (called Xceed Words for .NET, available for free for 15 days here: https://xceed.com/en/our-products/product/words-for-net), you can do it this way: c.ValueAxis.Min = 0; c.ValueAxis.Max = 100; c.ValueAxis.MajorTickMarksUnits = 10;

Thank you