You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
89 lines
3.1 KiB
89 lines
3.1 KiB
import { ChartwerkPod, TickOrientation, TimeFormat, AxisFormat } from '@chartwerk/core'; |
|
import { BarTimeSerie, BarOptions, RowValues } from './types'; |
|
import * as d3 from 'd3'; |
|
export declare class ChartwerkBarPod extends ChartwerkPod<BarTimeSerie, BarOptions> { |
|
barYScale: null | d3.ScaleLinear<number, number>; |
|
constructor(el: HTMLElement, _series?: BarTimeSerie[], _options?: BarOptions); |
|
protected renderMetrics(): void; |
|
setBarPodScales(): void; |
|
renderSerie(data: any): void; |
|
getTrianglePath1(x: number, y: number, length: number): string; |
|
getTrianglePath(x: number, y: number, length: number): string; |
|
getBarOpacity(rowValues: RowValues): number; |
|
mergeMacthedSeriesAndSort(matchedSeries: any[]): any; |
|
get seriesUniqKeys(): string[]; |
|
get seriesForMatching(): BarTimeSerie[][]; |
|
getZippedDataForRender(series: BarTimeSerie[]): RowValues[]; |
|
renderSharedCrosshair(values: { |
|
x?: number; |
|
y?: number; |
|
}): void; |
|
hideSharedCrosshair(): void; |
|
onMouseMove(): void; |
|
getSeriesPointFromMousePosition(eventX: number): any[] | undefined; |
|
getBarColor(serie: any): any; |
|
onMouseOver(): void; |
|
onMouseOut(): void; |
|
contextMenu(): void; |
|
get barWidth(): number; |
|
updateBarWidthWithBorders(width: number): number; |
|
getBarHeight(value: number): number; |
|
getBarPositionX(key: number, idx: number): number; |
|
getBarPositionY(val: number, idx: number, values: number[]): number; |
|
getYScale(): d3.ScaleLinear<number, number>; |
|
getYMaxValue(): number | undefined; |
|
} |
|
export declare const VueChartwerkBarChartObject: { |
|
render(createElement: any): any; |
|
mixins: { |
|
props: { |
|
id: { |
|
type: StringConstructor; |
|
required: boolean; |
|
}; |
|
series: { |
|
type: ArrayConstructor; |
|
required: boolean; |
|
default: () => any[]; |
|
}; |
|
options: { |
|
type: ObjectConstructor; |
|
required: boolean; |
|
default: () => {}; |
|
}; |
|
}; |
|
watch: { |
|
id(): void; |
|
series(): void; |
|
options(): void; |
|
}; |
|
mounted(): void; |
|
destroyed(): void; |
|
methods: { |
|
render(): void; |
|
renderSharedCrosshair(values: { |
|
x?: number; |
|
y?: number; |
|
}): void; |
|
hideSharedCrosshair(): void; |
|
onPanningRescale(event: any): void; |
|
renderChart(): void; |
|
appendEvents(): void; |
|
zoomIn(range: any): void; |
|
zoomOut(centers: any): void; |
|
mouseMove(evt: any): void; |
|
mouseOut(): void; |
|
onLegendClick(idx: any): void; |
|
panningEnd(range: any): void; |
|
panning(range: any): void; |
|
contextMenu(evt: any): void; |
|
sharedCrosshairMove(event: any): void; |
|
renderStart(): void; |
|
renderEnd(): void; |
|
}; |
|
}[]; |
|
methods: { |
|
render(): void; |
|
}; |
|
}; |
|
export { BarTimeSerie, BarOptions, TickOrientation, TimeFormat, AxisFormat };
|
|
|