UNPKG

901 BMarkdownView Raw
1## jquery.flot.logaxis
2This plugin is used to create logarithmic axis. This includes tick generation,
3formatters and transformers to and from logarithmic representation.
4
5### Methods and hooks
6
7
8- logTickGenerator(plot, axis, noTicks)
9
10Generates logarithmic ticks, depending on axis range.
11In case the number of ticks that can be generated is less than the expected noTicks/4,
12a linear tick generation is used.
13
14
15- logTickFormatter(value, axis, precision)
16
17This is the corresponding tickFormatter of the logaxis.
18For a number greater that 10^6 or smaller than 10^(-3), this will be drawn
19with e representation
20
21
22- setDataminRange(plot, axis)
23
24It is used for clamping the starting point of a logarithmic axis.
25This will set the axis datamin range to 0.1 or to the first datapoint greater then 0.
26The function is usefull since the logarithmic representation can not show
27values less than or equal to 0.