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