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 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x | import { Color } from "../../coreTable/CoreTableConstants"
export enum ChartTypeName {
LineChart = "LineChart",
ScatterPlot = "ScatterPlot",
TimeScatter = "TimeScatter",
StackedArea = "StackedArea",
DiscreteBar = "DiscreteBar",
StackedDiscreteBar = "StackedDiscreteBar",
SlopeChart = "SlopeChart",
StackedBar = "StackedBar",
WorldMap = "WorldMap",
Marimekko = "Marimekko",
}
export const GRAPHER_EMBEDDED_FIGURE_ATTR = "data-grapher-src"
export const GRAPHER_PAGE_BODY_CLASS = "StandaloneGrapherOrExplorerPage"
export const GRAPHER_IS_IN_IFRAME_CLASS = "IsInIframe"
export enum CookieKey {
isAdmin = "isAdmin",
}
// We currently have the notion of "modes", where you can either select 1 entity, or select multiple entities, or not change the selection at all.
// Todo: can we remove?
export enum EntitySelectionMode {
MultipleEntities = "add-country",
SingleEntity = "change-country",
Disabled = "disabled",
}
export enum StackMode {
absolute = "absolute",
relative = "relative",
}
export const BASE_FONT_SIZE = 16
export enum FacetStrategy {
none = "none", // No facets
entity = "entity", // One chart for each country/entity
metric = "metric", // One chart for each Y column
}
export enum FacetAxisDomain {
independent = "independent", // all facets have their own y domain
shared = "shared", // all facets share the same y domain
}
export enum SeriesStrategy {
column = "column", // One line per column
entity = "entity", // One line per entity
}
export const ThereWasAProblemLoadingThisChart = `There was a problem loading this chart`
export type SeriesColorMap = Map<SeriesName, Color>
export enum GrapherTabOption {
chart = "chart",
map = "map",
sources = "sources",
download = "download",
table = "table",
}
export enum ScaleType {
linear = "linear",
log = "log",
}
export interface RelatedQuestionsConfig {
text: string
url: string
}
export const WorldEntityName = "World"
// When a user hovers over a connected series line in a ScatterPlot we show
// a label for each point. By default that value will be from the "year" column
// but by changing this option the column used for the x or y axis could be used instead.
export enum ScatterPointLabelStrategy {
year = "year",
x = "x",
y = "y",
}
// todo: remove
export interface EntitySelection {
entityId: number
index: number // Which dimension the entity is from
color?: string
}
export type SeriesName = string
|