| A | |
| addEventListener | |
| addItems, OpenCharts. | |
| B | |
| bezier, OpenCharts. | |
| bspline, OpenCharts. | |
| C | |
| camelize | |
| clone, OpenCharts. | |
| contains | |
| curve, OpenCharts. | |
| E | |
| extend | |
| F | |
| format, OpenCharts. | |
| G | |
| getBottom, OpenCharts.Rect | |
| getFontSize, OpenCharts. | |
| getFontStyle, OpenCharts. | |
| getFontWeight, OpenCharts. | |
| 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. | |
| N | |
| numericIf, OpenCharts. | |
| O | |
| onMouse, OpenCharts. | |
| R | |
| render, OpenCharts. | |
| renderText, OpenCharts. | |
| S | |
| setFontSize, OpenCharts. | |
| setFontStyle, OpenCharts. | |
| setFontWeight, OpenCharts. | |
| showLabel, OpenCharts. | |
| showLegend, OpenCharts. | |
| startsWith | |
| strokeRoundRect, OpenCharts. | |
| T | |
| trim |
添加图表事件 Parameters: action - {String} 事件类型。 message - {String} 事件文字描述信息。
addEventListener:function( action, message )
添加图表事件 Parameters: action - {String} 事件类型。 message - {String} 事件文字描述信息。
addEventListener:function( action, message )
添加图表数据。
addItems:function( items, name )
绘制贝塞尔曲线,效果有点勉强
OpenCharts.RenderEnginer.bezier = function( context, pointsArray )
绘制B样条曲线,效果有点勉强
OpenCharts.RenderEnginer.bspline = function( context, pointsArray )
骆驼式(“-”)连字符的字符串处理.
camelize: function( str )
克隆的当前的point对象。
clone:function()
判断目标字符串是否包含指定的子字符串.
contains: function( str, sub )
绘制曲线
OpenCharts.RenderEnginer.curve = function( context, pointsArray )
提供带 ${token} 标记的字符串, 返回context对象属性中指定标记的属性值.
format: function( template, context, args )
{Number} 返回矩形下侧坐标.
getBottom :function()
获取文字大小。
getFontSize:function()
获取文字风格。
getFontStyle:function()
返回文字粗体风格。
getFontWeight:function()
{Number} 返回矩形高度.
getHeight:function()
获取点击点所在的图表子项,继承类实现 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。
getItemByPosition:function( pointX, pointY, selectType )
{Number} 返回左侧坐标.
getLeft:function()
{Number} 返回矩形右侧坐标.
getRight :function()
{Number} 返回上侧坐标.
getTop :function()
{Number} 返回矩形宽度.
getWidth:function()
{Number} 返回矩形左上角点x坐标.
getX:function()
{Number} 返回矩形左上角点y坐标.
getY:function()
判断一个字符串是否只包含一个数值.
isNumeric: function( value )
把一个看似数值型的字符串转化为一个数值.
numericIf: function( value )
鼠标事件 Parameters: evt - {Object} 鼠标点击事件。
onMouse:function( evt )
绘制图表。
render:function()
绘制文本
OpenCharts.RenderEnginer.renderText = function( context, strText, textStyle, position )
设置文字大小。
setFontSize:function( nPixel )
设置文字风格。
setFontStyle:function( strFontStyle )
设置文字加粗。
setFontWeight:function( strFontWight )
是否显示各项标题 Parameters: bShow - {Boolean} 事件类型。
showLabel:function( bShow )
是否显示图例 Parameters: bShow - {Boolean} 事件类型。
showLegend:function( bShow )
判断目标字符串是否以指定的子字符串开头.
startsWith: function( str, sub )
绘制圆角矩形
OpenCharts.RenderEnginer.strokeRoundRect = function( context, rect, radius, style )
删除一个字符串的开头和结尾处的所有空白字符.
trim: function( str )