You are here

function flotStyle::axis_ticks in Flot 6

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

File

./flot.module, line 161

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;
  }
}