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

Legend for x-axis names

1 Answer 7 Views
Chart (HTML5)
This is a migrated thread and some comments may be shown as answers.
Al
Top achievements
Rank 1
Iron
Iron
Veteran
Al asked on 17 Aug 2015, 01:22 PM

Hi,

I have a single series column chart & I want to remove all the column names on the x-axis for space reasons. How can I put those names in a Legend box underneath the chart?

1 Answer, 1 is accepted

Sort by
0
Danail Vasilev
Telerik team
answered on 20 Aug 2015, 09:14 AM
Hi Al,

To remove the x-axis labels in the chart you can just avoid inserting them or binding them.

To create a custom legend:
    - You can position absolutely a styled HTML element near the chart, as illustrated in this demo - http://demos.telerik.com/aspnet-ajax/htmlchart/examples/functionality/custombarcolor/defaultcs.aspx.
    - Use visual templates, as shown here - http://demos.telerik.com/aspnet-ajax/htmlchart/examples/functionality/visual-templates/defaultcs.aspx?isNew=true

Regards,
Danail Vasilev
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Chart (HTML5)
Asked by
Al
Top achievements
Rank 1
Iron
Iron
Veteran
Answers by
Danail Vasilev
Telerik team
Share this question
or