Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | 1x 1x 1x 1x 1x | import { CoreColumn } from "../../coreTable/CoreTableColumns" import { ChartSeries } from "../chart/ChartInterface" import { ChartManager } from "../chart/ChartManager" import { ScaleType } from "../core/GrapherConstants" import { TextWrap } from "../text/TextWrap" import { Bounds } from "../../clientUtils/Bounds" export interface SlopeChartValue { x: number y: number } export interface SlopeChartSeries extends ChartSeries { size: number values: SlopeChartValue[] } export const DEFAULT_SLOPE_CHART_COLOR = "#ff7f0e" export interface SlopeProps extends ChartSeries { isLayerMode: boolean x1: number y1: number x2: number y2: number size: number hasLeftLabel: boolean hasRightLabel: boolean labelFontSize: number leftLabelBounds: Bounds rightLabelBounds: Bounds leftValueStr: string rightValueStr: string leftLabel: TextWrap rightLabel: TextWrap isFocused: boolean isHovered: boolean leftValueWidth: number rightValueWidth: number } export interface LabelledSlopesProps { manager: ChartManager yColumn: CoreColumn bounds: Bounds seriesArr: SlopeChartSeries[] focusKeys: string[] hoverKeys: string[] onMouseOver: (slopeProps: SlopeProps) => void onMouseLeave: () => void onClick: () => void } export interface SlopeAxisProps { bounds: Bounds orient: "left" | "right" column: CoreColumn scale: any scaleType: ScaleType } |