The code for the example chart sets 'yaxis_title' => $this->t('Y-Axis'), but this is not displayed on the chart.

The min and max setting are also not working.

This is because the Y axis settings are not being set in the render.

Comments

John Cook created an issue. See original summary.

john cook’s picture

Status: Active » Needs review
StatusFileSize
new2.46 KB
new25.82 KB

I've added setting the Y-axis settings in HighchartsChartsRender.

I also changed the check for min and max to use is_numeric() as they could be set to 0, !empty() would evaluate this as FALSE.

The chart now look like this (after changing the min & max values):

  • andileco committed 8185d86 on 8.x-3.x
    Issue #2945416 by John Cook, andileco: Y-Axis title not working for...
andileco’s picture

Status: Needs review » Fixed

Nice catch!

andileco’s picture

Status: Fixed » Closed (fixed)