altair.TopLevelMixin
altair.TopLevelMixin(*args, **kwds)
Примесь для объектов диаграмм верхнего уровня, например Chart, LayeredChart и других.
Конструктор
__init__(*args, **kwds)
Методы
| Метод | Описание |
|---|---|
__init__ |
|
configure(arc, area, aria, autosize, …) |
См. Config, обёртку схемы. |
configure_arc(align, angle, aria, ariaRole, …) |
См. RectConfig, обёртку схемы. |
configure_area(align, angle, aria, ariaRole, …) |
См. AreaConfig, обёртку схемы. |
configure_axis(aria, bandPosition, description, disable, …) |
См. AxisConfig, обёртку схемы. |
configure_axisBand(aria, bandPosition, description, disable, …) |
См. AxisConfig, обёртку схемы. |
configure_axisBottom(aria, bandPosition, description, disable, …) |
См. AxisConfig, обёртку схемы. |
configure_axisDiscrete(aria, bandPosition, description, disable, …) |
См. AxisConfig, обёртку схемы. |
configure_axisLeft(aria, bandPosition, description, disable, …) |
См. AxisConfig, обёртку схемы. |
configure_axisPoint(aria, bandPosition, description, disable, …) |
См. AxisConfig, обёртку схемы. |
configure_axisQuantitative(aria, bandPosition, description, disable, …) |
См. AxisConfig, обёртку схемы. |
configure_axisRight(aria, bandPosition, description, disable, …) |
См. AxisConfig, обёртку схемы. |
configure_axisTemporal(aria, bandPosition, description, disable, …) |
См. AxisConfig, обёртку схемы. |
configure_axisTop(aria, bandPosition, description, disable, …) |
См. AxisConfig, обёртку схемы. |
configure_axisX(aria, bandPosition, description, disable, …) |
См. AxisConfig, обёртку схемы. |
configure_axisXBand(aria, bandPosition, description, disable, …) |
См. AxisConfig, обёртку схемы. |
configure_axisXDiscrete(aria, bandPosition, description, disable, …) |
См. AxisConfig, обёртку схемы. |
configure_axisXPoint(aria, bandPosition, description, disable, …) |
См. AxisConfig, обёртку схемы. |
configure_axisXQuantitative(aria, bandPosition, description, disable, …) |
См. AxisConfig, обёртку схемы. |
configure_axisXTemporal(aria, bandPosition, description, disable, …) |
См. AxisConfig, обёртку схемы. |
configure_axisY(aria, bandPosition, description, disable, …) |
См. AxisConfig, обёртку схемы. |
configure_axisYBand(aria, bandPosition, description, disable, …) |
См. AxisConfig, обёртку схемы. |
configure_axisYDiscrete(aria, bandPosition, description, disable, …) |
См. AxisConfig, обёртку схемы. |
configure_axisYPoint(aria, bandPosition, description, disable, …) |
См. AxisConfig, обёртку схемы. |
configure_axisYQuantitative(aria, bandPosition, description, disable, …) |
См. AxisConfig, обёртку схемы. |
configure_axisYTemporal(aria, bandPosition, description, disable, …) |
См. AxisConfig, обёртку схемы. |
configure_bar(align, angle, aria, ariaRole, …) |
См. BarConfig, обёртку схемы. |
configure_boxplot(box, extent, median, outliers, …) |
См. BoxPlotConfig, обёртку схемы. |
configure_circle(align, angle, aria, ariaRole, …) |
См. MarkConfig, обёртку схемы. |
configure_concat(columns, spacing, **kwds) |
См. CompositionConfig, обёртку схемы. |
configure_errorband(band, borders, extent, interpolate, …) |
См. ErrorBandConfig, обёртку схемы. |
configure_errorbar(extent, rule, size, thickness, …) |
См. ErrorBarConfig, обёртку схемы. |
configure_facet(columns, spacing, **kwds) |
См. CompositionConfig, обёртку схемы. |
configure_geoshape(align, angle, aria, ariaRole, …) |
См. MarkConfig, обёртку схемы. |
configure_header(format, formatType, labelAlign, labelAnchor, …) |
См. HeaderConfig, обёртку схемы. |
configure_headerColumn(format, formatType, labelAlign, labelAnchor, …) |
См. HeaderConfig, обёртку схемы. |
configure_headerFacet(format, formatType, labelAlign, labelAnchor, …) |
См. HeaderConfig, обёртку схемы. |
configure_headerRow(format, formatType, labelAlign, labelAnchor, …) |
См. HeaderConfig, обёртку схемы. |
configure_image(align, angle, aria, ariaRole, …) |
См. RectConfig, обёртку схемы. |
configure_legend(aria, clipHeight, columnPadding, columns, …) |
См. LegendConfig, обёртку схемы. |
configure_line(align, angle, aria, ariaRole, …) |
См. LineConfig, обёртку схемы. |
configure_mark(align, angle, aria, ariaRole, …) |
См. MarkConfig, обёртку схемы. |
configure_point(align, angle, aria, ariaRole, …) |
См. MarkConfig, обёртку схемы. |
configure_projection(center, clipAngle, clipExtent, coefficient, …) |
См. ProjectionConfig, обёртку схемы. |
configure_range(category, diverging, heatmap, ordinal, …) |
См. RangeConfig, обёртку схемы. |
configure_rect(align, angle, aria, ariaRole, …) |
См. RectConfig, обёртку схемы. |
configure_rule(align, angle, aria, ariaRole, …) |
См. MarkConfig, обёртку схемы. |
configure_scale(animationDuration, bandPaddingInner, bandPaddingOuter, bandWithNestedOffsetPaddingInner, …) |
См. ScaleConfig, обёртку схемы. |
configure_selection(interval, point, **kwds) |
См. SelectionConfig, обёртку схемы. |
configure_square(align, angle, aria, ariaRole, …) |
См. MarkConfig, обёртку схемы. |
configure_text(align, angle, aria, ariaRole, …) |
См. MarkConfig, обёртку схемы. |
configure_tick(align, angle, aria, ariaRole, …) |
См. TickConfig, обёртку схемы. |
configure_title(align, anchor, angle, aria, …) |
См. TitleConfig, обёртку схемы. |
configure_tooltipFormat(normalizedNumberFormat, normalizedNumberFormatType, numberFormat, numberFormatType, …) |
См. FormatConfig, обёртку схемы. |
configure_trail(align, angle, aria, ariaRole, …) |
См. LineConfig, обёртку схемы. |
configure_view(clip, continuousHeight, continuousWidth, cornerRadius, …) |
См. ViewConfig, обёртку схемы. |
copy(deep, ignore) |
Возвращает копию объекта. |
display(renderer, theme, actions, **kwargs) |
Отображает диаграмму в Jupyter Notebook или JupyterLab. |
from_dict(dct, validate) |
Создаёт экземпляр класса из представления в виде словаря. |
from_json(json_string, validate, **kwargs) |
Создаёт экземпляр объекта из корректной строки JSON. |
open_editor(fullscreen, validate) |
Открывает спецификацию в редакторе диаграмм Vega через браузер по умолчанию. |
project(type, center, clipAngle, clipExtent, …) |
Добавляет географическую проекцию к диаграмме. |
properties(**kwargs) |
Задаёт свойства Chart верхнего уровня. |
repeat(repeat, row, column, layer, …) |
Возвращает RepeatChart, созданный из диаграммы. |
resolve_axis(x, y, **kwds) |
См. AxisResolveMap, обёртку схемы. |
resolve_legend(angle, color, fill, fillOpacity, …) |
См. LegendResolveMap, обёртку схемы. |
resolve_references(schema) |
Разрешает ссылки в контексте схемы объекта или корневой схемы. |
resolve_scale(angle, color, fill, fillOpacity, …) |
См. ScaleResolveMap, обёртку схемы. |
save(fp, format, override_data_transformer, scale_factor, …) |
Сохраняет диаграмму в файл в одном из поддерживаемых форматов. |
serve(ip, port, n_retries, files, …) |
serve устарел; используйте show. |
show() |
Отображает диаграмму активным средством отображения. |
to_dict(validate, format, ignore, context) |
Преобразует диаграмму в словарь для экспорта JSON. |
to_html(base_url, output_div, embed_options, json_kwds, …) |
Встраивает спецификацию Vega/Vega-Lite в HTML-страницу. |
to_json(validate, indent, sort_keys, format, …) |
Преобразует диаграмму в строку JSON. |
to_url(fullscreen, validate) |
Преобразует диаграмму в URL, открывающий спецификацию в редакторе Vega. |
transform_aggregate(aggregate, groupby, **kwds) |
Добавляет AggregateTransform к схеме. |
transform_bin(as_, field, bin, **kwargs) |
Добавляет BinTransform к схеме. |
transform_calculate(as_, calculate, **kwargs) |
Добавляет CalculateTransform к схеме. |
transform_density(density, as_, bandwidth, counts, …) |
Добавляет DensityTransform к спецификации. |
transform_extent(extent, param) |
Добавляет ExtentTransform к спецификации. |
transform_filter(predicate, empty, *more_predicates, **constraints) |
Добавляет FilterTransform к спецификации. |
transform_flatten(flatten, as_) |
Добавляет FlattenTransform к схеме. |
transform_fold(fold, as_) |
Добавляет FoldTransform к спецификации. |
transform_impute(impute, key, frame, groupby, …) |
Добавляет ImputeTransform к схеме. |
transform_joinaggregate(joinaggregate, groupby, **kwargs) |
Добавляет JoinAggregateTransform к схеме. |
transform_loess(on, loess, as_, bandwidth, …) |
Добавляет LoessTransform к спецификации. |
transform_lookup(lookup, from_, as_, default, …) |
Добавляет DataLookupTransform или SelectionLookupTransform к диаграмме. |
transform_pivot(pivot, value, groupby, limit, …) |
Добавляет PivotTransform к диаграмме. |
transform_quantile(quantile, as_, groupby, probs, …) |
Добавляет QuantileTransform к диаграмме. |
transform_regression(on, regression, as_, extent, …) |
Добавляет RegressionTransform к диаграмме. |
transform_sample(sample) |
Добавляет SampleTransform к схеме. |
transform_stack(as_, stack, groupby, offset, …) |
Добавляет StackTransform к схеме. |
transform_timeunit(as_, field, timeUnit, **kwargs) |
Добавляет TimeUnitTransform к схеме. |
transform_window(window, frame, groupby, ignorePeers, …) |
Добавляет WindowTransform к схеме. |
validate(instance, schema) |
Проверяет экземпляр по схеме класса в контексте корневой схемы. |
validate_property(name, value, schema) |
Проверяет свойство по его схеме в контексте корневой схемы. |