You are here

function flotStyle::axis_ticks in Flot 7

Same name and namespace in other branches
  1. 6 flot.module \flotStyle::axis_ticks()

File

./flot.module, line 355

Class

flotStyle
Style class for the flot API.

Code

function axis_ticks($axis = 'yaxis', $ticks = array()) {
  if (count($ticks)) {
    $this->{$axis} = new stdClass();
    $this->{$axis}->ticks = $ticks;
  }
}