Usage
Signature:
interface CLineChartElement<K extends string | number,D extends oj-c.LineChart.LineItem<K> | any>
Typescript Import Format
//To typecheck the element APIs, import as below.
import { CLineChartElement } from "oj-c/line-chart";
//For the transpiled javascript to load the element's module, import as below
import "oj-c/line-chart";
For additional information visit:
Note: Application logic should not interact with the component's properties or invoke its methods until the BusyContext indicates that the component is ready for interaction.
Slots
JET components that allow child content support slots. Please see the slots section of the JET component overview doc for more information on allowed slot content and slot types.
-
groupTemplate
-
The
groupTemplateslot is used to specify the template for generating the group properties of the chart. The slot content must be a single <template> element. The content of the template should only be one <oj-c-line-chart-group> element. See the oj-c-line-chart-group doc for more details.When the template is executed for each group, it will have access to the chart's binding context containing the following properties:
- $current - an object that contains information for the current item. (See the table below for a list of properties available on $current)
- alias - if data-oj-as attribute was specified, the value will be used to provide an application-named alias for $current.
Properties of $current:
Name Type Description depthnumber The depth of the group. The depth of the outermost group under the invisible root is 1. idsArray<string> The key of the current item. indexnumber The group index itemsArray.<oj-c.LineChart.ChartItemTemplateContext> The array of objects which are chart items that belong to this series. The objects will have the following properties -
itemTemplate
-
The
itemTemplateslot is used to specify the template for creating each item of the chart. The slot content must be a <template> element. The content of the template should only be one <oj-c-line-chart-item> element. See the oj-c-line-chart-item doc for more details. A series-id and group-id must be specified.When the template is executed for each item, it will have access to the chart's binding context containing the following properties:
- $current - an object that contains information for the current item. (See the table below for a list of properties available on $current)
- alias - if data-oj-as attribute was specified, the value will be used to provide an application-named alias for $current.
Properties of $current:
Name Type Description dataD The data object of the current item. indexnumber The zero-based index of the current item. keyK The key of the current item. -
seriesTemplate
-
The
seriesTemplateslot is used to specify the template for generating the series properties of the chart. The slot content must be a single <template> element. The content of the template should only be one <oj-c-line-chart-series> element.See the oj-c-line-chart-series doc for more details.When the template is executed for each series, it will have access to the chart's binding context containing the following properties:
- $current - an object that contains information for the current item. (See the table below for a list of properties available on $current)
- alias - if data-oj-as attribute was specified, the value will be used to provide an application-named alias for $current.
Properties of $current:
Name Type Description idstring The series id indexnumber The series index itemsArray.<oj-c.LineChart.ChartItemTemplateContext> The array of objects which are chart items that belong to this series. The objects will have the following properties
Attributes
-
data :(DataProvider.<K, D>|null)
-
Specifies the DataProvider for the sections and items of the line-chart. A progressive loading indicator is shown by the component when the data provider fetch takes longer than a certain time.
Names
Item Name Property dataProperty change event dataChangedProperty change listener attribute (must be of type function, see Events and Listeners for additional information.) on-data-changed -
drag-mode :"pan"|"select"|"off"|"user"|"zoom"
-
The action that is performed when a drag occurs on the chart. Pan and marquee zoom are only available if zoom and scroll is turned on. Marquee select is only available if multiple selection is turned on. If the value is set to "user" and multiple actions are available, buttons will be displayed on the plot area to let users switch between modes. Only 'select' and 'pan' buttons are shown in mobile, as zoom in or out can be performed with 2 finger pinch gesture.
Names
Item Name Property dragModeProperty change event dragModeChangedProperty change listener attribute (must be of type function, see Events and Listeners for additional information.) on-drag-mode-changed -
drilling :"on"|"seriesOnly"|"groupsOnly"|"off"
-
Whether drilling is enabled. Drillable objects will show a pointer cursor on hover and fire an
ojDrillevent on click (double click if selection is enabled). Use "on" to enable drilling for all series objects (legend items), group objects (x-axis labels), and data items. Use "seriesOnly" or "groupsOnly" to enable drilling for series objects or group objects only. To enable or disable drilling on individual series, group, or data item, use the drilling attribute in each series, group, or data item.- Default Value:
"off"
Supported Values:
Value Description groupsOnlyDrilling is enabled only on axis labels. offDrilling is not enabled. onDrilling is enabled on data items, axis labels and legend items. seriesOnlyDrilling is enabled only on legend items. Use multiSeriesDrilling attribute to enable drilling on the legend item for Other. Names
Item Name Property drillingProperty change event drillingChangedProperty change listener attribute (must be of type function, see Events and Listeners for additional information.) on-drilling-changed -
group-comparator :(context1: oj-c.AreaChart.ChartGroupTemplateContext<K, D>, context2: ChartGroupTemplateContext<K, D>) => number
-
A comparator function that determines the ordering of the chart groups when using a DataProvider. If undefined, the group will follow the order in which they are found in the data. The group objects will have the same properties as the context for groupTemplate's $current. If groupComparator(a, b) is less than 0, chart group a comes before chart group b. If groupComparator(a, b) is 0, the original order is preserved. If groupComparator(a, b) is greater than 0, chart group b comes before chart group a.
Names
Item Name Property groupComparatorProperty change event groupComparatorChangedProperty change listener attribute (must be of type function, see Events and Listeners for additional information.) on-group-comparator-changed -
hidden-categories :Array.<string>
-
An array of category strings used for filtering. Series or data items with any category matching an item in this array will be filtered.
- Default Value:
[]
- Supports writeback:
true
Names
Item Name Property hiddenCategoriesProperty change event hiddenCategoriesChangedProperty change listener attribute (must be of type function, see Events and Listeners for additional information.) on-hidden-categories-changed -
hide-and-show-behavior :"withRescale"|"withoutRescale"|"none"
-
Defines the hide and show behavior that is performed when clicking on a legend item. When data items are hidden, the y axes can be optionally rescaled to fit to the remaining data.
- Default Value:
"none"
Supported Values:
Value Description noneNo hide and show behavior. withRescaleRescaling of y axis when items are hidden. withoutRescaleNo rescaling of y axis when items are hidden. Names
Item Name Property hideAndShowBehaviorProperty change event hideAndShowBehaviorChangedProperty change listener attribute (must be of type function, see Events and Listeners for additional information.) on-hide-and-show-behavior-changed -
highlight-match :"any"|"all"
-
The matching condition for the highlightedCategories property. By default, highlightMatch is 'all' and only items whose categories match all of the values specified in the highlightedCategories array will be highlighted. If highlightMatch is 'any', then items that match at least one of the highlightedCategories values will be highlighted.
- Default Value:
"any"
Supported Values:
Value Description allItems only with all matching categories will be highlighted. anyAny matching categories will be highlighted. Names
Item Name Property highlightMatchProperty change event highlightMatchChangedProperty change listener attribute (must be of type function, see Events and Listeners for additional information.) on-highlight-match-changed -
highlighted-categories :Array.<string>
-
An array of category strings used for highlighting. Series or data items matching categories in this array will be highlighted.
- Default Value:
[]
- Supports writeback:
true
Names
Item Name Property highlightedCategoriesProperty change event highlightedCategoriesChangedProperty change listener attribute (must be of type function, see Events and Listeners for additional information.) on-highlighted-categories-changed -
hover-behavior :"dim"|"none"
-
Defines the behavior applied when hovering over data items.
- Default Value:
"none"
Supported Values:
Value Description dimHovered items will be dimmed. noneNo hover behavior. Names
Item Name Property hoverBehaviorProperty change event hoverBehaviorChangedProperty change listener attribute (must be of type function, see Events and Listeners for additional information.) on-hover-behavior-changed -
legend :oj-c.LineChart.ChartLegend
-
An object defining the style, positioning, and behavior of the legend.
Names
Item Name Property legendProperty change event legendChangedProperty change listener attribute (must be of type function, see Events and Listeners for additional information.) on-legend-changed -
orientation :"horizontal"|"vertical"
-
The orientation of the chart.
- Default Value:
"vertical"
Supported Values:
Value Description horizontalChart will be horizontally oriented. verticalChart will be vertically oriented. Names
Item Name Property orientationProperty change event orientationChangedProperty change listener attribute (must be of type function, see Events and Listeners for additional information.) on-orientation-changed -
plot-area :oj-c.LineChart.PlotArea
-
The plot area of the chart.
Names
Item Name Property plotAreaProperty change event plotAreaChangedProperty change listener attribute (must be of type function, see Events and Listeners for additional information.) on-plot-area-changed -
selection :Array<K>
-
An array containing the ids of the initially selected data items.
- Default Value:
[]
- Supports writeback:
true
Names
Item Name Property selectionProperty change event selectionChangedProperty change listener attribute (must be of type function, see Events and Listeners for additional information.) on-selection-changed -
selection-mode :"none"|"single"|"multiple"
-
The type of selection behavior that is enabled on the tag cloud. This attribute controls the number of selections that can be made via selection gestures at any given time.
- Default Value:
"none"
Supported Values:
Value Description multipleMultiple items can be selected. noneNo item can be selected. singleSingle item can be selected. Names
Item Name Property selectionModeProperty change event selectionModeChangedProperty change listener attribute (must be of type function, see Events and Listeners for additional information.) on-selection-mode-changed -
series-comparator :(context1: oj-c.AreaChart.ChartSeriesTemplateContext<K, D>, context2: ChartSeriesTemplateContext<K, D>) => number
-
A comparator function that determines the ordering of the chart series when using a DataProvider. If undefined, the series will follow the order in which they are found in the data. The series objects will have the same properties as the context for seriesTemplate's $current. If seriesComparator(a, b) is less than 0, chart series a comes before chart series b. If seriesComparator(a, b) is 0, the original order is preserved. If seriesComparator(a, b) is greater than 0, chart series b comes before chart series a.
Names
Item Name Property seriesComparatorProperty change event seriesComparatorChangedProperty change listener attribute (must be of type function, see Events and Listeners for additional information.) on-series-comparator-changed -
stack :"on"|"off"
-
Defines whether the data items are stacked.
- Default Value:
"off"
Supported Values:
Value Description offData items will not be stacked. onData items belonging to same group will be stacked. Names
Item Name Property stackProperty change event stackChangedProperty change listener attribute (must be of type function, see Events and Listeners for additional information.) on-stack-changed -
time-axis-type :"enabled"|"mixedFrequency"|"skipGaps"
-
The type of time axis to display in the chart. If the value is "enabled" or "skipGaps", the time values must be provided through the "group-id" attribute of the oj-c-line-chart-item element. In this case, stacking is supported. If the value is "skipGaps", the groups will be rendered at a regular interval regardless of any time gaps that may exist in the data. If the value is "mixedFrequency", the time values must be provided through the "x" attribute of the oj-c-line-chart-item element. In this case stacking is not supported. The time values provided must be an ISO date string.
Names
Item Name Property timeAxisTypeProperty change event timeAxisTypeChangedProperty change listener attribute (must be of type function, see Events and Listeners for additional information.) on-time-axis-type-changed -
value-formats :oj-c.LineChart.ValueFormats
-
An object specifying value formatting and tooltip behavior, whose keys generally correspond to the attribute names on the data items.
Names
Item Name Property valueFormatsProperty change event valueFormatsChangedProperty change listener attribute (must be of type function, see Events and Listeners for additional information.) on-value-formats-changed -
x-axis :oj-c.LineChart.XAxis
-
The xAxis options for the chart.
Names
Item Name Property xAxisProperty change event xAxisChangedProperty change listener attribute (must be of type function, see Events and Listeners for additional information.) on-x-axis-changed -
y-axis :oj-c.LineChart.YAxis
-
The yAxis options for the chart.
Names
Item Name Property yAxisProperty change event yAxisChangedProperty change listener attribute (must be of type function, see Events and Listeners for additional information.) on-y-axis-changed -
zoom-and-scroll :"off"|"live"
-
The zoom and scroll behavior.
Names
Item Name Property zoomAndScrollProperty change event zoomAndScrollChangedProperty change listener attribute (must be of type function, see Events and Listeners for additional information.) on-zoom-and-scroll-changed
Events
-
ojGroupDrill
-
Triggered on a chart group drill gesture (double click if selection is enabled, single click otherwise).
Properties:
All of the event payloads listed below can be found under
event.detail. See Events and Listeners for additional information.Name Type Description groupK The group id of the drilled object. groupDataoj-c.LineChart.Group An array of data for the group the drilled object belongs to. idK The id of the drilled object. itemsArray.<oj-c.LineChart.LineItem> An array containing objects describing the data items belonging to the drilled group. -
ojItemDrill
-
Triggered on a chart item (double click if selection is enabled, single click otherwise).
Properties:
All of the event payloads listed below can be found under
event.detail. See Events and Listeners for additional information.Name Type Description dataoj-c.LineChart.LineItem The data object of the drilled item. groupK The group id of the drilled object. groupDataoj-c.LineChart.Group An array of data for the group the drilled object belongs to. idK The id of the drilled object. itemDataD The row data object of the drilled item. This will only be set if a DataProvider is being used. seriesK The series id of the drilled object. seriesDataoj-c.LineChart.LineChartSeries The data for the series of the drilled object. -
ojSeriesDrill
-
Triggered on a chart series drill gesture (double click if selection is enabled, single click otherwise).
Properties:
All of the event payloads listed below can be found under
event.detail. See Events and Listeners for additional information.Name Type Description idK The id of the drilled object. itemsArray.<oj-c.LineChart.LineItem> An array containing objects describing the data items belonging to the drilled group. seriesK The series id of the drilled object. seriesDataoj-c.LineChart.LineChartSeries The data for the series of the drilled object. -
ojViewportChange
-
Triggered after the viewport is changed due to a zoom or scroll operation.
Properties:
All of the event payloads listed below can be found under
event.detail. See Events and Listeners for additional information.Name Type Description endGroupstring The end group of the new viewport on a chart with categorical axis. startGroupstring The start group of the new viewport on a chart with categorical axis. xMaxnumber The maximum x value of the new viewport. xMinnumber The minimum x value of the new viewport. yMaxnumber The maximum y value of the new viewport. yMinnumber The minimum y value of the new viewport.
Methods
-
getProperty(property) : {any}
-
Retrieves the value of a property or a subproperty.
Parameters:
Name Type Description propertyThe property name to get. Supports dot notation for subproperty access. Returns:
- Type
- any
-
setProperties(properties) : {void}
-
Performs a batch set of properties.
Parameters:
Name Type Description propertiesAn object containing the property and value pairs to set. Returns:
- Type
- void
-
setProperty(property, value) : {void}
-
Sets a property or a single subproperty for complex properties and notifies the component of the change, triggering a corresponding event.
Parameters:
Name Type Description propertyThe property name to set. Supports dot notation for subproperty access. valueThe new value to set the property to. Returns:
- Type
- void
Type Definitions
-
ChartGroupTemplateContext<K,D>
-
Properties:
Name Type Description depthnumber The depth of the group. The depth of the outermost group under the invisible root is 1. idsArray<string> The key of the current item. indexnumber The group index itemsArray.<oj-c.LineChart.ChartItemTemplateContext> The array of objects which are chart items that belong to this series. The objects will have the following properties -
ChartItemTemplateContext<K,D>
-
Properties:
Name Type Description dataD The data object of the current item. indexnumber The zero-based index of the current item. keyK The key of the current item. -
ChartLegend
-
The chart legend type.
Properties:
Name Type Argument Default Description maxSize(number|string) <optional>
The max size of the legend in pixels or in percentage. position"auto" | "end" | "start" | "top" | "bottom" "auto" The position of the legend within the chart. By default, the legend will be placed on the side or bottom of the chart. rendered"auto" | "off" | "on" "on" Defines whether the legend is rendered. If set to auto, the legend will be hidden for charts with a large bunber of series. size(number|string) <optional>
Defines the size of legend in pixel or percent. symbolHeightnumber <optional>
The height of the legend symbol (line or marker) in pixels. symbolWidthnumber <optional>
The width of the legend symbol (line or marker) in pixels. -
ChartSeriesTemplateContext<K,D>
-
Properties:
Name Type Description idstring The series id indexnumber The series index itemsArray.<oj-c.LineChart.ChartItemTemplateContext> The array of objects which are chart items that belong to this series. The objects will have the following properties -
Group
-
Properties:
Name Type Argument Description accessibleLabelstring <optional>
The description of the group. This is used for the customizing the tooltip text and only applies to a categorical axis. drilling"inherit" | "off" | "on" <optional>
Whether drilling is enabled in the group label. idstring The id of the group. namestring <optional>
The name of the group. -
LineChartSeries<K>
-
Properties:
Name Type Argument Description categoriesArray<string> <optional>
An array of category strings corresponding to the tag cloud items. This allows highlighting and filtering of items. colorstring <optional>
The color of the series. The chart legend item will inherit this color value. drilling"inherit" | "off" | "on" <optional>
Whether drilling is enabled on the series item. Drillable objects will show a pointer cursor on hover and fire an ojDrillevent on click (double click if selection is enabled). To enable drilling for all series items at once, use the drilling attribute in the top level.itemsArray.<oj-c.LineChart.LineItem> The line chart items belonging to this line series. lineStyle"dashed" | "solid" | "dotted" <optional>
The line style of the data line. Only applies to line, lineWithArea, scatter, and bubble series.. lineType"curved" | "straight" <optional>
The line type of the data line or area. Only applies to line, area, scatter, and bubble series. centeredStepped and centeredSegmented are not supported for polar, scatter, and bubble charts. lineWidthnumber <optional>
The width of the data line. Only applies to line, lineWithArea, scatter, and bubble series. markerColorstring <optional>
The color of the data markers, if different from the series color. markerDisplayedstring <optional>
Defines whether the data marker is displayed. Only applies to line, area, scatter, and bubble series. If auto, the markers will be displayed whenever the data points are not connected by a line. markerShape"auto" | "square" | "circle" | "diamond" | "human" | "plus" | "star" | "triangleDown" | "triangleUp" <optional>
The shape of the data markers. In addition to the built-in shapes, it may also take SVG path commands to specify a custom shape. The chart will style the custom shapes the same way as built-in shapes, supporting properties like color and borderColor and applying hover and selection effects. Only 'auto' is supported for range series. markerSizenumber <optional>
The size of the data markers. namestring <optional>
The name of the series, displayed in the legend and tooltips. shortDescstring <optional>
The description of this series. This is used for accessibility and for customizing the tooltip text on the corresponding legend item for the series. -
LineItem<K>
-
Properties:
Name Type Argument Description categoriesArray<string> <optional>
An optional array of category strings corresponding to this data item. This enables highlighting and filtering of individual data items through interactions with the legend or other visualization elements. If not defined, series categories are used. colorstring <optional>
The color of the data item. This color value is not inherited by chart legend. See chart series color and display-in-legend for more details. drilling"inherit" | "off" | "on" <optional>
Whether drilling is enabled for the data item. Drillable objects will show a pointer cursor on hover and fire an ojDrillevent on click (double click if selection is enabled). To enable drilling for all data items at once, use the drilling attribute in the top level.groupIdArray<string> The array of ids for the groups the item belongs to. For hierarchical groups, it will be an array of outermost to innermost group ids. This is also used to specify the date for non mixed frequency time axes. The specified date for non mixed frequency time axes must be an ISO string. idK The item id should be set by the application if the DataProvider is not being used. The row key will be used as id in the DataProvider case. markerDisplayed"auto" | "off" | "on" <optional>
Defines whether the data marker is displayed. Only applies to line, area, scatter, and bubble series. If auto, the markers will be displayed whenever the data points are not connected by a line. markerShape"auto" | "square" | "circle" | "diamond" | "human" | "plus" | "star" | "triangleDown" | "triangleUp" <optional>
The shape of the data markers. Only applies to line, area, scatter, and bubble series. In addition to the built-in shapes, it may also take SVG path commands to specify a custom shape. The chart will style the custom shapes the same way as built-in shapes, supporting properties like color and borderColor and applying hover and selection effects. Only 'auto' is supported for range series. markerSizenumber <optional>
The size of the data markers. Only applies to line, area, and scatter series. Does not apply to bubble charts, which calculate marker size based on the z values. seriesIdstring The id for the series the item belongs to. shortDescstring <optional>
The description of this object. This is used for accessibility and also for customizing the tooltip text. valuenumber The value for this data item. Null can be specified to skip a data point. xstring <optional>
The x value. Mainly used to specify the date for mixed-frequency time axis. The date specified in the x value must be an ISO date string. -
MajorTick
-
Properties:
Name Type Argument Description lineColorstring <optional>
The color of the line. lineStyle"dashed" | "solid" | "dotted" <optional>
The style of the line. lineWidthnumber <optional>
The width of the line. rendered"auto" | "off" | "on" Whether the tick is rendered or not. -
MinorTick
-
Properties:
Name Type Argument Description lineColorstring <optional>
The color of the line. lineStyle"dashed" | "solid" | "dotted" <optional>
The style of the line. lineWidthnumber <optional>
The width of the line. rendered"auto" | "off" | "on" Whether the tick is rendered. -
NumericalValueFormat
-
Properties:
Name Type Argument Description converterobject The converter to format the numerical value for the tooltip. tooltipDisplay"auto" | "off" <optional>
Whether the value is displayed in the tooltip. tooltipLabelstring <optional>
A string representing the label that is displayed before the value in the tooltip. This value can also take an array of strings to be applied to hierarchical group names, from outermost to innermost. -
PlotArea
-
Properties:
Name Type Argument Description backgroundColorstring <optional>
The color of the plot area background. -
TextValueFormat
-
Properties:
Name Type Argument Description tooltipDisplay"auto" | "off" <optional>
Whether the value is displayed in the tooltip. tooltipLabelstring <optional>
A string representing the label that is displayed before the value in the tooltip. This value can also take an array of strings to be applied to hierarchical group names, from outermost to innermost. -
ValueFormats
-
Properties:
Name Type Description groupoj-c.LineChart.TextValueFormat Object that specifies the value formatting and tooltip behavior for the group. seriesoj-c.LineChart.TextValueFormat Object that specifies the value formatting and tooltip behavior for the series. valueoj-c.LineChart.NumericalValueFormat Object that specifies the value formatting and tooltip behavior for the item value. -
XAxis
-
Properties:
Name Type Argument Description majorTickoj-c.LineChart.MajorTick <optional>
The object defining the properties of the major tick of the x axis. minorTickoj-c.LineChart.MinorTick <optional>
The object defining the properties of the minor tick of the x axis. scale"linear" | "log" <optional>
Defines the axis scale. If set to log, major ticks will rendered will be incremented in logarithmic ratio. sizenumber <optional>
Defines the size of the axis in terms of ratio of the width (for vertical charts) or height (for horizontal charts). stepnumber <optional>
The increment between major tick marks in y axis. Defaults to null for automatic calculation based on the data. For log axis, the step is a multiplier, for example, if the step is 2, the major tick marks will be rendered at 1, 2, 4, 8, and so on. tickLabeloj-c.LineChart.XAxisTickLabel <optional>
The object defining the properties of tick labels of the x axis. titlestring <optional>
The title of the axis. titleStyleobject <optional>
The object defining the css properties of the axis title. viewportMaxnumber <optional>
Specifies the maximum y coordinate of the current viewport for zoom and scroll. If not specified, this value will be the axis max. viewportMinnumber <optional>
Specifies the minimum y coordinate of the current viewport for zoom and scroll. If not specified, this value will be the axis min. -
XAxisTickLabel
-
Properties:
Name Type Argument Description converterConverter<string> | undefined<Converter<string>, Converter<string>> <optional>
The converter used to format the tick label of the axis. When using a time axis, this attribute also takes an array of two converters, which apply respectively to the first and second label levels. rendered"off" | "on" <optional>
Whether the tick labels are rendered or not. rotation"auto" | "none" <optional>
Defines whether the chart will automatically rotate the labels by 90 degrees in order to fit more labels on the axis. The rotation will only be applied to categorical labels for a horizontal axis. styleobject <optional>
The object defining the style of the labels. The following style properties are supported: color, cursor, fontFamily, fontSize, fontStyle, fontWeight, textDecoration, whiteSpace. The CSS white-space property can be defined with value "nowrap" to disable default text wrapping of categorical labels -
YAxis
-
Properties:
Name Type Argument Description dataMaxnumber <optional>
The maximum data value corresponding to an axis. If specified, the automatic axis extent calculation will use this value. dataMinnumber <optional>
The minimum data value corresponding to an axis. If specified, the automatic axis extent calculation will use this value. majorTickoj-c.LineChart.MajorTick <optional>
The object defining the properties of the major tick of the y axis. maxnumber <optional>
The maximum value of the axis. Defaults to null for automatic calculation based on the data. minnumber <optional>
The minumum value of the axis. Defaults to null for automatic calculation based on the data. minorTickoj-c.LineChart.MinorTick <optional>
The object defining the properties of the minor tick of the y axis. scale"linear" | "log" <optional>
Defines the axis scale. If set to log, major ticks will rendered will be incremented in logarithmic ratio. sizenumber <optional>
Defines the size of the axis in terms of ratio of the width (for vertical charts) or height (for horizontal charts). stepnumber <optional>
The increment between major tick marks in y axis. Defaults to null for automatic calculation based on the data. For log axis, the step is a multiplier, for example, if the step is 2, the major tick marks will be rendered at 1, 2, 4, 8, and so on. tickLabeloj-c.LineChart.YAxisTickLabel <optional>
The object defining the properties of tick labels of the y axis. titlestring <optional>
The title of the axis. titleStyleobject <optional>
The object defining the css properties of the axis title. The following style properties are supported: color, cursor, fontFamily, fontSize, fontStyle, fontWeight, textDecoration. viewportMaxnumber <optional>
Specifies the maximum y coordinate of the current viewport for zoom and scroll. If not specified, this value will be the axis max. viewportMinnumber <optional>
Specifies the minimum y coordinate of the current viewport for zoom and scroll. If not specified, this value will be the axis min. -
YAxisTickLabel
-
Properties:
Name Type Argument Description converterobject <optional>
The converter used to format the tick label of the axis. rendered"off" | "on" <optional>
Whether the tick labels are rendered or not. styleobject <optional>
The object defining the style of the labels. The following style properties are supported: color, cursor, fontFamily, fontSize, fontStyle, fontWeight, textDecoration.