new XUIHistogramAndBrokenLine()
Methods
-
AddBrokenLineData(strXLabel, nValue)
-
添加折线数据
Parameters:
Name Type Description strXLabel
String x轴上的文本 nValue
Number 数据 -
AddHistogramData(strXLabel, nValue)
-
添加柱状数据
Parameters:
Name Type Description strXLabel
String x轴上的文本 nValue
Number 数据 -
ClearBrokenLineData()
-
清空折线数据
-
ClearHistogramData()
-
清空柱状数据
-
ClearXAxis()
-
清空X轴上文本
-
DeleteBrokenLineDataByXLabel(strXLabel)
-
删除折线数据
Parameters:
Name Type Description strXLabel
String x轴上的文本 -
DeleteHistogramDataByXLabel(strXLabel)
-
删除柱状数据
Parameters:
Name Type Description strXLabel
String x轴上的文本 -
DeleteXLabel(strXLabel)
-
删除X轴上文本
Parameters:
Name Type Description strXLabel
String x轴上的文本 -
SetBarWidth(nBarWidth)
-
设置显示范围
Parameters:
Name Type Description nBarWidth
Number -
SetBgColor(strBgColor)
-
设置控件背景颜色
Parameters:
Name Type Description strBgColor
String 背景颜色 Properties:
Name Type Description BgColor
Color "" -
SetBrokenLineDataByXLabel(strXLabel, nValue)
-
修改折线数据
Parameters:
Name Type Description strXLabel
String x轴上的文本 nValue
Number 数据 -
SetColumnColor(strColor)
-
设置柱状颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description ColumnColor
Color "0xff00ffb0" -
SetDataZommRange(nStartValue, nEndValue)
-
设置显示范围
Parameters:
Name Type Description nStartValue
Number 起始值 nEndValue
Number 结束值 Properties:
Name Type Description DataZommRange
Collection [0,6] -
SetFirstLegendIcon(strIcon)
-
设置图例1的图标
Parameters:
Name Type Description strIcon
ImageProp 图标 Properties:
Name Type Description FirstLegendIcon
ImageProp "image://common_2dChart/XUIHistogramAndBrokenLine/images/rwzrljl_tuli1.png" -
SetHistogramDataByXLabel(strXLabel, nValue)
-
修改柱状数据
Parameters:
Name Type Description strXLabel
String x轴上的文本 nValue
Number 数据 -
SetHorMarkLineColor(strColor)
-
设置水平标记线颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description HorMarkLineColor
Color "0xffffa500" -
SetLeftYAxisLineColor(strColor)
-
设置左侧y轴颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description LeftYAxisLineColor
Color "0xff525760" -
SetLeftYAxisTickColor(strColor)
-
设置左侧y轴刻度线颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description LeftYAxisTickColor
Color "0xff525760" -
SetLeftYLabelColor(strColor)
-
设置左侧y轴文本颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description LeftYLabelColor
Color "0xff0090e7" -
SetLeftYLabelFontSize(nFontSize)
-
设置左侧y轴文本大小
Parameters:
Name Type Description nFontSize
Number 字体大小 Properties:
Name Type Description LeftYLabelFontSize
Number 20 -
SetLegendFontSize(nFontSize)
-
设置图例文本大小
Parameters:
Name Type Description nFontSize
Number 字体大小 Properties:
Name Type Description LegendFontSize
Number 22 -
SetLegendGap(nGap)
-
设置图例间距
Parameters:
Name Type Description nGap
Number 图标间距 Properties:
Name Type Description LegendGap
Number 60 -
SetLegendLabel(strLegendLabel1, strLegendLabel2)
-
设置图例文本
Parameters:
Name Type Description strLegendLabel1
String 文本1 strLegendLabel2
String 文本2 Properties:
Name Type Description LegendLabel
Collection ["示例1","示例2"] -
SetLegendPos(strRight, strTop)
-
设置图例距右上位置
Parameters:
Name Type Description strRight
String 距右侧百分比 strTop
String 距上侧百分比 Properties:
Name Type Description LegendPos
Collection ["10%","5%"] -
SetLegendTextColor(strColor)
-
设置图例文本颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description LegendTextColor
Color "0xff8394c1" -
SetLineAreaColor(strColorStart, strColorEnd)
-
设置折线下方区域渐变色
Parameters:
Name Type Description strColorStart
String 颜色 strColorEnd
String 边框颜色 Properties:
Name Type Description LineAreaColor
Collection ["0xff0b2d4f","0xff0d1428"] -
SetLineColor(strColor)
-
设置折线颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description LineColor
Color "0xff046aad" -
SetLineIconColor(strColor, strBorderColor)
-
设置折线上数据点颜色
Parameters:
Name Type Description strColor
String 颜色 strBorderColor
String 边框颜色 Properties:
Name Type Description LineIconColor
Collection ["0xffffffff","0xff0187da"] -
SetRightYAxisLineColor(strColor)
-
设置右侧y轴颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description RightYAxisLineColor
Color "0xff525760" -
SetRightYAxisTickColor(strColor)
-
设置右侧y轴刻度线颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description RightYAxisTickColor
Color "0xff525760" -
SetRightYLabelColor(strColor)
-
设置右侧y轴文本颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description RightYLabelColor
Color "0xff00ffb0" -
SetRightYLabelFontSize(nFontSize)
-
设置右侧y轴文本大小
Parameters:
Name Type Description nFontSize
Number 字体大小 Properties:
Name Type Description RightYLabelFontSize
Number 20 -
SetSecondLegendIcon(strIcon)
-
设置图例2的图标
Parameters:
Name Type Description strIcon
ImageProp 图标 Properties:
Name Type Description SecondLegendIcon
ImageProp "image://common_2dChart/XUIHistogramAndBrokenLine/images/rwzrljl_tuli2.png" -
SetTipBgColor(strColor)
-
设置提示背景颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description TipBgColor
Color "0x7f202636" -
SetTipBorderColor(strColor)
-
设置提示边框颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description TipBorderColor
Color "0xff5f6c90" -
SetTipTextColor(strTitleColor, strLineValueColor, strColValueColor)
-
设置提示文本颜色
Parameters:
Name Type Description strTitleColor
String 提示标题颜色 strLineValueColor
String 提示颜色 strColValueColor
String 提示颜色 Properties:
Name Type Description TipTextColor
Collection ["0xff8394c1","0xff4582ff","0xff00ffb0"] -
SetVerMarkLineColor(strColor)
-
设置垂直标记线颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description VerMarkLineColor
Color "0xffffa500" -
SetXAxisLineColor(strColor)
-
设置x轴颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description XAxisLineColor
Color "0xff979a99" -
SetXLabelColor(strColor)
-
设置x轴文本颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description XLabelColor
Color "0xff8394c1" -
SetXLabelFontSize(nFontSize)
-
设置x轴文本大小
Parameters:
Name Type Description nFontSize
Number 字体大小 Properties:
Name Type Description XLabelFontSize
Number 20