Enums
Enum classes provide type-safe configuration options for chart formatting and styling.
ArrowHead
import datawrapper as dw
connector = dw.ConnectorLine(arrow_head=dw.ArrowHead.TRIANGLE)
Name |
Value |
|---|---|
|
|
|
|
|
|
ConnectorLineType
import datawrapper as dw
connector = dw.ConnectorLine(type=dw.ConnectorLineType.CURVE_RIGHT)
Name |
Value |
|---|---|
|
|
|
|
|
|
DateFormat
import datawrapper as dw
chart = dw.LineChart(x_grid_format=dw.DateFormat.MONTH_ABBREVIATED_WITH_YEAR)
Name |
Value |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
GridDisplay
import datawrapper as dw
chart = dw.LineChart(x_grid_display=dw.GridDisplay.ON)
Name |
Value |
|---|---|
|
|
|
|
|
|
|
|
GridLabelAlign
import datawrapper as dw
chart = dw.BarChart(axis_label_align=dw.GridLabelAlign.CENTER)
Name |
Value |
|---|---|
|
|
|
|
GridLabelPosition
import datawrapper as dw
chart = dw.ColumnChart(y_grid_label_position=dw.GridLabelPosition.INSIDE)
Name |
Value |
|---|---|
|
|
|
|
|
|
|
|
|
|
LineDash
import datawrapper as dw
line = dw.Line(column="temperature", dash=dw.LineDash.DASHED)
Name |
Value |
|---|---|
|
|
|
|
|
|
|
|
LineInterpolation
import datawrapper as dw
line = dw.Line(column="temperature", interpolation=dw.LineInterpolation.CURVED)
Name |
Value |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
LineWidth
import datawrapper as dw
line = dw.Line(column="temperature", width=dw.LineWidth.THICK)
Name |
Value |
|---|---|
|
|
|
|
|
|
|
|
|
|
NumberDivisor
import datawrapper as dw
col_format = dw.ColumnFormat(column="revenue", number_divisor=dw.NumberDivisor.DIVIDE_BY_MILLION)
Name |
Value |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
NumberFormat
import datawrapper as dw
chart = dw.BarChart(axis_label_format=dw.NumberFormat.THOUSANDS_SEPARATOR)
Name |
Value |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
RegressionMethod
import datawrapper as dw
chart = dw.ScatterPlot(regression_method=dw.RegressionMethod.LINEAR)
Name |
Value |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
ReplaceFlagsType
import datawrapper as dw
chart = dw.BarChart(replace_flags=dw.ReplaceFlagsType.FOUR_BY_THREE)
Name |
Value |
|---|---|
|
|
|
|
|
|
|
|
ScatterAxisPosition
import datawrapper as dw
chart = dw.ScatterPlot(x_axis_position=dw.ScatterAxisPosition.BOTTOM)
Name |
Value |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
ScatterGridLines
import datawrapper as dw
chart = dw.ScatterPlot(x_grid_lines=dw.ScatterGridLines.ON)
Name |
Value |
|---|---|
|
|
|
|
|
|
|
|
ScatterShape
import datawrapper as dw
chart = dw.ScatterPlot(shape=dw.ScatterShape.CIRCLE)
Name |
Value |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ScatterSize
import datawrapper as dw
chart = dw.ScatterPlot(size=dw.ScatterSize.MEDIUM)
Name |
Value |
|---|---|
|
|
|
|
StrokeType
import datawrapper as dw
connector = dw.RangeAnnotation(stroke_type=dw.StrokeType.DASHED)
Name |
Value |
|---|---|
|
|
|
|
|
|
StrokeWidth
import datawrapper as dw
connector = dw.ConnectorLine(stroke=dw.StrokeWidth.MEDIUM)
Name |
Value |
|---|---|
|
|
|
|
|
|
SymbolDisplay
import datawrapper as dw
symbol = dw.LineSymbol(display=dw.SymbolDisplay.FIRST_LAST)
Name |
Value |
|---|---|
|
|
|
|
|
|
|
|
SymbolShape
import datawrapper as dw
symbol = dw.LineSymbol(shape=dw.SymbolShape.CIRCLE)
Name |
Value |
|---|---|
|
|
|
|
|
|
|
|
|
|
SymbolStyle
import datawrapper as dw
symbol = dw.LineSymbol(style=dw.SymbolStyle.OUTLINED)
Name |
Value |
|---|---|
|
|
|
|
TextAlign
import datawrapper as dw
chart = dw.TextAnnotation(align=dw.TextAlign.TOP_LEFT)
Name |
Value |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ValueLabelAlignment
import datawrapper as dw
chart = dw.BarChart(value_label_alignment=dw.ValueLabelAlignment.CENTER)
Name |
Value |
|---|---|
|
|
|
|
ValueLabelDisplay
import datawrapper as dw
chart = dw.ColumnChart(show_value_labels=dw.ValueLabelDisplay.ALWAYS)
Name |
Value |
|---|---|
|
|
|
|
|
|
ValueLabelMode
import datawrapper as dw
value_label = dw.LineValueLabel(mode=dw.ValueLabelMode.ALWAYS)
Name |
Value |
|---|---|
|
|
|
|
ValueLabelPlacement
import datawrapper as dw
chart = dw.ColumnChart(value_labels_placement=dw.ValueLabelPlacement.OUTSIDE)
Name |
Value |
|---|---|
|
|
|
|
|
|