Skip to content
Last updated

API / geotoolkit / axis / DiscreteValueTickGenerator / DiscreteValueTickGenerator

Class: DiscreteValueTickGenerator

axis.DiscreteValueTickGenerator.DiscreteValueTickGenerator

Creates discrete value tick generator

Hierarchy

Table of contents

Constructors
  • [new DiscreteValueTickGenerator(dataProvider)](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit.axis.discretevaluetickgenerator.discretevaluetickgenerator.md#new discretevaluetickgenerator(dataprovider))
Methods
Css Properties
Name Type Description
labelstylesTextStyleAn object containing label style for specified grades
labelstyles-alignmentAlignmentStyleAlignment
labelstyles-autosizebooleanAuto font size on high definition display
labelstyles-backgroundstringBackground style
labelstyles-backgroundFillStyleBackground style
labelstyles-background-colorstringColor in CSS form
labelstyles-background-evenoddmodebooleanEven-odd fill mode
labelstyles-background-fillpatternPatternPattern
labelstyles-background-fillpattern-containernamestringAn optional container name, which creates an image pattern. This parameter is used for serialization if you want to save are reference to pattern instead of the pattern itself
labelstyles-background-fillpattern-patternnamestringName of this pattern for indexing
labelstyles-background-fillpattern-scalablebooleanFlag that sets scalability of the pattern coordinates, or relative to the shape it is filling (It is not supported)
labelstyles-background-foregroundstringForeground color
labelstyles-background-patternPatternPattern
labelstyles-baselineBaseLineStyleBase line
labelstyles-colorstringColor in CSS form
labelstyles-fillFillStyleText fill style
labelstyles-fontstringFont see
labelstyles-fonturlstringThe place from which the font will be loaded, if null - uses system fonts. It can be base64 with url keyword
labelstyles-lineheightstring | numberLine height
labelstyles-multilinebooleanAllow multi-line text
labelstyles-outlinestringOutline style
labelstyles-outlineLineStyleOutline style
labelstyles-outline-colorstringColor in CSS form
labelstyles-outline-fillstringOptional fill style to be used to fill lines generated with this style
labelstyles-outline-fillFillStyleOptional fill style to be used to fill lines generated with this style
labelstyles-outline-linecapCapStyleThe line cap style
labelstyles-outline-linedashoffsetnumberLine dash offset of dashed line
labelstyles-outline-linejoinJoinStyleThe line join style
labelstyles-outline-pixelsnapmodebooleanPixel Snap Mode, default(
labelstyles-outline-scalablebooleanTrue if width should depend on transformation
labelstyles-outline-unitstringOptional unit for the width
labelstyles-outline-widthnumber | stringThe line thickness
labelstyles-overflowwrapOverflowWrapStyleOverflow wrap
labelstyles-strikethroughstringStrikethrough style
labelstyles-strikethroughLineStyleStrikethrough style
labelstyles-textoverflowTextOverflowStyleText overflow
labelstyles-underlinestringUnderline style
labelstyles-underlineLineStyleUnderline style
labelstyles-underlineoffsetstring | numberUnderline offset distance
labelstyles-whitespaceWhiteSpaceStyleWhite space
labelstyles-wordbreakWordBreakStyleWord break
maxlabelstringMax label
taganyTag user can specify info associated with current object
tickstylesLineStyleAn object containing tick styles for specified grades

Contents

Constructors

new DiscreteValueTickGenerator(dataProvider)

• new DiscreteValueTickGenerator(dataProvider?)

Parameters

Name Type
Optional dataProviderTicksAndLabelsCallback | Options

Overrides

NumericTickGenerator.constructor

Methods

clone

▸ clone(): DiscreteValueTickGenerator

All subclasses should override copyConstructor or provide custom implementation for this method

Returns

DiscreteValueTickGenerator

clone

Overrides

NumericTickGenerator.clone


connectStyle

▸ connectStyle(style, type, callback): DiscreteValueTickGenerator

Connects style.<br> <br> This convenience method subscribes a listener to given style for the specified type.<br> And automatically un-subscribes listener if node is disposed to prevent memory leaks

Parameters

Name Type Description
styleEventDispatcherconnect style
typestringtype of event or property
callbackAttributeCallback<EventDispatcher&gt;function to be called

Returns

DiscreteValueTickGenerator

Inherited from

NumericTickGenerator.connectStyle


copyConstructor

▸ Protected copyConstructor(src, deepCopy?): DiscreteValueTickGenerator

Copy constructor

Parameters

Name Type Description
srcDiscreteValueTickGeneratorSource to copy from
Optional deepCopybooleandeep copy

Returns

DiscreteValueTickGenerator

this

Overrides

NumericTickGenerator.copyConstructor


disconnectStyle

▸ disconnectStyle(style, type, callback): DiscreteValueTickGenerator

Disconnect style<br> <br> This convenience method un-subscribes a listener to given style for the specified type.<br>

Parameters

Name Type Description
styleEventDispatcherconnect style
typestringtype of event or property
callbackAttributeCallback<EventDispatcher&gt;function to be called

Returns

DiscreteValueTickGenerator

Inherited from

NumericTickGenerator.disconnectStyle


dispose

▸ dispose(): void

Disposes this node, once disposes a node should not be used anymore.<br> Clear all listeners, and disconnect styles to avoid memory leaks.<br> Also aggressively 'cleanup' this node by setting some of its members to null.

Returns

void

Inherited from

NumericTickGenerator.dispose


execute

▸ execute(delegate): DiscreteValueTickGenerator

Executes delegate and returns the result

Parameters

Name Type Description
delegate(this: DiscreteValueTickGenerator) => voidexecute delegate and return the result

Returns

DiscreteValueTickGenerator

Inherited from

NumericTickGenerator.execute

▸ execute<T&gt;(delegate): T

Type parameters

Name
T

Parameters

Name Type
delegate(this: DiscreteValueTickGenerator) => T

Returns

T

Inherited from

NumericTickGenerator.execute


formatLabel

▸ formatLabel(parent, orient, tickInfo, tickIndex, modelValue): string

Formats label text. This method must be overridden in the base classes and the the base class method must be called first.

Parameters

Name Type Description
parentIModelparent axis or grid
orientOrientationorientation
tickInfoTickInfoan info about tick
tickIndexnumbertickIndex tick index from 0 to count-1, which resetLabels returns
modelValuenumbermodel value

Returns

string

formatted label text

Inherited from

NumericTickGenerator.formatLabel


formatLabelInternal

▸ Protected formatLabelInternal(tickType, modelValue): string

Format label

Parameters

Name Type Description
tickTypestring&quot;edge&quot; or &quot;major&quot; or &quot;minor&quot;
modelValuestring | numbermodel coordinate position

Returns

string

Inherited from

NumericTickGenerator.formatLabelInternal


getAdjustLabelAnchor

▸ getAdjustLabelAnchor(grade): boolean

Gets adjust label anchor flag for specified label grade

Parameters

Name Type Description
gradestringlabel grade

Returns

boolean

label anchor flag ("true" by default for any grade)

Inherited from

NumericTickGenerator.getAdjustLabelAnchor


getBoundingBox

▸ getBoundingBox(tickInfo, orient, labelPos, labelText?): Rect

Returns bounding box of label

Parameters

Name Type Description
tickInfoTickInfoinfo about the tick
orientOrientationorientation
labelPosnumberlabel position along index direction
Optional labelTextstringlabel text. If not defined labelPos.toString() is used.

Returns

Rect

bbox bounding box

Inherited from

NumericTickGenerator.getBoundingBox


getClassName

▸ getClassName(): string

Returns

string

Inherited from

NumericTickGenerator.getClassName


getFormatLabelHandler

▸ getFormatLabelHandler(): LabelFormatHandler

Returns label format handler

Returns

LabelFormatHandler

Inherited from

NumericTickGenerator.getFormatLabelHandler


getGrades

▸ getGrades(): string[]

Returns valid Tick string : "edge", "major", "intermediate", "minor"

Returns

string[]

array of known Tick string

Inherited from

NumericTickGenerator.getGrades


getInvalidateMethod

▸ Protected getInvalidateMethod(): AttributeCallback<EventDispatcher&gt;

invalidate Method

Returns

AttributeCallback<EventDispatcher&gt;

method to invalidate this object

Inherited from

NumericTickGenerator.getInvalidateMethod


getLabelAnchorType

▸ getLabelAnchorType(grade, transformation?): AnchorType

Gets label anchor type

Parameters

Name Type Description
gradestringtick grade
Optional transformationTransformationoptional transformation from model to device. It is used only for custom label anchor handler

Returns

AnchorType

Inherited from

NumericTickGenerator.getLabelAnchorType


getLabelFormat

▸ getLabelFormat(tickGrade): Format

Returns label format

Parameters

Name Type Description
tickGradestringgrade to get format: &quot;major&quot;, &quot;minor&quot;, &quot;edge&quot;

Returns

Format

label format

Inherited from

NumericTickGenerator.getLabelFormat


getLabelRotationAngle

▸ getLabelRotationAngle(tickGrade): number

Returns label rotation angle

Parameters

Name Type Description
tickGradestringTick grade see TickGenerator.getGrades for valid Tick types

Returns

number

label rotation angle

Inherited from

NumericTickGenerator.getLabelRotationAngle


getLabelStyle

▸ getLabelStyle(tickGrade): TextStyle

Returns label style

Parameters

Name Type Description
tickGradestringTick grade see TickGenerator.getGrades for valid Tick types

Returns

TextStyle

label style

Inherited from

NumericTickGenerator.getLabelStyle


getLabelValueTransformer

▸ getLabelValueTransformer(): ValueTransformer | (modelValue: number) => number

Gets label value transformer (by default: 'undefined' - no transformation is applied to a value)

Returns

ValueTransformer | (modelValue: number) => number

transformer label value transformer

Inherited from

NumericTickGenerator.getLabelValueTransformer


getLocale

▸ getLocale(): string | Locale

Return the current locale

Returns

string | Locale

Inherited from

NumericTickGenerator.getLocale


getMaxLabelHandler

▸ getMaxLabelHandler(): MaxLabelEventHandler

Gets handler to return max label position

Returns

MaxLabelEventHandler

handler is called to specify max label

Inherited from

NumericTickGenerator.getMaxLabelHandler


getMaxLabelMetrics

▸ getMaxLabelMetrics(parent, orientation, tickInfo, fromValue, toValue): Dimension

Returns maximum label metrics. For internal use only

Parameters

Name Type Description
parentIModelparent axis or grid
orientationOrientationorientation
tickInfoTickInfoinfo about tick position
fromValuenumbergenerate labels from
toValuenumbergenerate labels to

Returns

Dimension

Inherited from

NumericTickGenerator.getMaxLabelMetrics


getMaxLabels

▸ Protected getMaxLabels(tickInfo, orient, fromValue, toValue): { type: string ; value: string | number }[]

Returns max labels for each type of grades

Parameters

Name Type Description
tickInfoTickInfoinfo about the tick
orientOrientationorientation
fromValuenumbergenerate labels from
toValuenumbergenerate labels to

Returns

{ type: string ; value: string | number }[]

Inherited from

NumericTickGenerator.getMaxLabels


getNeatLimits

▸ getNeatLimits(min, max, options): Limits

Return nice limits, default implementation is for linear model space

Parameters

Name Type
minnumber
maxnumber
optionsObject
Optional options.preciseboolean
options.sizenumber
options.spannumber

Returns

Limits

Inherited from

NumericTickGenerator.getNeatLimits


getProperties

▸ getProperties(): OptionsOut

Gets all the properties pertaining to this object

Returns

OptionsOut

properties

Overrides

NumericTickGenerator.getProperties


getTag

▸ getTag(): any

Returns tag

Returns

any

the tag

Inherited from

NumericTickGenerator.getTag


getTickSize

▸ getTickSize(grade): number

Returns the size of specified tick

Parameters

Name Type Description
gradestringGrade of the tick to get the size see TickGenerator.getGrades for valid Tick types

Returns

number

Inherited from

NumericTickGenerator.getTickSize


getTickStyle

▸ getTickStyle(tickGrade): LineStyle

Returns tick style

Parameters

Name Type Description
tickGradestringTick Grade see TickGenerator.getGrades for valid Tick types

Returns

LineStyle

line style

Inherited from

NumericTickGenerator.getTickStyle


getVisibleLabelGrades

▸ getVisibleLabelGrades(supported): string[]

Return an array of the visible label grades

Parameters

Name Type Description
supportedstring[]supported grades see TickGenerator.getGrades for valid Tick types

Returns

string[]

the visible grades

Inherited from

NumericTickGenerator.getVisibleLabelGrades


getVisibleTickGrades

▸ getVisibleTickGrades(supported): string[]

Returns an array of the visible tick grades

Parameters

Name Type Description
supportedstring[]supported grades see TickGenerator.getGrades for valid Tick types

Returns

string[]

the visible grades

Inherited from

NumericTickGenerator.getVisibleTickGrades


hasEventListener

▸ hasEventListener(type, callback?): boolean

Check if a list of event listeners for this type contains this listener

Parameters

Name Type Description
typestringtype of event or property
Optional callbackFunctionto be called, if null, check if any callback is registered

Returns

boolean

Inherited from

NumericTickGenerator.hasEventListener


isDisposed

▸ isDisposed(): boolean

Returns whether this object has been disposed

Returns

boolean

Inherited from

NumericTickGenerator.isDisposed


isSilent

▸ isSilent(): boolean

Return true if the event dispatcher doesn't notify any events

Returns

boolean

Inherited from

NumericTickGenerator.isSilent


isValid

▸ isValid(parent, orient, tickInfo): boolean

Verify tick generator parameters to have better label distribution

Parameters

Name Type Description
parentIModelparent axis or grid
orientOrientationorientation
tickInfoTickInfotick info

Returns

boolean

true if no label intersection

Inherited from

NumericTickGenerator.isValid


isVisibleLabelGrade

▸ isVisibleLabelGrade(tickGrade): boolean

Returns visibility of label for a specific tick grade

Parameters

Name Type Description
tickGradestringTick grade see TickGenerator.getGrades for valid Tick types

Returns

boolean

true if label is visible

Inherited from

NumericTickGenerator.isVisibleLabelGrade


isVisibleTickGrade

▸ isVisibleTickGrade(tickGrade): boolean

Returns visibility of tick for a specific tick grade

Parameters

Name Type Description
tickGradestringTick grade see TickGenerator.getGrades for valid Tick types

Returns

boolean

true if the tick is visible

Inherited from

NumericTickGenerator.isVisibleTickGrade


nextLabel

▸ nextLabel(parent, orient, tickInfo, tickIndex): number

Generates information about next label

Parameters

Name Type Description
parentIModelparent axis or grid
orientOrientationorientation
tickInfoTickInfoinfo about tick
tickIndexnumbertickIndex tick index from 0 to count-1, which resetLabels returns

Returns

number

the model position of the label

Inherited from

NumericTickGenerator.nextLabel


nextTick

▸ nextTick(parent, orient, tickInfo, tickIndex): number

Generates information about next tick

Parameters

Name Type Description
parentIModelparent axis or grid
orientOrientationorientation
tickInfoTickInfoinfo about tick
tickIndexnumbertick index from 0 to count-1, which resetTicks returns

Returns

number

the model position of the tick

Inherited from

NumericTickGenerator.nextTick


notify

▸ notify<E&gt;(type, source, args?): DiscreteValueTickGenerator

Notify listeners

Type parameters

NameType
Eextends string

Parameters

Name Type Description
typeEevent types
sourceTickGeneratorof the event
Optional argsEventMap[E]arguments of the event

Returns

DiscreteValueTickGenerator

this

Inherited from

NumericTickGenerator.notify


off

▸ off<E&gt;(type?, callback?): DiscreteValueTickGenerator

Detach listener on event. Calling .off() with no arguments removes all attached listeners. Calling .off(type) with no callback removes all attached listeners for specific type.

Type parameters

NameType
Eextends string

Parameters

Name Type Description
Optional typeEtype of the event
Optional callback(eventType: E, sender: DiscreteValueTickGenerator, args: EventMap[E]) => voidfunction to be called

Returns

DiscreteValueTickGenerator

this

Inherited from

NumericTickGenerator.off


on

▸ on<E&gt;(type, callback): DiscreteValueTickGenerator

Attach listener on event that will be called whenever the specified event is delivered to the target <p> If the callback function is already in the list of event listeners for this target, the function is not added a second time. </p> <p> If a particular anonymous function is in the list of event listeners registered for a certain target, and then later in the code, an identical anonymous function is given in an "on" call, the second function will also be added to the list of event listeners for that target. </p>

Type parameters

NameType
Eextends string

Parameters

Name Type Description
typeEtype of event or property
callback(eventType: E, sender: DiscreteValueTickGenerator, args: EventMap[E]) => voidto be called

Returns

DiscreteValueTickGenerator

this

Inherited from

NumericTickGenerator.on


reset

▸ reset(parent, orient, tickInfo): string[]

Resets tick generator

Parameters

Name Type Description
parentIModelparent axis or grid
orientOrientationorientation
tickInfoTickInfotick info

Returns

string[]

a supported tick grade list

Inherited from

NumericTickGenerator.reset


resetAsync

▸ resetAsync(parent, orient, tickInfo, callback): void

Resets tick generator asynchronously

Parameters

Name Type Description
parentIModelparent axis or grid
orientOrientationorientation
tickInfoTickInfotick info
callback(x: string[]) => voidcalls when asynchronous reset is done

Returns

void

Inherited from

NumericTickGenerator.resetAsync


resetLabels

▸ resetLabels(parent, orient, tickInfo): number

Reset labels. This method is called to start iteration by labels. The implementation also sets appropriate TextStyle on labels.

Parameters

Name Type Description
parentIModelparent axis or grid
orientOrientationorientation
tickInfoTickInfoan info about labels. This information is used to pass and receive information about the current tick or label

Returns

number

labels count for the current tick type

Inherited from

NumericTickGenerator.resetLabels


resetMaxLabels

▸ resetMaxLabels(): DiscreteValueTickGenerator

Reset max label info

Returns

DiscreteValueTickGenerator

this

Inherited from

NumericTickGenerator.resetMaxLabels


resetTicks

▸ resetTicks(parent, orient, tickInfo): number

Resets ticks. This method is called to start iteration by ticks. The implementation also sets appropriate LineStyle on the ticks as well as their tick size.

Parameters

Name Type Description
parentIModelparent axis or grid
orientOrientationorientation
tickInfoTickInfoan info about labels. This information is used to pass and receive information about the current tick or label

Returns

number

ticks count for the current tick type. The implementation returns 0 if the ticks can not be drawn; a positive number otherwise.

Inherited from

NumericTickGenerator.resetTicks


setAdjustLabelAnchor

▸ setAdjustLabelAnchor(grade, flag): DiscreteValueTickGenerator

Sets adjust label anchor flag for specified label grade

Parameters

Name Type Description
gradestringlabel grade
flagbooleanadjust label anchor flag

Returns

DiscreteValueTickGenerator

this

Inherited from

NumericTickGenerator.setAdjustLabelAnchor


setDataProvider

▸ setDataProvider(dataProvider): DiscreteValueTickGenerator

Sets discrete data provider

Parameters

Name Type Description
dataProviderDataProvidershould be a function or instance of class that implements 'getTicksAndLabels' method

Returns

DiscreteValueTickGenerator


setFormatLabelHandler

▸ setFormatLabelHandler(handler): DiscreteValueTickGenerator

Sets label format handler

Parameters

Name Type Description
handlerLabelFormatHandlerhandler

Returns

DiscreteValueTickGenerator

this

Inherited from

NumericTickGenerator.setFormatLabelHandler


setLabelAnchorType

▸ setLabelAnchorType(grade, anchorType): DiscreteValueTickGenerator

Sets label anchor type

Parameters

Name Type Description
gradestringtick grade
anchorTypeAnchorType | AnchorStyleHandleranchorType

Returns

DiscreteValueTickGenerator

this

Inherited from

NumericTickGenerator.setLabelAnchorType


setLabelFormat

▸ setLabelFormat(tickGrade, format): DiscreteValueTickGenerator

Sets label format

Throws

Error if labelformat is not supported

Example

// to set the precision of the tickGenerator labels use the following
import {NumberFormat} from '@int/geotoolkit/util/NumberFormat';
...
axis.getTickGenerator().setLabelFormat('major', new NumberFormat({'maximumfractiondigits':2}));

Parameters

Name Type Description
tickGradestringgrade to set format: &quot;major&quot;, &quot;minor&quot;, &quot;edge&quot;
formatFormatnumber format for label

Returns

DiscreteValueTickGenerator

this

Inherited from

NumericTickGenerator.setLabelFormat


setLabelRotationAngle

▸ setLabelRotationAngle(tickGrade, angle): DiscreteValueTickGenerator

Sets label rotation angle

Example

// user can customize the label rotation angle based on tick grade.
tickGenerator.setLabelRotationAngle('major', -Math.PI / 2);

Parameters

Name Type Description
tickGradestringTick grade see TickGenerator.getGrades for valid Tick types
anglenumberlabel rotation angle, in radians

Returns

DiscreteValueTickGenerator

this

Inherited from

NumericTickGenerator.setLabelRotationAngle


setLabelStyle

▸ setLabelStyle(tickGrade, labelStyle?, merge?): DiscreteValueTickGenerator

Sets label style

Parameters

Name Type Description
tickGradestringTick grade see TickGenerator.getGrades for valid Tick types
Optional labelStyleTypetick text style
Optional mergebooleantrue if you want to merge labelStyle with existing attribute, false by default

Returns

DiscreteValueTickGenerator

this

Inherited from

NumericTickGenerator.setLabelStyle


setLabelValueTransformer

▸ setLabelValueTransformer(transformer): DiscreteValueTickGenerator

Sets label value transformer (optional)

Parameters

Name Type Description
transformerValueTransformer | (modelValue: number) => numberlabel value transformer

Returns

DiscreteValueTickGenerator

this

Inherited from

NumericTickGenerator.setLabelValueTransformer


setLocale

▸ setLocale(locale): DiscreteValueTickGenerator

Sets locale

Parameters

Name Type Description
localestring | Localelocale

Returns

DiscreteValueTickGenerator

this

Inherited from

NumericTickGenerator.setLocale


setMaxLabelHandler

▸ setMaxLabelHandler(handler): DiscreteValueTickGenerator

Sets handler to return max label values

Example

// Return text
tickGenerator.setMaxLabelHandler((axis, tickInfo, orient, fromValue, toValue, array) =&gt; {
return &#91;{'type': 'major', 'value': 'Buffalo Gap'}&#93;;
});

Example

// Return number
tickGenerator.setMaxLabelHandler((axis, tickInfo, orient, fromValue, toValue, array) =&gt; {
return &#91;{'type': 'major', 'value': 1000}&#93;;
});

Parameters

Name Type Description
handlerMaxLabelEventHandlerhandler is called to specify max label

Returns

DiscreteValueTickGenerator

this

Inherited from

NumericTickGenerator.setMaxLabelHandler


setProperties

▸ setProperties(properties?): DiscreteValueTickGenerator

Sets all the properties pertaining to this object

Parameters

Name Type Description
Optional propertiesOptionsAn object containing the properties to set

Returns

DiscreteValueTickGenerator

Overrides

NumericTickGenerator.setProperties


setSilent

▸ setSilent(bool): DiscreteValueTickGenerator

Set silent mode

Parameters

Name Type Description
boolbooleanflag to enable silent mode

Returns

DiscreteValueTickGenerator

this

Inherited from

NumericTickGenerator.setSilent


setTag

▸ setTag(tag): DiscreteValueTickGenerator

Sets tag

Parameters

Name Type Description
taganyuser can specify info associated with current object

Returns

DiscreteValueTickGenerator

this

Inherited from

NumericTickGenerator.setTag


setTickOptions

▸ setTickOptions(properties?, tickGrade?): DiscreteValueTickGenerator

Sets all the properties pertaining to this tick

Parameters

Name Type Description
Optional propertiesRecord<string, TickOptions&gt;An object containing the properties to set
Optional tickGradestringTick grade

Returns

DiscreteValueTickGenerator

this

Inherited from

NumericTickGenerator.setTickOptions


setTickSize

▸ setTickSize(grade, size): DiscreteValueTickGenerator

Changes the size of specified ticks

Parameters

Name Type Description
gradestringGrade of the tick to set the size see TickGenerator.getGrades for valid Tick types
sizenumberNew size

Returns

DiscreteValueTickGenerator

this

Inherited from

NumericTickGenerator.setTickSize


setTickStep

▸ setTickStep(tickGrade, tickStep): DiscreteValueTickGenerator

Set Major or Minor tick step size

Parameters

Name Type Description
tickGradestringtick grade MAJOR or MINOR
tickStepnumberamount each tick should step

Returns

DiscreteValueTickGenerator


setTickStyle

▸ setTickStyle(tickGrade, lineStyle?, merge?): DiscreteValueTickGenerator

Sets tick style

Parameters

Name Type Description
tickGradestringTick grade see TickGenerator.getGrades for valid Tick types
Optional lineStyleTypeline style for the tick
Optional mergebooleantrue if you want to merge lineStyle with existing attribute, false by default

Returns

DiscreteValueTickGenerator

this

Inherited from

NumericTickGenerator.setTickStyle


setVisibleLabelGrade

▸ setVisibleLabelGrade(tickGrade, visible): DiscreteValueTickGenerator

Sets visibility of label for a specific tick grade Implementation of the reset should check visibility of the labels.

Parameters

Name Type Description
tickGradestringTick grade see TickGenerator.getGrades for valid Tick types
visiblebooleantick label visibility flag

Returns

DiscreteValueTickGenerator

this

Inherited from

NumericTickGenerator.setVisibleLabelGrade


setVisibleTickGrade

▸ setVisibleTickGrade(tickGrade, visible): DiscreteValueTickGenerator

Sets visibility of tick for a specific tick grade Implementation of the reset should check visibility of the ticks

Parameters

Name Type Description
tickGradestringTick grade see TickGenerator.getGrades for valid Tick types
visiblebooleantick grade visibility flag

Returns

DiscreteValueTickGenerator

this

Inherited from

NumericTickGenerator.setVisibleTickGrade


getClassName

▸ Static getClassName(): string

Returns

string

Inherited from

NumericTickGenerator.getClassName