Fusionchart Flex各属性释义

本文深入探讨了FusionCharts Flex图表的定制属性,包括背景色、锚点、标题间距、画布边距等关键参数,提供了一个全面的指南帮助开发者实现个性化的图表设计。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

最好的参考当然是官方文档:http://docs.fusioncharts.com/flex/charts/Contents/ChartSS/

bgColor:图表区域背景色(画布外)
canvasBgColor:画布背景色

锚点

属性名称类型取值范围描述
drawAnchorsBoolean0/1是否绘制数据点.需要注意的是提示和链接都是和数据点相关联的,如果不显示anchors,那么它们都不起作用,可以通过设置其透明度为0来隐藏
anchorSidesNumber3-20数据点的边的个数,确定数据点的形状。如3就是三角形,4就是正方形.
anchorRadiusNumberIn Pixels半径,好理解.
anchorBorderColorColorHex Code线条颜色.
anchorBorderThicknessNumberIn Pixels线条宽度.
anchorBgColorColorHex Code数据点的背景颜色,也就是填充色.
anchorAlphaNumber0-100透明度,可以设置为0来隐藏数据点但保留提示和链接.
anchorBgAlphaNumber0-100填充色的透明度.

空白

属性名称类型取值范围描述
captionPaddingNumberIn PixelsThis attribute lets you control the space (in pixels) between the sub-caption and top of the chart canvas. If the sub-caption is not defined, it controls the space between caption and top of chart canvas. If neither caption, nor sub-caption is defined, this padding does not come into play.
xAxisNamePaddingNumberIn PixelsX轴的标题和标签之间的距离;如果没有显示数据标签,则表示和canvas之间的距离.
yAxisNamePaddingNumberIn Pixelsy轴的标题和标签之间的距离;如果没有显示数据标签,则表示和canvas之间的距离..
yAxisValuesPaddingNumberIn PixelsThis attribute helps you set the horizontal space between the canvas left edge and the y-axis values or trend line values (on left/right side). This is particularly useful, when you want more space between your canvas and y-axis values.
labelPaddingNumberIn Pixels标签和画布底边之间的垂直距离(X轴).
valuePaddingNumberIn Pixels显示value的时候,用来设置value和columns/anchors之间的垂直距离 .
chartLeftMarginNumberIn PixelsAmount of empty space that you want to put on the left side of your chart. Nothing is rendered in this space.
chartRightMarginNumberIn PixelsAmount of empty space that you want to put on the right side of your chart. Nothing is rendered in this space.
chartTopMarginNumberIn PixelsAmount of empty space that you want to put on the top of your chart. Nothing is rendered in this space.
chartBottomMarginNumberIn PixelsAmount of empty space that you want to put on the bottom of your chart. Nothing is rendered in this space.
canvasPaddingNumberIn PixelsLets you set the space between the canvas border and first & last data points
legendPaddingNumberIn PixelsPadding of legend from right/bottom side of canvas
canvasLeftMarginNumberIn PixelsThis attribute lets you control the space between the start of chart canvas and the start (x) of chart. In case of 2D charts, the canvas is the visible rectangular box. In case of 3D charts, the canvas box is the imaginary box around the 3D canvas.Using this attribute, you can control the amount of empty space between the chart left side and canvas left side. By default, FusionCharts automatically calculates this space depending on the elements to be placed on the chart. However, if you want to over-ride this value with a higher value, you can use this attribute to specify the same. Please note that you cannot specify a margin lower than what has been calculated by the chart.This attribute is particularly useful, when you’ve multiple charts placed in a page and want all their canvas start position to align with each other - so in such a case, you can set same margin value (a value large enough that it doesn’t get rejected by chart owing to it being lower than the calculated value) for all such charts in the page.
canvasRightMarginNumberIn PixelsLike canvasLeftMargin, this attribute lets you set the space between end of canvas and end of chart.
canvasTopMarginNumberIn PixelsLike canvasLeftMargin, this attribute lets you set the space between top of canvas and top of chart.
canvasBottomMarginNumberIn PixelsLike canvasLeftMargin, this attribute lets you set the space between bottom of canvas and bottom of chart.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值