Skip to main content
Ctrl+K
This website is for version 5. You can find the documentation for version 4 here.
Vega-Altair 5.5.0 documentation - Home Vega-Altair 5.5.0 documentation - Home

维加-阿尔泰尔

  • 入门
  • 用户指南
  • 示例
  • API
    • Release Notes
    • 关于
  • GitHub
  • StackOverflow
  • 入门
  • 用户指南
  • 示例
  • API
  • Release Notes
  • 关于
  • GitHub
  • StackOverflow

章节导航

示例

  • 画廊
  • 教程
    • 探索西雅图天气
    • 在工具提示中显示Numpy图像
  • 示例画廊

示例画廊#

这个画廊包含了 Altair 可以创建的图表示例的选择。一些在初看时可能看起来相当复杂,但它们是通过组合一组简单的声明性构建块构建的。

许多人利用Vega项目编制的样本数据集。要自行访问这些数据集,请安装vega_datasets。

python -m pip install vega_datasets

如果您在这里找不到您正在寻找的图形,请确保查看相关项目部分,该部分包含制作例如网络图和动画的包的链接。

简单图表#

Simple Bar Chart Simple Heatmap Simple Histogram Simple Line Chart Simple Scatter Plot with Tooltips Simple Stacked Area Chart Simple Strip Plot

条形图#

Bar Chart Highlighting Values beyond a Threshold Bar Chart with Highlighted Bar Bar Chart with Highlighted Segment Bar Chart with Labels Bar Chart with Labels based on Measured Luminance Bar Chart with Line at Mean Bar Chart with Line on Dual Axis Bar Chart with Negative Values Bar Chart with Range Bar Chart with Rolling Mean Bar Chart with Rounded Edges Bar and Tick Chart Calculating Percentage of Total Compact Faceted Grid of Bar Charts Diverging Stacked Bar Chart Faceted Stacked Bar Chart Grouped Bar Chart Grouped Bar Chart with Error Bars Grouped Bar Chart with xOffset Grouped Bar Chart with xOffset and overlapping bars Horizontal Bar Chart Horizontal Grouped Bar Chart Horizontal Stacked Bar Chart Layered Bar Chart Normalized Stacked Bar Chart Sorted Bar Chart Stacked Bar Chart Stacked Bar Chart with Sorted Segments Stacked Bar Chart with Text Overlay

折线图#

Bump Chart Filled Step Chart Line Chart with Arrows Line Chart with Cumulative Sum Line Chart with Custom Legend Line Chart with Custom Order Line Chart with Datum Line Chart with Datum for Color Line Chart with Interpolation Line Chart with Last Value Labeled Line Chart with Layered Aggregates Line Chart with Logarithmic Scale Line Chart with Percent axis Line Chart with Point Markers Line Chart with Sequence Generator Line Chart with Stroked Point Markers Line Chart with Varying Size Multiple Series Line Chart Slope Graph Step Chart Window Rank Line Chart

区域图#

Area Chart with Gradient Faceted Area Chart Horizon Graph Layered Area Chart Normalized Stacked Area Chart Streamgraph

圆形图#

Donut Chart Pacman Chart Pie Chart Pie Chart with Labels Polar Bar Chart Radial Chart

散点图#

Brushing Scatter Plot to Show Data on a Table Bubble Plot Faceted Scatter Plot Multifeature Scatter Plot Scatter Matrix Scatter Plot with Href Scatter Plot with Minimap Scatter Plot with Rolling Mean Scatter Plot with Shaded Area Simple Scatter Plot with Labels

不确定性和趋势#

Error Bars with Confidence Interval Error Bars with Standard Deviation Line Chart with Confidence Interval Band Polynomial Fit Plot with Regression Transform Scatter Plot with LOESS Lines Simple Scatter Plot with Errorbars

分布#

2D Histogram Heatmap 2D Histogram Scatter Plot Boxplot with Min/Max Whiskers Cumulative Count Chart Distributions and Medians of Likert Scale Ratings Dot Dash Plot Empirical Cumulative Distribution Function Faceted Histogram Heat Lane Chart Histogram with Gradient Color Histogram with Responsive Bins Histogram with a Global Mean Overlay Layered Histogram Quantile-Quantile Plot Repeated Density Estimates Ridgeline plot Scatter Plot with Faceted Marginal Histograms Stacked Density Estimates Strip Plot with Jitter Table Bubble Plot (Github Punch Card) Violin Plot

表格#

Annual Weather Heatmap Hexbin Chart Lasagna Plot (Dense Time-Series Heatmap) Mosaic Chart with Labels Text over a Heatmap

地图#

Choropleth Map Grouped Points with Proportional Symbols Map Point map Repeated Choropleth Map US Income by State: Wrapped Facet Wind Vector Map World Map World Projections

交互式图表#

Bar Chart with Highlighting on Hover and Selection on Click Interactive Average Interactive Chart with Aggregation Interactive Chart with Cross-Highlight Interactive Crossfilter Interactive Legend Interactive Rectangular Brush Interactive Scatter Plot and Linked Layered Histogram Interactive Selection of Columns Interval Selection on a Map Interval Selection with Initial Date Range Multi-Line Highlight Multi-Line Tooltip Multi-Line Tooltip (Standard) Multi-panel Scatter Plot with Linked Brushing Multiple Interactions Reorder stacked bar segments Scatter Plot and Histogram with Interval Selection Scatter plot with point paths on hover with search box Selection Detail Selection Histogram Selection zorder Simple Interactive Colored Scatter Plot Slider Cutoff Using Selection Interval with mark_area

高级计算#

Calculate Residuals Candlestick Chart Comet Chart Faceted Line Chart with Cumulative Sum Gantt Chart Isotype Grid Isotype Visualization Isotype Visualization with Emoji Layered chart with Dual-Axis Normalized Parallel Coordinates Parallel Coordinates Ranged Dot Plot Sorted Error Bars showing Confidence Interval Stem and Leaf Plot Top K Items Top K Letters Top-K Plot with Others Waterfall Chart Wilkinson Dot Plot

案例研究#

Anscombe's Quartet Atmospheric CO2 Concentration Becker's Barley Faceted Plot Becker's Barley Wrapped Facet Plot Connections Among U.S. Airports Interactive Dendrogram of Hierarchical Clustering Gapminder Bubble Plot Global Deaths from Natural Disasters Iowa's Renewable Energy Boom London Tube Lines One Dot Per Zipcode Population of Falkensee from 1875 to 2014 Pyramid Pie Chart Seattle Weather Interactive The U.S. Employment Crash During the Great Recession U.S. State Capitals Overlayed on a Map of the U.S US Population Pyramid Over Time US Population by Age and Sex US Population: Wrapped Facet Wheat and Wages

上一个

大数据集

下一个

教程

On this page
  • 简单图表
  • 柱状图
  • 折线图
  • 区域图
  • 圆形图
  • 散点图
  • 不确定性与趋势
  • 分布
  • 表格
  • 地图
  • 互动图表
  • 高级计算
  • 案例研究

© 版权 2016-2024,Vega-Altair 开发者。

使用 Sphinx 8.1.3 创建。

使用 PyData Sphinx Theme 0.16.0 构建。