chart_axis_set_name

@brief Set the name caption of the an axis.

@param axis A pointer to a chart #lxw_chart_axis object. @param name The name caption of the axis.

The %chart_axis_set_name() function sets the name (also known as title or caption) for an axis. It can be used for the X or Y axes. The name is displayed below an X axis and to the side of a Y axis.

@code chart_axis_set_name(chart->x_axis, "Earnings per Quarter"); chart_axis_set_name(chart->y_axis, "US Dollars (Millions)"); @endcode

@image html chart_axis_set_name.png

The name parameter can also be a formula such as =Sheet1!$A$1 to point to a cell in the workbook that contains the name:

@code chart_axis_set_name(chart->x_axis, "=Sheet1!$B1$1"); @endcode

See also the chart_axis_set_name_range() function to see how to set the name formula programmatically.

This function is applicable to category, date and value axes.

extern (C)
void
chart_axis_set_name
(,
const char* name
)

Meta