Example of Axis Label Template in ASP.NET MVC Chart Control
This sample shows the 2024 Olympic medal standings for the top 10 countries using a stacked Column chart. The x-axis uses label templates to display each country’s rank and name (with flag), enabling quick comparison of Gold, Silver, and Bronze totals.
DEMO
SOURCE
Use the axis label template feature to customize axis labels via the labelTemplate property on the chart axis. Templates can include HTML markup, conditional styling, and embedded icons or images (for example, country flags). This sample binds rank and country to the template while the series plot medal counts.
More information on axis labels can be found in the documentation sectionopens in a new tab .