Skip to content

Commit fb9e0b7

Browse files
authored
Merge pull request #1842 from syncfusion-content/868251-DisplayUnit-XlsIO
868251- Add DisplayUnit for Primary value Axis - Hotfix
2 parents 34af6ed + 44f4848 commit fb9e0b7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

File-Formats/XlsIO/Working-with-Charts.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,9 @@ chart.PrimaryValueAxis.MaximumValue = 14.0;
455455

456456
//Number format for axis
457457
chart.PrimaryValueAxis.NumberFormat = "0.0";
458+
459+
//Display unit for axis
460+
chart.PrimaryValueAxis.DisplayUnit = ExcelChartDisplayUnit.Hundreds;
458461
{% endhighlight %}
459462

460463
{% highlight c# tabtitle="C# [Windows-specific]" %}
@@ -469,6 +472,9 @@ chart.PrimaryValueAxis.MaximumValue = 14.0;
469472

470473
//Number format for axis
471474
chart.PrimaryValueAxis.NumberFormat = "0.0";
475+
476+
//Display unit for axis
477+
chart.PrimaryValueAxis.DisplayUnit = ExcelChartDisplayUnit.Hundreds;
472478
{% endhighlight %}
473479

474480
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
@@ -483,6 +489,9 @@ chart.PrimaryValueAxis.MaximumValue = 14.0
483489

484490
'Number format for axis
485491
chart.PrimaryValueAxis.NumberFormat = "0.0"
492+
493+
'Display unit for axis
494+
chart.PrimaryValueAxis.DisplayUnit = ExcelChartDisplayUnit.Hundreds
486495
{% endhighlight %}
487496
{% endtabs %}
488497

0 commit comments

Comments
 (0)