Hi,
I want know how I do to get in axis Y only integer not float when range is small ?
I do range with:
$chart['#mixed_axis_labels'][CHART_AXIS_Y_LEFT][0][] = chart_mixed_axis_range_label(0, 4);

I've attached the picture of chart

Thanks

CommentFileSizeAuthor
bar_chart.png15.25 KBridor

Comments

ridor’s picture

Someone can help me pleaaaaase !!!

ridor’s picture

Priority: Normal » Critical

help !!!

13rac1’s picture

Category: feature » support
Priority: Critical » Normal
Status: Active » Fixed

You must set the values of the Y axis explicitly.

This is support and support is never critical. Use the category and priority fields correctly.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

matej.lehotsky’s picture

Issue summary: View changes

You can use patch from #11692891. It extend chart_mixed_axis_range_label of new arg.

Solution:

$chart['#mixed_axis_labels'][CHART_AXIS_Y_LEFT][0][] = chart_mixed_axis_range_label(0, 4, 1);