Function Index
$#! · 0-9 · A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z
A
 addEventListener
 addItems, OpenCharts.Chart
B
 bezier, OpenCharts.RenderEnginer
 bspline, OpenCharts.RenderEnginer
C
 camelize
 clone, OpenCharts.Point
 contains
 curve, OpenCharts.RenderEnginer
E
 extend
F
 format, OpenCharts.String
G
 getBottom, OpenCharts.Rect
 getFontSize, OpenCharts.TextStyle
 getFontStyle, OpenCharts.TextStyle
 getFontWeight, OpenCharts.TextStyle
 getHeight, OpenCharts.Rect
 getItemByPosition
 getLeft, OpenCharts.Rect
 getRight, OpenCharts.Rect
 getTop, OpenCharts.Rect
 getWidth, OpenCharts.Rect
 getX, OpenCharts.Rect
 getY, OpenCharts.Rect
I
 isNumeric, OpenCharts.String
N
 numericIf, OpenCharts.String
O
 onMouse, OpenCharts.Chart.AxesChart
R
 render, OpenCharts.Chart
 renderText, OpenCharts.RenderEnginer
S
 setFontSize, OpenCharts.TextStyle
 setFontStyle, OpenCharts.TextStyle
 setFontWeight, OpenCharts.TextStyle
 showLabel, OpenCharts.Chart
 showLegend, OpenCharts.Chart
 startsWith
 strokeRoundRect, OpenCharts.RenderEnginer
T
 trim
addEventListener:function(action,
message)
添加图表事件 Parameters: action - {String} 事件类型。 message - {String} 事件文字描述信息。
addEventListener:function(action,
message)
添加图表事件 Parameters: action - {String} 事件类型。 message - {String} 事件文字描述信息。
addItems:function(items,
name)
添加图表数据。
OpenCharts.RenderEnginer.bezier = function(context,
pointsArray)
绘制贝塞尔曲线,效果有点勉强
OpenCharts.RenderEnginer.bspline = function(context,
pointsArray)
绘制B样条曲线,效果有点勉强
camelize: function(str)
骆驼式(“-”)连字符的字符串处理.
骆驼式(“-”)连字符的字符串处理.
clone:function()
克隆的当前的point对象。
contains: function(str,
sub)
判断目标字符串是否包含指定的子字符串.
目标字符串是否包含子字符串.
OpenCharts.RenderEnginer.curve = function(context,
pointsArray)
绘制曲线
复制源对象的所有属性到目标对象上,源对象上的没有定义的属性在目标对象上也不会被设置。 Parameters: destination - {Object} 目标对象。 source - {Object} 源对象,其属性将被设置到目标对象上。 Returns: {Object} 目标对象。
format: function(template,
context,
args)
提供带 ${token} 标记的字符串, 返回context对象属性中指定标记的属性值.
getBottom :function()
{Number} 返回矩形下侧坐标.
getFontSize:function()
获取文字大小。
getFontStyle:function()
获取文字风格。
getFontWeight:function()
返回文字粗体风格。
getHeight:function()
{Number} 返回矩形高度.
getItemByPosition:function(pointX,
pointY,
selectType)
获取点击点所在的图表子项,继承类实现 Parameters: pointX - {Number} 鼠标相对canvas所在X位置。 pointY - {Number} 鼠标相对canvas所在Y位置。 selectType - {String} 点击类型,精确or按照x。
getItemByPosition:function(pointX,
pointY,
selectType)
获取点击点所在的图表子项 Parameters: pointX - {Number} 鼠标相对canvas所在X位置。 pointY - {Number} 鼠标相对canvas所在Y位置。 selectType - {String} 点击类型,精确or按照x。
getItemByPosition:function(pointX,
pointY,
selectType)
获取点击点所在的图表子项 Parameters: pointX - {Number} 鼠标相对canvas所在X位置。 pointY - {Number} 鼠标相对canvas所在Y位置。 selectType - {String} 点击类型,精确or按照x。
getItemByPosition:function(pointX,
pointY,
selectType)
获取点击点所在的图表子项 Parameters: pointX - {Number} 鼠标相对canvas所在X位置。 pointY - {Number} 鼠标相对canvas所在Y位置。 selectType - {String} 点击类型,精确or按照x。
getItemByPosition:function(pointX,
pointY,
selectType)
获取点击点所在的图表子项 Parameters: pointX - {Number} 鼠标相对canvas所在X位置。 pointY - {Number} 鼠标相对canvas所在Y位置。 selectType - {String} 点击类型,精确or按照x。
getLeft:function()
{Number} 返回左侧坐标.
getRight :function()
{Number} 返回矩形右侧坐标.
getTop :function()
{Number} 返回上侧坐标.
getWidth:function()
{Number} 返回矩形宽度.
getX:function()
{Number} 返回矩形左上角点x坐标.
getY:function()
{Number} 返回矩形左上角点y坐标.
isNumeric: function(value)
判断一个字符串是否只包含一个数值.
numericIf: function(value)
把一个看似数值型的字符串转化为一个数值.
onMouse:function(evt)
鼠标事件 Parameters: evt - {Object} 鼠标点击事件。
render:function()
绘制图表。
OpenCharts.RenderEnginer.renderText = function(context,
strText,
textStyle,
position)
绘制文本
setFontSize:function(nPixel)
设置文字大小。
setFontStyle:function(strFontStyle)
设置文字风格。
setFontWeight:function(strFontWight)
设置文字加粗。
showLabel:function(bShow)
是否显示各项标题 Parameters: bShow - {Boolean} 事件类型。
showLegend:function(bShow)
是否显示图例 Parameters: bShow - {Boolean} 事件类型。
startsWith: function(str,
sub)
判断目标字符串是否以指定的子字符串开头.
目标字符串是否以指定的子字符串开头.
OpenCharts.RenderEnginer.strokeRoundRect = function(context,
rect,
radius,
style)
绘制圆角矩形
trim: function(str)
删除一个字符串的开头和结尾处的所有空白字符.
删除目标字符串开头和结尾的所有空白字符.
Close