# Radzen Blazor Chart column description styling

**URL:** <https://forum.radzen.com/t/radzen-blazor-chart-column-description-styling/11484>\
**Category:** Radzen.Blazor Components\
**Created:** [August 8, 2022, 8:01am UTC](https://forum.radzen.com/t/radzen-blazor-chart-column-description-styling/11484 "2022-08-08T08:01:22Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ebcinar](https://forum.radzen.com/user_avatar/forum.radzen.com/ebcinar/32/5291_2.png) [@Ebcinar](https://forum.radzen.com/u/Ebcinar)\
**Post date:** [August 8, 2022, 8:01am UTC](https://forum.radzen.com/t/radzen-blazor-chart-column-description-styling/11484/1 "2022-08-08T08:01:22Z")

</div>

Hello i am using Radzen Chart Column component to display my data. I have a question. Is there any way to make it ?

 ![RadzenChart](https://forum.radzen.com/uploads/default/original/2X/c/c9f2293462bc71dd62e2b91cb62d6bfb80f4de12.png)

This is how my component looks like. Words under the bars are conflicts how can i change those stylings. I would like to see them vertical.

---

<div class="post-metadata">

**Author:** ![korchev](https://forum.radzen.com/user_avatar/forum.radzen.com/korchev/32/4_2.png) [@korchev](https://forum.radzen.com/u/korchev)\
**Post date:** [August 8, 2022, 3:01pm UTC](https://forum.radzen.com/t/radzen-blazor-chart-column-description-styling/11484/2 "2022-08-08T15:01:45Z")

</div>

Hi @Ebcinar,

Changing the display of the category values isn't currently supported. We plan to add the ability to rotate the labels via property.

---

<div class="post-metadata">

**Author:** ![korchev](https://forum.radzen.com/user_avatar/forum.radzen.com/korchev/32/4_2.png) [@korchev](https://forum.radzen.com/u/korchev)\
**Post date:** [August 8, 2022, 3:18pm UTC](https://forum.radzen.com/t/radzen-blazor-chart-column-description-styling/11484/3 "2022-08-08T15:18:09Z")

</div>

I've managed to rotate the labels by using the currently available API. Here is how:

```auto
<RadzenCategoryAxis>
    <RadzenTicks>
       <Template>
           <text class="rz-tick-text" style="text-anchor: start; transform: translate(@(context.X)px, @(context.Y + 10)px) rotate(45deg)">@context.Value</text>
       </Template>
    </RadzenTicks>
</RadzenCategoryAxis>

```

UPDATE: This is no longer needed. [Axis label rotation](https://blazor.radzen.com/chart-label-rotation) has been implemented since Radzen.Blazor 5.5.0.

---

<div class="post-metadata">

**Author:** ![Ebcinar](https://forum.radzen.com/user_avatar/forum.radzen.com/ebcinar/32/5291_2.png) [@Ebcinar](https://forum.radzen.com/u/Ebcinar)\
**Post date:** [August 8, 2022, 4:23pm UTC](https://forum.radzen.com/t/radzen-blazor-chart-column-description-styling/11484/4 "2022-08-08T16:23:35Z")

</div>

Hi i tried to add your code into mine but now thats look like this. Thank you for your effort. By the way i figured out something. Firstly it looks like the first photo and if i click anywhere, even i change the dpi it becomes the second one. Word's are not complete they are going out of component and second is just crashing.

 ![Cchart](https://forum.radzen.com/uploads/default/original/2X/a/a569f3cbc682f671d4feb3b28ef609dfb9c20551.png)

 ![ColumnChart](https://forum.radzen.com/uploads/default/original/2X/0/0d4323d1af471aa4c642d7b8100390e94e2551b0.png)

```auto
<RadzenChart>
                        <RadzenCategoryAxis>
                            <RadzenTicks>
                                <Template>
                                    <text class="rz-tick-text" style="text-anchor: start; transform: translate(@(context.X)px, @(context.Y + 10)px) rotate(45deg)">@context.Value</text>
                                </Template>
                            </RadzenTicks>
                        </RadzenCategoryAxis>
                        <RadzenColumnSeries Data="@DynamicBarData" CategoryProperty="Label" Title="Item" LineType="LineType.Dashed" ValueProperty="BarData" />
                        <RadzenColumnOptions Radius="5" />
                        <RadzenValueAxis>
                            <RadzenGridLines Visible="true" />
                            <RadzenAxisTitle Text="" />
                        </RadzenValueAxis>
                    </RadzenChart>

```

---

<div class="post-metadata">

**Author:** ![korchev](https://forum.radzen.com/user_avatar/forum.radzen.com/korchev/32/4_2.png) [@korchev](https://forum.radzen.com/u/korchev)\
**Post date:** [August 8, 2022, 4:25pm UTC](https://forum.radzen.com/t/radzen-blazor-chart-column-description-styling/11484/5 "2022-08-08T16:25:29Z")

</div>

Do you use a culture that uses comma as decimal separator? In any case try this:

```auto
<text class="rz-tick-text" style="text-anchor: start; transform: translate(@(Math.Truncate(context.X))px, @(Math.Truncate(context.Y + 10))px) rotate(45deg)">@context.Value</text>

```

---

<div class="post-metadata">

**Author:** ![Ebcinar](https://forum.radzen.com/user_avatar/forum.radzen.com/ebcinar/32/5291_2.png) [@Ebcinar](https://forum.radzen.com/u/Ebcinar)\
**Post date:** [August 8, 2022, 4:29pm UTC](https://forum.radzen.com/t/radzen-blazor-chart-column-description-styling/11484/6 "2022-08-08T16:29:56Z")

</div>

Now the context value is going out of the component is there any way to show complete word ? Thank you by so far you are great !

 ![ChartNearlyCompleted](https://forum.radzen.com/uploads/default/original/2X/0/0200c33772376f5166b859986f8549da797d333d.png)

---

<div class="post-metadata">

**Author:** ![korchev](https://forum.radzen.com/user_avatar/forum.radzen.com/korchev/32/4_2.png) [@korchev](https://forum.radzen.com/u/korchev)\
**Post date:** [August 9, 2022, 5:52am UTC](https://forum.radzen.com/t/radzen-blazor-chart-column-description-styling/11484/7 "2022-08-09T05:52:48Z")

</div>

This CSS rule should make the labels fully visible:

```auto
.rz-chart svg {
    overflow: visible;
}

```

---

<div class="post-metadata">

**Author:** ![john\_town](https://forum.radzen.com/user_avatar/forum.radzen.com/john_town/32/13177_2.png) [@john\_town](https://forum.radzen.com/u/john_town)\
**Post date:** [February 5, 2023, 6:35am UTC](https://forum.radzen.com/t/radzen-blazor-chart-column-description-styling/11484/8 "2023-02-05T06:35:42Z")

</div>

> [@korchev](#):
>
> ```auto
> .rz-chart svg {
> overflow: visible;
> }
> 
> ```

For the sake of newbies like me this should be in the Razor component itself within style segment like this:

```auto

<style>
.rz-chart svg {
    overflow: visible;
}
</style>

```

---

<div class="post-metadata">

**Author:** ![AXX\_nguyen](https://forum.radzen.com/user_avatar/forum.radzen.com/axx_nguyen/32/13414_2.png) [@AXX\_nguyen](https://forum.radzen.com/u/AXX_nguyen)\
**Post date:** [April 20, 2023, 2:22am UTC](https://forum.radzen.com/t/radzen-blazor-chart-column-description-styling/11484/9 "2023-04-20T02:22:49Z")

</div>

@korchev  
is there any way to show ... when context value is hidden  
my code is not working

 ![image](https://forum.radzen.com/uploads/default/original/2X/1/1b87b885bf946541a0e6828317da474b9feef55f.png)  
 ![image](https://forum.radzen.com/uploads/default/original/2X/e/e69d9ad6dc9e69b3a7dd689579d9b74e93467b74.png)

---

<div class="post-metadata">

**Author:** ![Trenyik\_Zsolt](https://forum.radzen.com/user_avatar/forum.radzen.com/trenyik_zsolt/32/16840_2.png) [@Trenyik\_Zsolt](https://forum.radzen.com/u/Trenyik_Zsolt)\
**Post date:** [January 16, 2024, 9:49am UTC](https://forum.radzen.com/t/radzen-blazor-chart-column-description-styling/11484/10 "2024-01-16T09:49:59Z")

</div>

> [@korchev](#):
>
> `@context.Value`

Dear All, first of all, thank you for the great tool! The rotation works for me fine, however, formatting the text (@context.Value) doesn't work. Even a toString() throw an exception. On the x axis, I have a date array, which can be formatted without any trouble by the Formatter tag. However, once I insert the above code to rotate the values, formatting is overwritten. This is why I tried to manipulate the context value.

Could you help me how to achieve it?

Thank you!

Zsolt

---

<div class="post-metadata">

**Author:** ![korchev](https://forum.radzen.com/user_avatar/forum.radzen.com/korchev/32/4_2.png) [@korchev](https://forum.radzen.com/u/korchev)\
**Post date:** [January 16, 2024, 1:05pm UTC](https://forum.radzen.com/t/radzen-blazor-chart-column-description-styling/11484/11 "2024-01-16T13:05:53Z")

</div>

You have full control over displaying the value since you have access to it. Feel free to format it however you need. I am sure ToString() will work unless the value is `null`.
