Skip to content

Example of Axis Label Template in ASP.NET Core Charts Control

This example rewrites the labels of the axes with an event: the Y labels read like $25K and the months are written in full.

OnAxisLabelRender is called for every axis label with args = { axis, value, text }; set args.text to change what is shown. Here the Y labels read "$25K" instead of "25,000", and the months on the X axis are written in full.