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

Stack Group in Axis Labels

2 Answers 129 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Dave
Top achievements
Rank 1
Dave asked on 22 Feb 2017, 07:24 AM

Hi

I have a stacked graph and am trying to get the stack->group appearing in the Axis label without success.

Here is a dojo example - http://dojo.telerik.com/UqiVo

I am trying to get 'person 1' and 'person 2' under the relevant column (similar to how the tool tip works) as these ill be in printed reports so tooltips don't help.  Best I have been able to do is put a coloured border to differentiate the series.

I have just hard coded into the label template in this example.

Thanks in advance

Dave

2 Answers, 1 is accepted

Sort by
0
Accepted
Stamo Gochev
Telerik team
answered on 24 Feb 2017, 06:51 AM
Hi Dave,

As far as I understand your requirements, you need to bind the chart to a data source, so that a dataItem is available in the categoryAxis.labels.template option, which you can use to show the necessary values in the labels:

http://dojo.telerik.com/@stamo/OfIBu


You can modify the above example, so that it best fits in your case.

If this not what you want to achieve, can you give me more details about the expected final appearance of the labels?

Regards,
Stamo Gochev
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Dave
Top achievements
Rank 1
answered on 02 Mar 2017, 04:54 AM
Thank you, this is perfect :)
Tags
Charts
Asked by
Dave
Top achievements
Rank 1
Answers by
Stamo Gochev
Telerik team
Dave
Top achievements
Rank 1
Share this question
or