Category / Section
How to change text in axis element builder in ASP.NET WebForms?
1 min read
In order to change the label text in AxisElementBuilder from "Series" and "Categorical" to "Row" and "Column", you can use the following code example at the sample level.
C#
this.OlapClient1.OlapClientLayout.CategorialAxisHeaderText.Text = "Column"; this.OlapClient1.OlapClientLayout.SeriesAxisHeaderText.Text = "Row";
VB
Me.OlapClient1.OlapClientLayout.CategorialAxisHeaderText.Text = "Column"Me.OlapClient1.OlapClientLayout.SeriesAxisHeaderText.Text = "Row"
As an alternate solution, you can change the label text through the script as well. Refer to the following code example.
JS
<script type="text/javascript"> $(document).ready(function () { $(".headertext:contains('Categorical')").text("Columns"); $(".headertext:contains('Series')").text("Rows"); $(".headertext:contains('Slicer')").text("Filters"); }); </script>