class Data extends Object
- Annotations
- @RawJSType() @ScalaJSDefined()
- Note
JavaScript name:
data
- Alphabetic
- By Inheritance
- Data
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Data()
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
val
columns: UndefOr[Array[Array[Any]]]
A two-dimensional array representing the input data on tabular form.
A two-dimensional array representing the input data on tabular form. This input can be used when the data is already parsed, for example from a grid view component. Each cell can be a string or number. If not switchRowsAndColumns is set, the columns are interpreted as series.
- Since
4.0
Example: -
val
complete: UndefOr[Function]
The callback that is evaluated when the data is finished loading, optionally from an external source, and parsed.
The callback that is evaluated when the data is finished loading, optionally from an external source, and parsed. The first argument passed is a finished chart options object, containing the series. These options can be extended with additional options and passed directly to the chart constructor.
- Since
4.0
Example: -
val
csv: UndefOr[String]
A comma delimited string to be parsed.
A comma delimited string to be parsed. Related options are startRow, endRow, startColumn and endColumn to delimit what part of the table is used. The lineDelimiter and itemDelimiter options define the CSV delimiter formats.
The built-in CSV parser doesn't support all flavours of CSV, so in some cases it may be necessary to use an external CSV parser. See this example of parsing CSV through the MIT licensed Papa Parse library.
- Since
4.0
Example: -
val
dateFormat: UndefOr[String]
Which of the predefined date formats in Date.prototype.dateFormats to use to parse date values.
Which of the predefined date formats in Date.prototype.dateFormats to use to parse date values. Defaults to a best guess based on what format gives valid and ordered dates.
Valid options include:
YYYY-mm-dd
dd/mm/YYYY
mm/dd/YYYY
dd/mm/YY
mm/dd/YY
- Since
4.0
Example: -
val
decimalPoint: UndefOr[String]
The decimal point used for parsing numbers in the CSV.
The decimal point used for parsing numbers in the CSV.
- Since
4.1.0
Example: -
val
endColumn: UndefOr[Double]
In tabular input data, the last column (indexed by 0) to use.
In tabular input data, the last column (indexed by 0) to use. Defaults to the last column containing data.
- Since
4.0
Example: -
val
endRow: UndefOr[Double]
In tabular input data, the last row (indexed by 0) to use.
In tabular input data, the last row (indexed by 0) to use. Defaults to the last row containing data.
- Since
4.0.4
Example: -
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
val
firstRowAsNames: UndefOr[Boolean]
Whether to use the first row in the data set as series names.
Whether to use the first row in the data set as series names.
- Since
4.1.0
Example: -
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
val
googleSpreadsheetKey: UndefOr[String]
The key for a Google Spreadsheet to load.
The key for a Google Spreadsheet to load. See general information on GS.
- Since
4.0
Example: -
val
googleSpreadsheetWorksheet: UndefOr[String]
The Google Spreadsheet worksheet to use in combination with googleSpreadsheetKey.
The Google Spreadsheet worksheet to use in combination with googleSpreadsheetKey. The available id's from your sheet can be read from
https://spreadsheets.google.com/feeds/worksheets/{key}/public/basic
- Since
4.0
Example: -
def
hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
-
val
itemDelimiter: UndefOr[String]
Item or cell delimiter for parsing CSV.
Item or cell delimiter for parsing CSV. Defaults to the tab character
\t
if a tab character is found in the CSV string, if not it defaults to,
.- Since
4.0
Example: -
val
lineDelimiter: UndefOr[String]
Line delimiter for parsing CSV.
Line delimiter for parsing CSV.
- Since
4.0
Example: -
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
val
parseDate: UndefOr[Function]
A callback function to parse string representations of dates into JavaScript timestamps.
A callback function to parse string representations of dates into JavaScript timestamps. Should return an integer timestamp on success.
- Since
4.0
-
val
parsed: UndefOr[Function]
A callback function to access the parsed columns, the two-dimentional input data array directly, before they are interpreted into series data and categories.
A callback function to access the parsed columns, the two-dimentional input data array directly, before they are interpreted into series data and categories. Return
false
to stop completion, or callthis.complete()
to continue async.- Since
4.0
Example: -
def
propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
-
val
rows: UndefOr[Array[Array[Any]]]
The same as the columns input option, but defining rows intead of columns.
The same as the columns input option, but defining rows intead of columns.
- Since
4.0
Example: -
val
seriesMapping: UndefOr[Array[Object]]
An array containing object with Point property names along with what column id the property should be taken from.
An array containing object with Point property names along with what column id the property should be taken from.
- Since
4.0.4
Example: -
val
startColumn: UndefOr[Double]
In tabular input data, the first column (indexed by 0) to use.
In tabular input data, the first column (indexed by 0) to use.
- Since
4.0
Example: -
val
startRow: UndefOr[Double]
In tabular input data, the first row (indexed by 0) to use.
In tabular input data, the first row (indexed by 0) to use.
- Since
4.0
Example: -
val
switchRowsAndColumns: UndefOr[Boolean]
Switch rows and columns of the input data, so that
this.columns
effectively becomes the rows of the data set, and the rows are interpreted as series.Switch rows and columns of the input data, so that
this.columns
effectively becomes the rows of the data set, and the rows are interpreted as series.- Since
4.0
Example: -
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
val
table: UndefOr[String]
A HTML table or the id of such to be parsed as input data.
A HTML table or the id of such to be parsed as input data. Related options are
startRow
,endRow
,startColumn
andendColumn
to delimit what part of the table is used.- Since
4.0
Example: -
def
toLocaleString(): String
- Definition Classes
- Object
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
valueOf(): Any
- Definition Classes
- Object
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )