opts,
this);
// Define the first independent axis as primary axis.
- if(!p_axis)
- p_axis = axis;
+ if (!p_axis) p_axis = axis;
}
}
- if(p_axis === undefined)
+ if (p_axis === undefined) {
throw ("Configuration Error: At least one axis has to have the \"independentTicks\" option activated.");
+ }
// Add ticks. By default, all axes inherit the tick positions of the
// primary axis. However, if an axis is specifically marked as having
// independent ticks, then that is permissible as well.