|
|
|
@ -14,9 +14,8 @@ export type Serie = {
|
|
|
|
|
yOrientation?: yAxisOrientation, |
|
|
|
|
}; |
|
|
|
|
// TODO: move some options to line-chart
|
|
|
|
|
export type Options = { |
|
|
|
|
margin?: Margin; |
|
|
|
|
eventsCallbacks?: { |
|
|
|
|
|
|
|
|
|
export type Events = { |
|
|
|
|
zoomIn?: (range: AxisRange[]) => void, |
|
|
|
|
panning?: (event: { ranges: AxisRange[], d3Event: any }) => void, |
|
|
|
|
panningEnd?: (range: AxisRange[]) => void, |
|
|
|
@ -31,7 +30,12 @@ export type Options = {
|
|
|
|
|
renderStart?: () => void, |
|
|
|
|
renderEnd?: () => void, |
|
|
|
|
componentRenderEnd?: (part: RenderComponent) => void, |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
export type Options = { |
|
|
|
|
margin?: Margin; |
|
|
|
|
eventsCallbacks?: Events; |
|
|
|
|
events?: Events; |
|
|
|
|
axis?: AxesOptions; |
|
|
|
|
grid?: GridOptions; |
|
|
|
|
crosshair?: CrosshairOptions; |
|
|
|
|