This is a migrated thread and some comments may be shown as answers.

TagHelper - stacked bar

2 Answers 78 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Heiko
Top achievements
Rank 1
Iron
Veteran
Heiko asked on 10 Apr 2019, 03:03 PM

For a bar chart there is a property Stack

HtmlHelper-Example:

.SeriesDefaults(sd => sd.Bar().Stack(true))

 

This I can not find in the TagHelper. How can I display a bar chart with stacked bars?

2 Answers, 1 is accepted

Sort by
0
Accepted
Viktor Tachev
Telerik team
answered on 15 Apr 2019, 08:11 AM
Hello Heiko,

In order to define a stacked bar chart using TagHelper you can set the stack option as a nested tag in series-defaults. Like this:


<series-defaults type="ChartSeriesType.Bar">
    <stack enabled="true" />
</series-defaults>


Let me know how the approach works for you.


Regards,
Viktor Tachev
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Heiko
Top achievements
Rank 1
Iron
Veteran
answered on 07 May 2019, 05:46 PM

Thanks Viktor!

I found the solution by looking into the TagHelper-Source. Still find it difficult to find an appropriate documentation for TagHelpers. Just one example per Widget is simply not enough.

Regards
Heiko

Tags
Chart
Asked by
Heiko
Top achievements
Rank 1
Iron
Veteran
Answers by
Viktor Tachev
Telerik team
Heiko
Top achievements
Rank 1
Iron
Veteran
Share this question
or