-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
155 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,4 @@ | ||
import {Taggle, LineUp} from '../ui'; | ||
import {builder} from './DataBuilder'; | ||
|
||
export * from './DataBuilder'; | ||
export * from './column'; | ||
export * from './RankingBuilder'; | ||
export * from './adapter'; | ||
|
||
/** | ||
* build a new Taggle instance in the given node for the given data | ||
* @param {HTMLElement} node DOM node to attach to | ||
* @param {any[]} data data to visualize | ||
* @param {string[]} columns optional enforced column order | ||
* @returns {Taggle} | ||
*/ | ||
export function asTaggle(node: HTMLElement, data: any[], ...columns: string[]): Taggle { | ||
return builder(data) | ||
.deriveColumns(columns) | ||
.deriveColors() | ||
.defaultRanking() | ||
.buildTaggle(node); | ||
} | ||
|
||
/** | ||
* build a new LineUp instance in the given node for the given data | ||
* @param {HTMLElement} node DOM node to attach to | ||
* @param {any[]} data data to visualize | ||
* @param {string[]} columns optional enforced column order | ||
* @returns {LineUp} | ||
*/ | ||
export function asLineUp(node: HTMLElement, data: any[], ...columns: string[]): LineUp { | ||
return builder(data) | ||
.deriveColumns(columns) | ||
.deriveColors() | ||
.defaultRanking() | ||
.build(node); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
|
||
export interface INumberBin { | ||
/** | ||
* bin start | ||
*/ | ||
x0: number; | ||
/** | ||
* bin end | ||
*/ | ||
x1: number; | ||
/** | ||
* bin count | ||
*/ | ||
count: number; | ||
} | ||
|
||
export interface IBoxPlotData { | ||
readonly min: number; | ||
readonly max: number; | ||
readonly median: number; | ||
readonly q1: number; | ||
readonly q3: number; | ||
readonly outlier?: number[]; | ||
readonly whiskerLow?: number; | ||
readonly whiskerHigh?: number; | ||
} | ||
|
||
export interface IAdvancedBoxPlotData extends IBoxPlotData { | ||
readonly mean: number; | ||
|
||
readonly missing: number; | ||
readonly count: number; | ||
} | ||
|
||
export interface IStatistics { | ||
readonly mean: number; | ||
readonly min: number; | ||
readonly max: number; | ||
|
||
readonly missing: number; | ||
readonly count: number; | ||
|
||
readonly maxBin: number; | ||
readonly hist: ReadonlyArray<INumberBin>; | ||
} | ||
|
||
export interface ICategoricalBin { | ||
cat: string; | ||
count: number; | ||
} | ||
|
||
export interface IDateBin { | ||
x0: Date; | ||
x1: Date; | ||
count: number; | ||
} | ||
|
||
export interface ICategoricalStatistics { | ||
readonly missing: number; | ||
readonly count: number; | ||
|
||
readonly maxBin: number; | ||
readonly hist: ReadonlyArray<ICategoricalBin>; | ||
} | ||
|
||
export declare type IDateHistGranularity = 'year' | 'month' | 'day'; | ||
|
||
export interface IDateStatistics { | ||
readonly min: Date | null; | ||
readonly max: Date | null; | ||
|
||
readonly missing: number; | ||
readonly count: number; | ||
|
||
readonly maxBin: number; | ||
readonly histGranularity: IDateHistGranularity; | ||
readonly hist: ReadonlyArray<IDateBin>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
export {IDialogOptions, default as ADialog, IDialogContext} from './ADialog'; | ||
export {default as ADialog} from './ADialog'; | ||
export * from './ADialog'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.