igniteui-webcomponents-charts
Version:
Ignite UI Web Components charting components for building rich data visualizations using TypeScript APIs.
1,294 lines (1,288 loc) • 42.6 kB
JavaScript
import { HorizontalAlignment_$type } from "igniteui-webcomponents-core";
import { VerticalAlignment_$type } from "igniteui-webcomponents-core";
import { Visibility_$type } from "igniteui-webcomponents-core";
import { YAxisLabelLocation_$type } from "./YAxisLabelLocation";
import { XAxisLabelLocation_$type } from "./XAxisLabelLocation";
import { IgcDomainChartComponent } from "./igc-domain-chart-component";
import { getAllPropertyNames, toSpinal, brushToString, stringToBrush, ensureBool, ensureEnum, enumToString, arrayFindByName } from "igniteui-webcomponents-core";
/**
* Represents a base class for domain charts with X/Y axes
*/
export let IgcXYChartComponent = /*@__PURE__*/ (() => {
class IgcXYChartComponent extends IgcDomainChartComponent {
/**
* @hidden
*/
get i() {
return this._implementation;
}
constructor() {
super();
}
connectedCallback() {
if (super["connectedCallback"]) {
super["connectedCallback"]();
}
if (this.i.connectedCallback) {
this.i.connectedCallback();
}
if (!this._attached) {
this._attached = true;
this._flushQueuedAttributes();
}
}
disconnectedCallback() {
if (super["disconnectedCallback"]) {
super["disconnectedCallback"]();
}
if (this.i.disconnectedCallback) {
this.i.disconnectedCallback();
}
if (this._attached) {
this._attached = false;
}
}
static get observedAttributes() {
if (IgcXYChartComponent._observedAttributesIgcXYChartComponent == null) {
let names = getAllPropertyNames(IgcXYChartComponent);
for (let i = 0; i < names.length; i++) {
names[i] = toSpinal(names[i]);
}
IgcXYChartComponent._observedAttributesIgcXYChartComponent = names;
}
return IgcXYChartComponent._observedAttributesIgcXYChartComponent;
}
/**
* Gets or sets function which takes an context object and returns a formatted label for the X-axis.
*
* To customize the text of the x-axis label, set `XAxisFormatLabel` to a single-parameter function. The argument passed to that function will be your data item.
*
* ```ts
* formatX(item: any): string {
* return "[ " + item.label + "! ]";
* }
* ```
*/
get xAxisFormatLabel() {
return this.i.aay;
}
set xAxisFormatLabel(v) {
this.i.aay = v;
}
/**
* Gets or sets function which takes a context object and returns a formatted label for the Y-axis.
*
* To customize the text of the y-axis label, set `YAxisFormatLabel` to a single-parameter function. The argument passed to that function will be the numeric value corresponding to a position on the y-axis.
*
* ```ts
* formatY(value: any): string {
* return "[ " + value+ "! ]";
* }
* ```
*/
get yAxisFormatLabel() {
return this.i.aaz;
}
set yAxisFormatLabel(v) {
this.i.aaz = v;
}
/**
* Gets or sets the left margin of labels on the X-axis
*
* Use the `XAxisLabelLeftMargin` property to apply a margin left of the x-axis labels.
*
* ```ts
* this.chart.xAxisLabelLeftMargin ="100";
* ```
*/
get xAxisLabelLeftMargin() {
return this.i.acj;
}
set xAxisLabelLeftMargin(v) {
this.i.acj = +v;
this._a("xAxisLabelLeftMargin", this.i.acj);
}
/**
* Gets or sets the top margin of labels on the X-axis
*
* Use the `XAxisLabelTopMargin` property to apply a margin above the x-axis labels.
*
* ```ts
* this.chart.xAxisTitleTopMargin="250";
* ```
*/
get xAxisLabelTopMargin() {
return this.i.acl;
}
set xAxisLabelTopMargin(v) {
this.i.acl = +v;
this._a("xAxisLabelTopMargin", this.i.acl);
}
/**
* Gets or sets the right margin of labels on the X-axis
*
* Use the `XAxisLabelRightMargin` property to apply a margin right of the x-axis labels.
*
* ```ts
* this.chart.xAxisLabelRightMargin="100";
* ```
*/
get xAxisLabelRightMargin() {
return this.i.ack;
}
set xAxisLabelRightMargin(v) {
this.i.ack = +v;
this._a("xAxisLabelRightMargin", this.i.ack);
}
/**
* Gets or sets the bottom margin of labels on the X-axis
*
* Use the `XAxisLabelBottomMargin` property to apply a margin below the x-axis labels.
*
* ```ts
* this.chart.xAxisLabelBottomMargin ="100";
* ```
*/
get xAxisLabelBottomMargin() {
return this.i.aci;
}
set xAxisLabelBottomMargin(v) {
this.i.aci = +v;
this._a("xAxisLabelBottomMargin", this.i.aci);
}
/**
* Gets or sets the left margin of labels on the Y-axis
*
* Use the `YAxisLabelLeftMargin` property to apply a margin left of the y-axis labels.
*
* ```ts
* this.chart. yAxisLabelLeftMargin="250";
* ```
*/
get yAxisLabelLeftMargin() {
return this.i.ac2;
}
set yAxisLabelLeftMargin(v) {
this.i.ac2 = +v;
this._a("yAxisLabelLeftMargin", this.i.ac2);
}
/**
* Gets or sets the top margin of labels on the Y-axis
*
* Use the `YAxisLabelTopMargin` property to apply a margin above the y-axis labels.
*
* ```ts
* this.chart.yAxisLabelTopMargin="250";
* ```
*/
get yAxisLabelTopMargin() {
return this.i.ac4;
}
set yAxisLabelTopMargin(v) {
this.i.ac4 = +v;
this._a("yAxisLabelTopMargin", this.i.ac4);
}
/**
* Gets or sets the right margin of labels on the Y-axis
*
* Use the `YAxisLabelRightMargin` property to apply a margin right of the y-axis labels.
*
* ```ts
* this.chart.yAxisLabelRightMargin="250";
* ```
*/
get yAxisLabelRightMargin() {
return this.i.ac3;
}
set yAxisLabelRightMargin(v) {
this.i.ac3 = +v;
this._a("yAxisLabelRightMargin", this.i.ac3);
}
/**
* Gets or sets the bottom margin of labels on the Y-axis
*
* Use the `YAxisLabelBottomMargin` property to apply a margin below the y-axis labels.
*
* ```ts
* this.chart.yAxisLabelBottomMargin="250";
* ```
*/
get yAxisLabelBottomMargin() {
return this.i.ac1;
}
set yAxisLabelBottomMargin(v) {
this.i.ac1 = +v;
this._a("yAxisLabelBottomMargin", this.i.ac1);
}
/**
* Gets or sets color of labels on the X-axis
*
* To change the color of x-axis labels, set the `XAxisLabelTextColor` property to a color string.
*
* ```ts
* this.chart.xAxisLabelTextColor="green";
* ```
*/
get xAxisLabelTextColor() {
return brushToString(this.i.ahf);
}
set xAxisLabelTextColor(v) {
this.i.ahf = stringToBrush(v);
this._a("xAxisLabelTextColor", brushToString(this.i.ahf));
}
/**
* Gets or sets color of labels on the Y-axis
*
* To change the color of y-axis labels, set the `YAxisLabelTextColor` property to a color string.
*
* ```ts
* this.chart.yAxisLabelTextColor="green";
* ```
*/
get yAxisLabelTextColor() {
return brushToString(this.i.ahm);
}
set yAxisLabelTextColor(v) {
this.i.ahm = stringToBrush(v);
this._a("yAxisLabelTextColor", brushToString(this.i.ahm));
}
/**
* Gets the actual color of labels on the X-axis
*/
get actualXAxisLabelTextColor() {
return brushToString(this.i.ahd);
}
set actualXAxisLabelTextColor(v) {
this.i.ahd = stringToBrush(v);
this._a("actualXAxisLabelTextColor", brushToString(this.i.ahd));
}
/**
* Gets the actual color of labels on the Y-axis
*/
get actualYAxisLabelTextColor() {
return brushToString(this.i.ahe);
}
set actualYAxisLabelTextColor(v) {
this.i.ahe = stringToBrush(v);
this._a("actualYAxisLabelTextColor", brushToString(this.i.ahe));
}
/**
* Gets or sets the margin around a title on the X-axis
*
* Use the `XAxisTitleMargin` property to set a margin around the y-axis title.
*/
get xAxisTitleMargin() {
return this.i.acw;
}
set xAxisTitleMargin(v) {
this.i.acw = +v;
this._a("xAxisTitleMargin", this.i.acw);
}
/**
* Gets or sets the margin around a title on the Y-axis
*
* Use the `YAxisTitleMargin` property to set a margin around the y-axis title.
*/
get yAxisTitleMargin() {
return this.i.adf;
}
set yAxisTitleMargin(v) {
this.i.adf = +v;
this._a("yAxisTitleMargin", this.i.adf);
}
/**
* Gets or sets the left margin of a title on the X-axis
*
* Use the `XAxisTitleLeftMargin` property to apply a margin left of the x-axis title.
*
* ```ts
* this.chart.xAxisTitleLeftMargin="150";
* ```
*/
get xAxisTitleLeftMargin() {
return this.i.acv;
}
set xAxisTitleLeftMargin(v) {
this.i.acv = +v;
this._a("xAxisTitleLeftMargin", this.i.acv);
}
/**
* Gets or sets the left margin of a title on the Y-axis
*
* Use the `YAxisTitleLeftMargin` property to apply a margin left of the y-axis title.
*
* ```ts
* this.chart.yAxisTitleLeftMargin="150";
* ```
*/
get yAxisTitleLeftMargin() {
return this.i.ade;
}
set yAxisTitleLeftMargin(v) {
this.i.ade = +v;
this._a("yAxisTitleLeftMargin", this.i.ade);
}
/**
* Gets or sets the top margin of a title on the X-axis
*
* Use the `XAxisTitleTopMargin` property to apply a margin above the x-axis title.
*
* ```ts
* this.chart.xAxisTitleTopMargin="150";
* ```
*/
get xAxisTitleTopMargin() {
return this.i.acy;
}
set xAxisTitleTopMargin(v) {
this.i.acy = +v;
this._a("xAxisTitleTopMargin", this.i.acy);
}
/**
* Gets or sets the top margin of a title on the Y-axis
*
* Use the `YAxisTitleTopMargin` property to apply a margin above the y-axis title.
*
* ```ts
* this.chart.yAxisTitleTopMargin="150";
* ```
*/
get yAxisTitleTopMargin() {
return this.i.adh;
}
set yAxisTitleTopMargin(v) {
this.i.adh = +v;
this._a("yAxisTitleTopMargin", this.i.adh);
}
/**
* Gets or sets the right margin of a title on the X-axis
*
* Use the `XAxisTitleRightMargin` property to apply a margin right of the x-axis title.
*
* ```ts
* this.chart.xAxisTitleRightMargin="100";
* ```
*/
get xAxisTitleRightMargin() {
return this.i.acx;
}
set xAxisTitleRightMargin(v) {
this.i.acx = +v;
this._a("xAxisTitleRightMargin", this.i.acx);
}
/**
* Gets or sets the right margin of a title on the Y-axis
*
* Use the `YAxisTitleRightMargin` property to apply a margin right of the y-axis title.
*
* ```ts
* this.chart.yAxisTitleRightMargin="150";
* ```
*/
get yAxisTitleRightMargin() {
return this.i.adg;
}
set yAxisTitleRightMargin(v) {
this.i.adg = +v;
this._a("yAxisTitleRightMargin", this.i.adg);
}
/**
* Gets or sets the bottom margin of a title on the X-axis
*
* Use the `XAxisTitleBottomMargin` property to apply a margin below the x-axis title.
*
* ```ts
* this.chart.xAxisTitleBottomMargin="150";
* ```
*/
get xAxisTitleBottomMargin() {
return this.i.acu;
}
set xAxisTitleBottomMargin(v) {
this.i.acu = +v;
this._a("xAxisTitleBottomMargin", this.i.acu);
}
/**
* Gets or sets the bottom margin of a title on the Y-axis
*
* Use the `YAxisTitleBottomMargin` property to apply a margin below the y-axis title.
*
* ```ts
* this.chart.yAxisTitleBottomMargin="150";
* ```
*/
get yAxisTitleBottomMargin() {
return this.i.add;
}
set yAxisTitleBottomMargin(v) {
this.i.add = +v;
this._a("yAxisTitleBottomMargin", this.i.add);
}
/**
* Gets or sets color of title on the X-axis
*
* To change the color of the x-axis title, set the `XAxisTitleTextColor` property to a color string.
*
* ```ts
* this.chart.xAxisTitleTextColor="green";
* ```
*/
get xAxisTitleTextColor() {
return brushToString(this.i.ahl);
}
set xAxisTitleTextColor(v) {
this.i.ahl = stringToBrush(v);
this._a("xAxisTitleTextColor", brushToString(this.i.ahl));
}
/**
* Gets or sets color of title on the Y-axis
*
* To change the color of the y-axis title, set the `YAxisTitleTextColor` property to a color string.
*
* ```ts
* this.chart.yAxisTitleTextColor="green";
* ```
*/
get yAxisTitleTextColor() {
return brushToString(this.i.ahs);
}
set yAxisTitleTextColor(v) {
this.i.ahs = stringToBrush(v);
this._a("yAxisTitleTextColor", brushToString(this.i.ahs));
}
/**
* Gets or sets CSS font property for labels on X-axis
*
* To change the font of x-axis labels, set the `XAxisLabelTextStyle` property.
*
* ```ts
* this.chart.xAxisLabelTextStyle="italic 15px arial, sans-serif";
* ```
*/
get xAxisLabelTextStyle() {
return this.i.aeb;
}
set xAxisLabelTextStyle(v) {
this.i.aeb = v;
}
/**
* Gets or sets CSS font property for labels on Y-axis
*
* To change the font of x-axis labels, set the `YAxisLabelTextStyle` property.
*
* ```ts
* this.chart. yAxisLabelTextStyle="italic 15px arial, sans-serif";
* ```
*/
get yAxisLabelTextStyle() {
return this.i.afi;
}
set yAxisLabelTextStyle(v) {
this.i.afi = v;
}
/**
* Gets or sets CSS font property for title on X-axis
*
* To change the font of the x-axis title, set the `XAxisTitleTextStyle` property.
*
* ```ts
* this.chart.xAxisTitleTextStyle="italic 15px arial, sans-serif";
* ```
*/
get xAxisTitleTextStyle() {
return this.i.ae1;
}
set xAxisTitleTextStyle(v) {
this.i.ae1 = v;
}
/**
* Gets or sets CSS font property for title on Y-axis
*
* To change the font of the x-axis title, set the `YAxisTitleTextStyle` property.
*
* ```ts
* this.chart.yAxisTitleTextStyle="italic 15px arial, sans-serif";
* ```
*/
get yAxisTitleTextStyle() {
return this.i.af8;
}
set yAxisTitleTextStyle(v) {
this.i.af8 = v;
}
/**
* Gets or sets the format for labels along the X-axis.
*/
get xAxisLabel() {
return this.i.adk;
}
set xAxisLabel(v) {
this.i.adk = v;
}
/**
* Gets or sets the property or string from which the labels are derived.
*/
get yAxisLabel() {
return this.i.adl;
}
set yAxisLabel(v) {
this.i.adl = v;
}
/**
* Gets or sets the color to apply to major gridlines along the X-axis.
*
* Set `XAxisMajorStroke` to control the color of major gridlines extending vertically from the x-axis.
*
* ```ts
* this.chart.xAxisMajorStroke="green";
* ```
*/
get xAxisMajorStroke() {
return brushToString(this.i.ahg);
}
set xAxisMajorStroke(v) {
this.i.ahg = stringToBrush(v);
this._a("xAxisMajorStroke", brushToString(this.i.ahg));
}
/**
* Gets or sets the color to apply to major gridlines along the Y-axis.
*
* Set `YAxisMajorStroke` to control the color of major gridlines extending horizontally from the y-axis.
*
* ```ts
* this.chart.yAxisMajorStroke="green";
* ```
*/
get yAxisMajorStroke() {
return brushToString(this.i.ahn);
}
set yAxisMajorStroke(v) {
this.i.ahn = stringToBrush(v);
this._a("yAxisMajorStroke", brushToString(this.i.ahn));
}
/**
* Gets or sets the thickness to apply to major gridlines along the X-axis.
*
* Set `XAxisMajorStrokeThickness` to control the thickness of major gridlines extending vertically from the x-axis.
*
* ```ts
* this.chart.xAxisMajorStrokeThickness="3" ;
* ```
*/
get xAxisMajorStrokeThickness() {
return this.i.acm;
}
set xAxisMajorStrokeThickness(v) {
this.i.acm = +v;
this._a("xAxisMajorStrokeThickness", this.i.acm);
}
/**
* Gets or sets the thickness to apply to major gridlines along the Y-axis.
*
* Set `YAxisMajorStrokeThickness` to control the thickness of major gridlines extending horizontally from the y-axis.
*
* ```ts
* this.chart.yAxisMajorStrokeThickness="2";
* ```
*/
get yAxisMajorStrokeThickness() {
return this.i.ac5;
}
set yAxisMajorStrokeThickness(v) {
this.i.ac5 = +v;
this._a("yAxisMajorStrokeThickness", this.i.ac5);
}
/**
* Gets or sets the thickness to apply to minor gridlines along the X-axis.
*
* Set `XAxisMinorStrokeThickness` to control the thickness of minor gridlines extending vertically from the x-axis.
*
* ```ts
* this.chart.xAxisMinorStrokeThickness="3";
* ```
*/
get xAxisMinorStrokeThickness() {
return this.i.acp;
}
set xAxisMinorStrokeThickness(v) {
this.i.acp = +v;
this._a("xAxisMinorStrokeThickness", this.i.acp);
}
/**
* Gets or sets the thickness to apply to minor gridlines along the Y-axis.
*
* Set `YAxisMinorStrokeThickness` to control the thickness of minor gridlines extending horizontally from the y-axis.
*
* ```ts
* this.chart.yAxisMinorStrokeThickness="3";
* ```
*/
get yAxisMinorStrokeThickness() {
return this.i.ac8;
}
set yAxisMinorStrokeThickness(v) {
this.i.ac8 = +v;
this._a("yAxisMinorStrokeThickness", this.i.ac8);
}
/**
* Gets or sets the color to apply to stripes along the X-axis.
*
* Set `XAxisStrip` to control the alternating color of stripes extending vertically from the x-axis.
*
* ```ts
* this.chart.xAxisStrip="green";
* ```
*/
get xAxisStrip() {
return brushToString(this.i.ahi);
}
set xAxisStrip(v) {
this.i.ahi = stringToBrush(v);
this._a("xAxisStrip", brushToString(this.i.ahi));
}
/**
* Gets or sets the color to apply to stripes along the Y-axis.
*
* Set `YAxisStrip` to control the alternating color of stripes extending horizontally from the y-axis.
*
* ```ts
* this.chart.yAxisStrip="green";
* ```
*/
get yAxisStrip() {
return brushToString(this.i.ahp);
}
set yAxisStrip(v) {
this.i.ahp = stringToBrush(v);
this._a("yAxisStrip", brushToString(this.i.ahp));
}
/**
* Gets or sets the color to apply to the X-axis line.
*
* Set `XAxisStroke` to control the color of the x-axis line.
*
* ```ts
* this.chart.xAxisStroke="green"";
* ```
*/
get xAxisStroke() {
return brushToString(this.i.ahj);
}
set xAxisStroke(v) {
this.i.ahj = stringToBrush(v);
this._a("xAxisStroke", brushToString(this.i.ahj));
}
/**
* Gets or sets the color to apply to the Y-axis line.
*
* Set `YAxisStroke` to control the color of the y-axis line.
*
* ```ts
* this.chart.yAxisStroke="green";
* ```
*/
get yAxisStroke() {
return brushToString(this.i.ahq);
}
set yAxisStroke(v) {
this.i.ahq = stringToBrush(v);
this._a("yAxisStroke", brushToString(this.i.ahq));
}
/**
* Gets or sets the thickness to apply to the X-axis line.
*
* Set `XAxisStrokeThickness` to control the thickness of the x-axis line.
*
* ```ts
* this.chart.xAxisStrokeThickness="2";
* ```
*/
get xAxisStrokeThickness() {
return this.i.acq;
}
set xAxisStrokeThickness(v) {
this.i.acq = +v;
this._a("xAxisStrokeThickness", this.i.acq);
}
/**
* Gets or sets the thickness to apply to the Y-axis line.
*
* Set `YAxisStrokeThickness` to control the thickness of the y-axis line.
*
* ```ts
* this.chart. yAxisStrokeThickness="2";
* ```
*/
get yAxisStrokeThickness() {
return this.i.ac9;
}
set yAxisStrokeThickness(v) {
this.i.ac9 = +v;
this._a("yAxisStrokeThickness", this.i.ac9);
}
/**
* Gets or sets the length of tickmarks along the X-axis.
*
* Set `XAxisTickLength` to control the length of tickmarks extending vertically from the x-axis line.
*
* ```ts
* this.chart.xAxisTickLength="25";
* ```
*/
get xAxisTickLength() {
return this.i.acr;
}
set xAxisTickLength(v) {
this.i.acr = +v;
this._a("xAxisTickLength", this.i.acr);
}
/**
* Gets or sets the length of tickmarks along the Y-axis.
*
* Set `YAxisTickLength` to control the length of tickmarks extending horizontally from the y-axis line.
*
* ```ts
* this.chart.yAxisTickLength="25";
* ```
*/
get yAxisTickLength() {
return this.i.ada;
}
set yAxisTickLength(v) {
this.i.ada = +v;
this._a("yAxisTickLength", this.i.ada);
}
/**
* Gets or sets the color to apply to tickmarks along the X-axis.
*
* Set `XAxisTickStroke` to control the color of tickmarks extending vertically from the x-axis line.
*
* ```ts
* this.chart. xAxisTickStroke="green";
* ```
*/
get xAxisTickStroke() {
return brushToString(this.i.ahk);
}
set xAxisTickStroke(v) {
this.i.ahk = stringToBrush(v);
this._a("xAxisTickStroke", brushToString(this.i.ahk));
}
/**
* Gets or sets the color to apply to tickmarks along the Y-axis.
*
* Set `YAxisTickStroke` to control the color of tickmarks extending horizontally from the y-axis line.
*
* ```ts
* this.chart.yAxisTickStroke="green";
* ```
*/
get yAxisTickStroke() {
return brushToString(this.i.ahr);
}
set yAxisTickStroke(v) {
this.i.ahr = stringToBrush(v);
this._a("yAxisTickStroke", brushToString(this.i.ahr));
}
/**
* Gets or sets the thickness to apply to tickmarks along the X-axis.
*
* Set `XAxisTickStrokeThickness` to control the thickness of tickmarks extending vertically from the x-axis line.
*
* ```ts
* this.chart.xAxisTickStrokeThickness="20";
* ```
*/
get xAxisTickStrokeThickness() {
return this.i.acs;
}
set xAxisTickStrokeThickness(v) {
this.i.acs = +v;
this._a("xAxisTickStrokeThickness", this.i.acs);
}
/**
* Gets or sets the thickness to apply to tickmarks along the Y-axis.
*
* Set `YAxisTickStrokeThickness` to control the thickness of tickmarks extending vertically from the y-axis line.
*
* ```ts
* this.chart.yAxisTickStrokeThickness="25";
* ```
*/
get yAxisTickStrokeThickness() {
return this.i.adb;
}
set yAxisTickStrokeThickness(v) {
this.i.adb = +v;
this._a("yAxisTickStrokeThickness", this.i.adb);
}
/**
* Gets or sets the Text to display below the X-axis.
*
* Set `XAxisTitle` to display a label adjacent to the x-axis.
*
* ```ts
* this.chart. xAxisTitle="x axis";
* ```
*/
get xAxisTitle() {
return this.i.aes;
}
set xAxisTitle(v) {
this.i.aes = v;
}
/**
* Gets or sets the Text to display to the left of the Y-axis.
*
* Set `YAxisTitle` to display a label adjacent to the y-axis.
*
* ```ts
* this.chart.yAxisTitle="y axis";
* ```
*/
get yAxisTitle() {
return this.i.afz;
}
set yAxisTitle(v) {
this.i.afz = v;
}
/**
* Gets or sets the color to apply to minor gridlines along the X-axis.
*
* Set `XAxisMinorStroke` to control the color of minor gridlines extending vertically from the x-axis.
*
* ```ts
* this.chart.xAxisExtent="250";
* ```
*/
get xAxisMinorStroke() {
return brushToString(this.i.ahh);
}
set xAxisMinorStroke(v) {
this.i.ahh = stringToBrush(v);
this._a("xAxisMinorStroke", brushToString(this.i.ahh));
}
/**
* Gets or sets the color to apply to minor gridlines along the Y-axis.
*
* Set `YAxisMinorStroke` to control the color of minor gridlines extending horizontally from the y-axis.
*
* ```ts
* this.chart.yAxisMinorStroke="green";
* ```
*/
get yAxisMinorStroke() {
return brushToString(this.i.aho);
}
set yAxisMinorStroke(v) {
this.i.aho = stringToBrush(v);
this._a("yAxisMinorStroke", brushToString(this.i.aho));
}
/**
* Gets or sets the angle of rotation for labels along the X-axis.
*
* To control the rotation of labels on the x-axis, set the `XAxisLabelAngle` property to a number of rotational degrees.
*
* ```ts
* this.chart.xAxisLabelAngle="45";
* ```
*/
get xAxisLabelAngle() {
return this.i.ach;
}
set xAxisLabelAngle(v) {
this.i.ach = +v;
this._a("xAxisLabelAngle", this.i.ach);
}
/**
* Gets or sets the angle of rotation for labels along the Y-axis.
*
* To control the rotation of labels on the y-axis, set the `YAxisLabelAngle` property to a number of rotational degrees.
*
* ```ts
* this.chart.yAxisLabelAngle="25";
* ```
*/
get yAxisLabelAngle() {
return this.i.ac0;
}
set yAxisLabelAngle(v) {
this.i.ac0 = +v;
this._a("yAxisLabelAngle", this.i.ac0);
}
/**
* Gets or sets the distance between the X-axis and the bottom of the chart.
*
* To allocate space between the x-axis and the edge of the chart, set the `XAxisExtent` property.
*
* ```ts
* this.chart.xAxisExtent="250";
* ```
*/
get xAxisExtent() {
return this.i.acg;
}
set xAxisExtent(v) {
this.i.acg = +v;
this._a("xAxisExtent", this.i.acg);
}
/**
* Gets or sets the distance between the Y-axis and the left edge of the chart.
*
* To allocate space between the x-axis and the edge of the chart, set the `XAxisExtent` property.
*
* ```ts
* this.chart.xAxisExtent="250";
* ```
*/
get yAxisExtent() {
return this.i.acz;
}
set yAxisExtent(v) {
this.i.acz = +v;
this._a("yAxisExtent", this.i.acz);
}
/**
* Gets or sets the distance between the X-axis and the bottom of the chart.
*/
get xAxisMaximumExtent() {
return this.i.acn;
}
set xAxisMaximumExtent(v) {
this.i.acn = +v;
this._a("xAxisMaximumExtent", this.i.acn);
}
/**
* Gets or sets the distance between the Y-axis and the left edge of the chart.
*/
get yAxisMaximumExtent() {
return this.i.ac6;
}
set yAxisMaximumExtent(v) {
this.i.ac6 = +v;
this._a("yAxisMaximumExtent", this.i.ac6);
}
/**
* Gets or sets the distance between the X-axis and the bottom of the chart.
*/
get xAxisMaximumExtentPercentage() {
return this.i.aco;
}
set xAxisMaximumExtentPercentage(v) {
this.i.aco = +v;
this._a("xAxisMaximumExtentPercentage", this.i.aco);
}
/**
* Gets or sets the distance between the Y-axis and the left edge of the chart.
*/
get yAxisMaximumExtentPercentage() {
return this.i.ac7;
}
set yAxisMaximumExtentPercentage(v) {
this.i.ac7 = +v;
this._a("yAxisMaximumExtentPercentage", this.i.ac7);
}
/**
* Gets or sets the angle of rotation for the X-axis title.
*
* Set `XAxisTitleAngle` to control the rotation of the x-axis title.
*
* ```ts
* this.chart.xAxisTitleAngle="50";
* ```
*/
get xAxisTitleAngle() {
return this.i.act;
}
set xAxisTitleAngle(v) {
this.i.act = +v;
this._a("xAxisTitleAngle", this.i.act);
}
/**
* Gets or sets the angle of rotation for the Y-axis title.
*
* Set `YAxisTitleAngle` to control the rotation of the y-axis title.
*
* ```ts
* this.chart.yAxisTitleAngle="25";
* ```
*/
get yAxisTitleAngle() {
return this.i.adc;
}
set yAxisTitleAngle(v) {
this.i.adc = +v;
this._a("yAxisTitleAngle", this.i.adc);
}
/**
* Gets or sets whether to invert the direction of the X-axis by placing the first data items on the right side of the chart.
*
* To reverse the direction of items along the x-axis, set the `XAxisInverted` property to true.
*
* ```ts
* this.chart.XAxisInverted="True";
* ```
*/
get xAxisInverted() {
return this.i.aa8;
}
set xAxisInverted(v) {
this.i.aa8 = ensureBool(v);
this._a("xAxisInverted", this.i.aa8);
}
/**
* Gets or sets whether to invert the direction of the Y-axis by placing the minimum numeric value at the top of the chart.
*
* You can use `YAxisInverted` to invert the scale of the y axis like this:
*
* ```ts
* this.chart.yAxisInverted="true";
* ```
*
* The default value of `YAxisInverted` is false.
*/
get yAxisInverted() {
return this.i.aa9;
}
set yAxisInverted(v) {
this.i.aa9 = ensureBool(v);
this._a("yAxisInverted", this.i.aa9);
}
/**
* Gets or sets Horizontal alignment of the X-axis title.
*
* Set `XAxisTitleAlignment` to control the horizontal alignment of the x-axis title.
*
* ```ts
* this.chart.xAxisTitleAlignment="right";
* ```
*/
get xAxisTitleAlignment() {
return this.i.agv;
}
set xAxisTitleAlignment(v) {
this.i.agv = ensureEnum(HorizontalAlignment_$type, v);
this._a("xAxisTitleAlignment", enumToString(HorizontalAlignment_$type, this.i.agv));
}
/**
* Gets or sets Vertical alignment of the Y-axis title.
*
* Set `YAxisTitleAlignment` to control the vertical alignment of the x-axis title.
*
* ```ts
* this.chart.yAxisTitleAlignment="bottom";
* ```
*/
get yAxisTitleAlignment() {
return this.i.ahy;
}
set yAxisTitleAlignment(v) {
this.i.ahy = ensureEnum(VerticalAlignment_$type, v);
this._a("yAxisTitleAlignment", enumToString(VerticalAlignment_$type, this.i.ahy));
}
/**
* Gets or sets Horizontal alignment of X-axis labels.
*/
get xAxisLabelHorizontalAlignment() {
return this.i.agu;
}
set xAxisLabelHorizontalAlignment(v) {
this.i.agu = ensureEnum(HorizontalAlignment_$type, v);
this._a("xAxisLabelHorizontalAlignment", enumToString(HorizontalAlignment_$type, this.i.agu));
}
/**
* Gets or sets Horizontal alignment of Y-axis labels.
*
* Set the `YAxisLabelHorizontalAlignment` property to change the horizontal alignment of y-axis labels.
*/
get yAxisLabelHorizontalAlignment() {
return this.i.agw;
}
set yAxisLabelHorizontalAlignment(v) {
this.i.agw = ensureEnum(HorizontalAlignment_$type, v);
this._a("yAxisLabelHorizontalAlignment", enumToString(HorizontalAlignment_$type, this.i.agw));
}
/**
* Gets or sets Vertical alignment of X-axis labels.
*
* Use the `XAxisLabelVerticalAlignment` property to change the vertical position of x-axis labels.
*
* ```ts
* this.chart.xAxisLabelVerticalAlignment="bottom";
* ```
*/
get xAxisLabelVerticalAlignment() {
return this.i.ahw;
}
set xAxisLabelVerticalAlignment(v) {
this.i.ahw = ensureEnum(VerticalAlignment_$type, v);
this._a("xAxisLabelVerticalAlignment", enumToString(VerticalAlignment_$type, this.i.ahw));
}
/**
* Gets or sets Vertical alignment of Y-axis labels.
*/
get yAxisLabelVerticalAlignment() {
return this.i.ahx;
}
set yAxisLabelVerticalAlignment(v) {
this.i.ahx = ensureEnum(VerticalAlignment_$type, v);
this._a("yAxisLabelVerticalAlignment", enumToString(VerticalAlignment_$type, this.i.ahx));
}
/**
* Gets or sets Visibility of X-axis labels.
*
* To hide the x-axis labels, set `XAxisLabelVisibility` to collapsed.
*
* ```ts
* this.chart.xAxisLabelVisibility="collapsed";
* ```
*/
get xAxisLabelVisibility() {
return this.i.ah1;
}
set xAxisLabelVisibility(v) {
this.i.ah1 = ensureEnum(Visibility_$type, v);
this._a("xAxisLabelVisibility", enumToString(Visibility_$type, this.i.ah1));
}
/**
* Gets or sets Visibility of Y-axis labels.
*
* To hide the y-axis labels, set `YAxisLabelVisibility` to collapsed.
*
* ```ts
* this.chart.yAxisLabelVisibility="collapsed"";
* ```
*/
get yAxisLabelVisibility() {
return this.i.ah2;
}
set yAxisLabelVisibility(v) {
this.i.ah2 = ensureEnum(Visibility_$type, v);
this._a("yAxisLabelVisibility", enumToString(Visibility_$type, this.i.ah2));
}
/**
* Gets or sets location of Y-axis labels, relative to the plot area.
*
* Set the `YAxisLabelLocation` property to change the location of the y-axis and its labels.
*
* ```ts
* this.chart.yAxisLabelLocation="outsideRight";
* ```
*/
get yAxisLabelLocation() {
return this.i.aa5;
}
set yAxisLabelLocation(v) {
this.i.aa5 = ensureEnum(YAxisLabelLocation_$type, v);
this._a("yAxisLabelLocation", enumToString(YAxisLabelLocation_$type, this.i.aa5));
}
/**
* Gets or sets location of X-axis labels, relative to the plot area.
*/
get xAxisLabelLocation() {
return this.i.aa3;
}
set xAxisLabelLocation(v) {
this.i.aa3 = ensureEnum(XAxisLabelLocation_$type, v);
this._a("xAxisLabelLocation", enumToString(XAxisLabelLocation_$type, this.i.aa3));
}
/**
* Gets or sets the format string for the X axis label.
*/
get xAxisLabelFormat() {
return this.i.ad2;
}
set xAxisLabelFormat(v) {
this.i.ad2 = v;
}
/**
* Gets or sets the format specifiers to use with the XAxisLabelFormat string.
*/
get xAxisLabelFormatSpecifiers() {
return this.i.aas;
}
set xAxisLabelFormatSpecifiers(v) {
if (v && !Array.isArray(v) && typeof (v) == "string") {
const re = /\s*(?:,|\s|$)\s*/gm;
v = v.split(re);
}
this.i.aas = v;
}
/**
* Gets or sets the format string for the Y axis label.
*/
get yAxisLabelFormat() {
return this.i.ae9;
}
set yAxisLabelFormat(v) {
this.i.ae9 = v;
}
/**
* Gets or sets the format specifiers to use with the YAxisLabelFormat string.
*/
get yAxisLabelFormatSpecifiers() {
return this.i.aat;
}
set yAxisLabelFormatSpecifiers(v) {
if (v && !Array.isArray(v) && typeof (v) == "string") {
const re = /\s*(?:,|\s|$)\s*/gm;
v = v.split(re);
}
this.i.aat = v;
}
findByName(name) {
var baseResult = super.findByName(name);
if (baseResult) {
return baseResult;
}
if (this.xAxisLabelFormatSpecifiers != null && arrayFindByName(this.xAxisLabelFormatSpecifiers, name)) {
return arrayFindByName(this.xAxisLabelFormatSpecifiers, name);
}
if (this.yAxisLabelFormatSpecifiers != null && arrayFindByName(this.yAxisLabelFormatSpecifiers, name)) {
return arrayFindByName(this.yAxisLabelFormatSpecifiers, name);
}
return null;
}
/**
* Called by the UI framework to provide a UI container for rendering this control.
* @param container * The UI container element.
*/
provideContainer(container) {
this.i.provideContainer(container);
}
/**
* Converts the given visual location to a data value.
* @param unscaledValue * The x-coordinate of the location to scale.
*/
getScaledValueX(unscaledValue) {
let iv = this.i.acc(unscaledValue);
return (iv);
}
/**
* Converts the given data value to a visual location.
* @param scaledValue * The data value to un-scale.
*/
getUnscaledValueX(scaledValue) {
let iv = this.i.ace(scaledValue);
return (iv);
}
/**
* Converts the given visual location to a data value.
* @param unscaledValue * The y-coordinate of the location to scale.
*/
getScaledValueY(unscaledValue) {
let iv = this.i.acd(unscaledValue);
return (iv);
}
/**
* Converts the given data value to a visual location.
* @param scaledValue * The data value to un-scale.
*/
getUnscaledValueY(scaledValue) {
let iv = this.i.acf(scaledValue);
return (iv);
}
}
IgcXYChartComponent._observedAttributesIgcXYChartComponent = null;
return IgcXYChartComponent;
})();