Scientific/Css/ichartjs/src/ichart.line.js

(开头部分) 9KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

/**
 * @overview this class is abstract,use for config line
 * @component#iChart.Line
 * @extend#iChart.Chart
 */
iChart.Line = iChart.extend(iChart.Chart, {
    /**
     * initialize the context for the line
     */
    configure: function () {
        /**
         * invoked the super class's configuration
         */
        iChart.Line.superclass.configure.call(this);

        this.type = 'line';

        this.set({
            /**
             * @cfg {Boolean} if the left-right point are direct when point's value is null.false to break.(default to true)
             */
            nullToDirect: true,
            /**
             * @cfg {Number} Specifies the default linewidth of the canvas's context in this element.(defaults to 1)
             */
            brushsize: 1,
            /**
             * @cfg {Object} Specifies config crosshair.(default enable to false).For details see <link>iChart.CrossHair</link> Note:this has a extra property named 'enable',indicate whether crosshair available(default to false)
             */
            crosshair: {
                enable: false
            },
            /**
             * @cfg {Function} when there has more than one linesegment,you can use tipMocker make them as a tip.(default to null)
             * @paramter Array tips the array of linesegment's tip
             * @paramter int the index of data
             * @return String
             */
            tipMocker: null,
            /**
             * @cfg {Number(0.0~1.0)} If null,the position there will follow the points.If given a number,there has a fixed position,0 is top,and 1 to bottom.(default to null)
             */
            tipMockerOffset: null,
            /**
             * @cfg {String} the align of scale.(default to 'left') Available value are:
             * @Option 'left'
             * @Option 'right'
             */
            scaleAlign: 'left',
            /**
             * @cfg {String} the align of label.(default to 'bottom') Available value are:
             * @Option 'top,'bottom'
             */
            labelAlign: 'bottom',
            /**
             * @cfg {Array} the array of labels close to the axis
             */
            labels: [],
            /**
             * @inner {Number} the distance of column's bottom and text.(default to 6)
后面还有 197 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。