antv G2Plot 柱状图legend有哪些属性
antv G2Plot 柱状图legend的常见属性如下:
-
position:图例的位置,可选值有 top、bottom、left、right。
-
layout:图例的布局方式,可选值有 vertical、horizontal。
-
itemWidth:图例项的宽度。
-
itemHeight:图例项的高度。
-
itemMarginBottom:图例项之间的间距。
-
itemGap:图例项与文字之间的间距。
-
marker:图例项的标记类型,可选值有 circle、square、diamond、triangle、cross、tick。
-
textStyle:图例文字的样式,包括颜色、字体、大小等。
-
background:图例的背景色。
-
padding:图例的内边距。
-
offsetX:图例的水平偏移量。
-
offsetY:图例的垂直偏移量。
-
flipPage:当图例数量超过一定数量时,是否使用分页显示。
原文地址: https://www.cveoy.top/t/topic/KPP 著作权归作者所有。请勿转载和采集!