• Resolved mintynz

    (@mintynz)


    Hi,
    I’ve got the following in my functions.php:

    function m_chart_chart_args( $chart_options, $library ) {
    	$chart_options['yAxis']['max'] = 3500;
    	return $chart_options;
    }
    
    add_filter( 'm_chart_chart_args', 'filter_m_chart_chart_args', 10, 2 );
    

    but it doesn’t seem to be setting that maximum.

    I’m trying to make a series of charts all use the same scale for yAxis.

    What am I doing wrong?

Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Set a yAxis maximum’ is closed to new replies.