Drawings-Overrides

Here is a full list of drawings overrides with default values. You can change default values using overrides argument of the widget constructor. At the bottom of the list you will find a list of constants and abbreviations used in the values.

linetoolicon: {
    singleChartOnly: true,
    color: 'rgba( 61, 133, 198, 1)',
    snapTo45Degrees:true,
    size: 40,
    icon: 0x263A,
    angle: Math.PI * 0.5,
    scale: 1.0
},
linetoolbezierquadro: {
    linecolor: 'rgba( 21, 153, 128, 1)',
    linewidth: 1.0,
    fillBackground: false,
    backgroundColor: 'rgba( 21, 56, 153, 0.5)',
    transparency: 50,
    linestyle: LINESTYLE_SOLID,
    extendLeft: false,
    extendRight: false,
    leftEnd: LINEEND_NORMAL,
    rightEnd: LINEEND_NORMAL
},
linetoolbeziercubic: {
    linecolor: 'rgba( 21, 153, 128, 1)',
    linewidth: 1.0,
    fillBackground: false,
    backgroundColor: 'rgba( 21, 56, 153, 0.5)',
    transparency: 50,
    linestyle: LINESTYLE_SOLID,
    extendLeft: false,
    extendRight: false,
    leftEnd: LINEEND_NORMAL,
    rightEnd: LINEEND_NORMAL
},
linetooltrendline: {
    linecolor: 'rgba( 21, 153, 128, 1)',
    linewidth: 1.0,
    linestyle: LINESTYLE_SOLID,
    extendLeft: false,
    extendRight: false,
    leftEnd: LINEEND_NORMAL,
    rightEnd: LINEEND_NORMAL,
    font: 'Verdana',
    textcolor: 'rgba( 21, 119, 96, 1)',
    fontsize: 12,
    bold:false,
    italic:false,
    snapTo45Degrees:true,
    alwaysShowStats: false,
    showPriceRange: false,
    showBarsRange: false,
    showDateTimeRange: false,
    showDistance:false,
    showAngle: false
},
linetooltimecycles: {
    linecolor: 'rgba(21, 153, 128, 1)',
    linewidth: 1.0,
    fillBackground: true,
    backgroundColor: 'rgba(106, 168, 79, 0.5)',
    transparency: 50,
    linestyle: LINESTYLE_SOLID
},
linetoolsineline: {
    linecolor: 'rgba( 21, 153, 128, 1)',
    linewidth: 1.0,
    linestyle: LINESTYLE_SOLID
},
linetooltrendangle: {
    singleChartOnly: true,
    linecolor: 'rgba( 21, 153, 128, 1)',
    linewidth: 1.0,
    linestyle: LINESTYLE_SOLID,
    snapTo45Degrees:true,
    font: 'Verdana',
    textcolor: 'rgba( 21, 119, 96, 1)',
    fontsize: 12,
    bold:true,
    italic:false,
    alwaysShowStats: false,
    showPriceRange: false,
    showBarsRange: false,
    extendRight: false,
    extendLeft: false
},
linetooldisjointangle: {
    linecolor: 'rgba( 18, 159, 92, 1)',
    linewidth: 2.0,
    linestyle: LINESTYLE_SOLID,
    fillBackground: true,
    backgroundColor: 'rgba( 106, 168, 79, 0.5)',
    transparency: 50,
    extendLeft: false,
    extendRight: false,
    leftEnd: LINEEND_NORMAL,
    rightEnd: LINEEND_NORMAL,
    font: 'Verdana',
    textcolor: 'rgba( 18, 159, 92, 1)',
    fontsize: 12,
    bold:false,
    italic:false,
    showPrices: false,
    showPriceRange: false,
    showDateTimeRange: false,
    showBarsRange: false
},
linetoolflatbottom: {
    linecolor: 'rgba( 73, 133, 231, 1)',
    linewidth: 2.0,
    linestyle: LINESTYLE_SOLID,
    fillBackground: true,
    backgroundColor: 'rgba( 21, 56, 153, 0.5)',
    transparency: 50,
    extendLeft: false,
    extendRight: false,
    leftEnd: LINEEND_NORMAL,
    rightEnd: LINEEND_NORMAL,
    font: 'Verdana',
    textcolor: 'rgba( 73, 133, 231, 1)',
    fontsize: 12,
    bold:false,
    italic:false,
    showPrices: false,
    showPriceRange: false,
    showDateTimeRange: false,
    showBarsRange: false
},
linetoolfibspiral: {
    linecolor: 'rgba( 21, 153, 128, 1)',
    linewidth: 1.0,
    linestyle: LINESTYLE_SOLID
},
linetooldaterange: {
    linecolor: 'rgba( 88, 88, 88, 1)',
    linewidth: 1.0,
    font: 'Verdana',
    textcolor: 'rgba( 255, 255, 255, 1)',
    fontsize: 12,
    fillLabelBackground: true,
    labelBackgroundColor: 'rgba( 91, 133, 191, 0.9)',
    labelBackgroundTransparency: 30,
    fillBackground: true,
    backgroundColor: 'rgba( 186, 218, 255, 0.4)',
    backgroundTransparency: 60,
    drawBorder: false,
    borderColor: 'rgba( 102, 123, 139, 1)'
},
linetoolpricerange: {
    linecolor: 'rgba( 88, 88, 88, 1)',
    linewidth: 1.0,
    font: 'Verdana',
    textcolor: 'rgba( 255, 255, 255, 1)',
    fontsize: 12,
    fillLabelBackground: true,
    labelBackgroundColor: 'rgba( 91, 133, 191, 0.9)',
    labelBackgroundTransparency: 30,
    fillBackground: true,
    backgroundColor: 'rgba( 186, 218, 255, 0.4)',
    backgroundTransparency: 60,
    drawBorder: false,
    borderColor: 'rgba( 102, 123, 139, 1)'
},
linetooldateandpricerange: {
    linecolor: 'rgba( 88, 88, 88, 1)',
    linewidth: 1.0,
    font: 'Verdana',
    textcolor: 'rgba( 255, 255, 255, 1)',
    fontsize: 12,
    fillLabelBackground: true,
    labelBackgroundColor: 'rgba( 91, 133, 191, 0.9)',
    labelBackgroundTransparency: 30,
    fillBackground: true,
    backgroundColor: 'rgba( 186, 218, 255, 0.4)',
    backgroundTransparency: 60,
    drawBorder: false,
    borderColor: 'rgba( 102, 123, 139, 1)'
},
linetoolriskrewardshort: {
    isShort:true,
    linecolor: 'rgba( 88, 88, 88, 1)',
    linewidth: 1.0,
    font: 'Verdana',
    textcolor: 'rgba(255, 255, 255, 1)',
    fontsize: 12,
    fillLabelBackground: true,
    labelBackgroundColor: 'rgba( 88, 88, 88, 1)',
    labelBackgroundTransparency: 0,
    fillBackground: true,
    stopBackground: 'rgba( 255, 0, 0, 0.2)',
    profitBackground: 'rgba( 0, 160, 0, 0.2)',
    stopBackgroundTransparency: 80,
    profitBackgroundTransparency: 80,
    drawBorder: false,
    borderColor: 'rgba( 102, 123, 139, 1)'
},
linetoolriskrewardlong: {
    isShort:false,
    linecolor: 'rgba( 88, 88, 88, 1)',
    linewidth: 1.0,
    font: 'Verdana',
    textcolor: 'rgba(255, 255, 255, 1)',
    fontsize: 12,
    fillLabelBackground: true,
    labelBackgroundColor: 'rgba( 88, 88, 88, 1)',
    labelBackgroundTransparency: 0,
    fillBackground: true,
    stopBackground: 'rgba( 255, 0, 0, 0.2)',
    profitBackground: 'rgba( 0, 160, 0, 0.2)',
    stopBackgroundTransparency: 80,
    profitBackgroundTransparency: 80,
    drawBorder: false,
    borderColor: 'rgba( 102, 123, 139, 1)'
},
linetoolarrow: {
    linecolor: 'rgba( 111, 136, 198, 1)',
    linewidth: 2.0,
    linestyle: LINESTYLE_SOLID,
    extendLeft: false,
    extendRight: false,
    leftEnd: LINEEND_NORMAL,
    rightEnd: LINEEND_ARROW,
    font: 'Verdana',
    textcolor: 'rgba( 21, 119, 96, 1)',
    fontsize: 12,
    bold:false,
    italic:false,
    alwaysShowStats: false,
    showPriceRange: false,
    showBarsRange: false,
    showDateTimeRange: false,
    showDistance:false,
    showAngle: false
},
linetoolray: {
    linecolor: 'rgba( 21, 153, 128, 1)',
    linewidth: 1.0,
    linestyle: LINESTYLE_SOLID,
    extendLeft: false,
    extendRight: true,
    leftEnd: LINEEND_NORMAL,
    rightEnd: LINEEND_NORMAL,
    font: 'Verdana',
    textcolor: 'rgba( 21, 119, 96, 1)',
    fontsize: 12,
    bold:false,
    italic:false,
    alwaysShowStats: false,
    showPriceRange: false,
    showBarsRange: false,
    showDateTimeRange: false,
    showDistance:false,
    showAngle: false
},
linetoolextended: {
    linecolor: 'rgba( 21, 153, 128, 1)',
    linewidth: 1.0,
    linestyle: LINESTYLE_SOLID,
    extendLeft: true,
    extendRight: true,
    leftEnd: LINEEND_NORMAL,
    rightEnd: LINEEND_NORMAL,
    font: 'Verdana',
    textcolor: 'rgba( 21, 119, 96, 1)',
    fontsize: 12,
    bold:false,
    italic:false,
    alwaysShowStats: false,
    showPriceRange: false,
    showBarsRange: false,
    showDateTimeRange: false,
    showDistance:false,
    showAngle: false
},
linetoolhorzline: {
    linecolor: 'rgba( 128, 204, 219, 1)',
    linewidth: 1.0,
    linestyle: LINESTYLE_SOLID,
    showPrice: true,
    showLabel: false,
    text: '',
    font: 'Verdana',
    textcolor: 'rgba( 21, 119, 96, 1)',
    fontsize: 12,
    bold:false,
    italic:false,
    horzLabelsAlign: 'center',
    vertLabelsAlign: 'top'
},
linetoolhorzray: {
    linecolor: 'rgba( 128, 204, 219, 1)',
    linewidth: 1.0,
    linestyle: LINESTYLE_SOLID,
    showPrice: true,
    showLabel: false,
    text: '',
    font: 'Verdana',
    textcolor: 'rgba( 21, 119, 96, 1)',
    fontsize: 12,
    bold:false,
    italic:false,
    horzLabelsAlign: 'center',
    vertLabelsAlign: 'top'
},
linetoolvertline: {
    linecolor: 'rgba( 128, 204, 219, 1)',
    linewidth: 1.0,
    linestyle: LINESTYLE_SOLID,
    showTime: true
},
linetoolcirclelines: {
    trendline: {
        visible: true,
        color: 'rgba( 128, 128, 128, 1)',
        linewidth: 1.0,
        linestyle: LINESTYLE_DASHED
    },
    linecolor: 'rgba( 128, 204, 219, 1)',
    linewidth: 1.0,
    linestyle: LINESTYLE_SOLID
},
linetoolfibtimezone: {
    horzLabelsAlign: 'right',
    vertLabelsAlign: 'bottom',
    baselinecolor: 'rgba( 128, 128, 128, 1)',
    linecolor: 'rgba( 0, 85, 219, 1)',
    linewidth: 1.0,
    linestyle: LINESTYLE_SOLID,
    showLabels: true,
    font: 'Verdana',
    fillBackground:false,
    transparency:80,
    trendline: {
        visible: true,
        color: 'rgba( 128, 128, 128, 1)',
        linewidth: 1.0,
        linestyle: LINESTYLE_DASHED
    },
    level1-11: LEVELS_TYPE_C
},
linetooltext: {
    color: 'rgba( 102, 123, 139, 1)',
    text: $.t('Text'),
    font: 'Verdana',
    fontsize: 20,
    fillBackground: false,
    backgroundColor: 'rgba( 91, 133, 191, 0.9)',
    backgroundTransparency: 70,
    drawBorder: false,
    borderColor: 'rgba( 102, 123, 139, 1)',
    bold:false,
    italic:false,
    locked: false,
    fixedSize: true,
    wordWrap: false,
    wordWrapWidth: 400
},
linetooltextabsolute: {
    singleChartOnly: true,
    color: 'rgba( 102, 123, 139, 1)',
    text: $.t('Text'),
    font: 'Verdana',
    fontsize: 20,
    fillBackground: false,
    backgroundColor: 'rgba( 155, 190, 213, 0.3)',
    backgroundTransparency: 70,
    drawBorder: false,
    borderColor: 'rgba( 102, 123, 139, 1)',
    bold: false,
    italic: false,
    locked: true,
    wordWrap: false,
    wordWrapWidth: 400
},
linetoolballoon: {
    color: 'rgba( 102, 123, 139, 1)',
    backgroundColor: 'rgba( 255, 254, 206, 0.7)',
    borderColor: 'rgba( 140, 140, 140, 1)',
    fontWeight: 'bold',
    fontsize: 12,
    font: 'Arial',
    transparency: 30,
    text: $.t('Comment')
},
linetoolbrush: {
    linecolor: 'rgba( 53, 53, 53, 1)',
    linewidth: 2.0,
    smooth:5,
    fillBackground: false,
    backgroundColor: 'rgba( 21, 56, 153, 0.5)',
    transparency: 50,
    leftEnd: LINEEND_NORMAL,
    rightEnd: LINEEND_NORMAL
},
linetoolpolyline: {
    linecolor: 'rgba( 53, 53, 53, 1)',
    linewidth: 2.0,
    linestyle: LINESTYLE_SOLID,
    fillBackground: true,
    backgroundColor: 'rgba( 21, 56, 153, 0.5)',
    transparency: 50,
    filled: false
},
linetoolarrowmark: {
    color: 'rgba( 120, 120, 120, 1)',
    text: '',
    fontsize: 20,
    font: 'Verdana'
},
linetoolarrowmarkleft: {
    color: 'rgba( 120, 120, 120, 1)',
    text: '',
    fontsize: 20,
    font: 'Verdana'
},
linetoolarrowmarkup: {
    color: 'rgba( 120, 120, 120, 1)',
    text: '',
    fontsize: 20,
    font: 'Verdana'
},
linetoolarrowmarkright: {
    color: 'rgba( 120, 120, 120, 1)',
    text: '',
    fontsize: 20,
    font: 'Verdana'
},
linetoolarrowmarkdown: {
    color: 'rgba( 120, 120, 120, 1)',
    text: '',
    fontsize: 20,
    font: 'Verdana'
},
linetoolflagmark: {
    color: 'rgba( 255, 0, 0, 1)'
},

linetoolnote: {
    markerColor: 'rgba( 46, 102, 255, 1)',
    textColor: 'rgba( 0, 0, 0, 1)',
    backgroundColor: 'rgba( 255, 255, 255, 1)',
    backgroundTransparency: 0,
    text: 'Text',
    font: 'Arial',
    fontSize: 12,
    bold: false,
    italic: false,
    locked: false,
    fixedSize: true
},

linetoolnoteabsolute: {
    singleChartOnly: true,
    markerColor: 'rgba( 46, 102, 255, 1)',
    textColor: 'rgba( 0, 0, 0, 1)',
    backgroundColor: 'rgba( 255, 255, 255, 1)',
    backgroundTransparency: 0,
    text: 'Text',
    font: 'Arial',
    fontSize: 12,
    bold: false,
    italic: false,
    locked: true,
    fixedSize: true
},

linetoolthumbup: {
    color: 'rgba( 0, 128, 0, 1)'
},
linetoolthumbdown: {
    color: 'rgba( 255, 0, 0, 1)'
},
linetoolpricelabel: {
    color: 'rgba( 102, 123, 139, 1)',
    backgroundColor: 'rgba( 255, 255, 255, 0.7)',
    borderColor: 'rgba( 140, 140, 140, 1)',
    fontWeight: 'bold',
    fontsize: 11,
    font: 'Arial',
    transparency: 30
},
linetoolrectangle: {
    color: 'rgba( 21, 56, 153, 1)',
    fillBackground: true,
    backgroundColor: 'rgba( 21, 56, 153, 0.5)',
    linewidth: 1.0,
    snapTo45Degrees:true,
    transparency: 50
},
linetoolrotatedrectangle: {
    color: 'rgba( 152, 0, 255, 1)',
    fillBackground: true,
    backgroundColor: 'rgba( 142, 124, 195, 0.5)',
    transparency: 50,
    linewidth: 1.0,
    snapTo45Degrees:true
},
linetoolellipse: {
    color: 'rgba( 153, 153, 21, 1)',
    fillBackground: true,
    backgroundColor: 'rgba( 153, 153, 21, 0.5)',
    transparency: 50,
    linewidth: 1.0
},
linetoolarc: {
    color: 'rgba( 153, 153, 21, 1)',
    fillBackground: true,
    backgroundColor: 'rgba( 153, 153, 21, 0.5)',
    transparency: 50,
    linewidth: 1.0
},
linetoolprediction: {
    singleChartOnly: true,
    linecolor: 'rgba( 28, 115, 219, 1)',
    linewidth: 2.0,

    sourceBackColor: 'rgba( 241, 241, 241, 1)',
    sourceTextColor: 'rgba( 110, 110, 110, 1)',
    sourceStrokeColor: 'rgba( 110, 110, 110, 1)',

    targetStrokeColor:'rgba( 47, 168, 255, 1)',
    targetBackColor:'rgba( 11, 111, 222, 1)',
    targetTextColor: 'rgba( 255, 255, 255, 1)',

    successBackground: 'rgba( 54, 160, 42, 0.9)',
    successTextColor: 'rgba( 255, 255, 255, 1)',

    failureBackground: 'rgba( 231, 69, 69, 0.5)',
    failureTextColor: 'rgba( 255, 255, 255, 1)',

    intermediateBackColor: 'rgba( 234, 210, 137, 1)',
    intermediateTextColor: 'rgba( 109, 77, 34, 1)',

    transparency: 10,
    centersColor: 'rgba( 32, 32, 32, 1)'
},
linetooltriangle: {
    color: 'rgba( 153, 21, 21, 1)',
    fillBackground: true,
    backgroundColor: 'rgba( 153, 21, 21, 0.5)',
    transparency: 50,
    linewidth: 1.0
},
linetoolcallout: {
    color: 'rgba( 255, 255, 255, 1)',
    backgroundColor: 'rgba( 153, 21, 21, 0.5)',
    transparency: 50,
    linewidth: 2.0,
    fontsize: 12,
    font:'Verdana',
    text: 'Text',
    bordercolor: 'rgba( 153, 21, 21, 1)',
    bold: false,
    italic: false,
    wordWrap: false,
    wordWrapWidth: 400
},
linetoolparallelchannel: {
    linecolor: 'rgba( 119, 52, 153, 1)',
    linewidth: 1.0,
    linestyle: LINESTYLE_SOLID,
    extendLeft: false,
    extendRight: false,
    fillBackground: true,
    backgroundColor: 'rgba( 180, 167, 214, 0.5)',
    transparency: 50,
    showMidline: false,
    midlinecolor: 'rgba( 119, 52, 153, 1)',
    midlinewidth: 1.0,
    midlinestyle: LINESTYLE_DASHED
},
linetoolelliottimpulse: {
    degree: 7,
    showWave:true,
    color: 'rgba( 61, 133, 198, 1)',
    linewidth: 1
},
linetoolelliotttriangle: {
    degree: 7,
    showWave:true,
    color: 'rgba( 255, 152, 0, 1)',
    linewidth: 1
},
linetoolelliotttriplecombo: {
    degree: 7,
    showWave:true,
    color: 'rgba( 106, 168, 79, 1)',
    linewidth: 1
},
linetoolelliottcorrection: {
    degree: 7,
    showWave:true,
    color: 'rgba( 61, 133, 198, 1)',
    linewidth: 1
},
linetoolelliottdoublecombo: {
    degree: 7,
    showWave:true,
    color: 'rgba( 106, 168, 79, 1)',
    linewidth: 1
},
linetoolbarspattern: {
    singleChartOnly: true,
    color:'rgba( 80, 145, 204, 1)',
    mode:BARS_MODE,
    mirrored:false,
    flipped:false
},
linetoolghostfeed: {
    singleChartOnly: true,
    averageHL: 20,
    variance: 50,
    candleStyle: {
        upColor: '#6ba583',
        downColor: '#d75442',
        drawWick: true,
        drawBorder: true,
        borderColor: '#378658',
        borderUpColor: '#225437',
        borderDownColor: '#5b1a13',
        wickColor: '#737375'
    },
    transparency: 50
},
linetoolpitchfork: {
    fillBackground:true,
    transparency:80,
    style:PITCHFORK_STYLE_ORIGINAL,
    median: {
        visible: true,
        color: 'rgba( 165, 0, 0, 1)',
        linewidth: 1.0,
        linestyle: LINESTYLE_SOLID
    },
    level0-8: LEVELS_TYPE_C
},
linetoolpitchfan: {
    fillBackground:true,
    transparency:80,
    median: {
        visible: true,
        color: 'rgba( 165, 0, 0, 1)',
        linewidth: 1.0,
        linestyle: LINESTYLE_SOLID
    },
    level0-8: LEVELS_TYPE_C
},
linetoolgannfan: {
    showLabels: true,
    font: 'Verdana',
    fillBackground:true,
    transparency:80,
    level1-9: LEVELS_TYPE_F
},
linetoolganncomplex: {
    fillBackground:false,
    arcsBackground: {
        fillBackground: true,
        transparency: 80
    },
    levels: [/* 6 LEVELS_TYPE_D */],
    fanlines: [/* 11 LEVELS_TYPE_E */],
    arcs: [/* 11 LEVELS_TYPE_E */]
},
linetoolgannsquare: {
    color: 'rgba( 21, 56, 153, 0.8)',
    linewidth: 1.0,
    linestyle: LINESTYLE_SOLID,
    font: 'Verdana',
    showTopLabels:true,
    showBottomLabels:true,
    showLeftLabels:true,
    showRightLabels:true,
    fillHorzBackground:true,
    horzTransparency:80,
    fillVertBackground:true,
    vertTransparency:80,
    hlevel1-7: LEVELS_TYPE_B,
    vlevel1-7: LEVELS_TYPE_B
},
linetoolfibspeedresistancefan: {
    fillBackground:true,
    transparency:80,
    grid: {
        color: 'rgba( 128, 128, 128, 1)',
        linewidth: 1.0,
        linestyle: LINESTYLE_SOLID,
        visible:true
    },
    linewidth: 1.0,
    linestyle: LINESTYLE_SOLID,
    font: 'Verdana',
    showTopLabels:true,
    showBottomLabels:true,
    showLeftLabels:true,
    showRightLabels:true,
    snapTo45Degrees:true,
    hlevel1-7: LEVELS_TYPE_B,
    vlevel1-7: LEVELS_TYPE_B
},
linetoolfibretracement: {
    showCoeffs: true,
    showPrices: true,
    font: 'Verdana',
    fillBackground:true,
    transparency:80,
    extendLines:false,
    horzLabelsAlign: 'left',
    vertLabelsAlign: 'middle',
    reverse:false,
    coeffsAsPercents:false,
    trendline: {
        visible: true,
        color: 'rgba( 128, 128, 128, 1)',
        linewidth: 1.0,
        linestyle: LINESTYLE_DASHED
    },
    levelsStyle: {
        linewidth: 1.0,
        linestyle: LINESTYLE_SOLID
    },
    level1-24: LEVELS_TYPE_B
},
linetoolfibchannel: {
    showCoeffs: true,
    showPrices: true,
    font: 'Verdana',
    fillBackground:true,
    transparency:80,
    extendLeft:false,
    extendRight:false,
    horzLabelsAlign: 'left',
    vertLabelsAlign: 'middle',
    coeffsAsPercents:false,
    levelsStyle: {
        linewidth: 1.0,
        linestyle: LINESTYLE_SOLID
    },
    level1-24:  LEVELS_TYPE_B
},
linetoolprojection: {
    showCoeffs: true,
    font: 'Verdana',
    fillBackground:true,
    transparency:80,
    color1: 'rgba( 0, 128, 0, 0.2)',
    color2: 'rgba( 255, 0, 0, 0.2)',
    linewidth: 1.0,
    trendline: {
        visible: true,
        color: 'rgba( 128, 128, 128, 1)',
        linestyle: LINESTYLE_SOLID
    },
    level1: LEVELS_TYPE_C
},
linetool5pointspattern: {
    color: 'rgba( 204, 40, 149, 1)',
    textcolor: 'rgba( 255, 255, 255, 1)',
    fillBackground: true,
    backgroundColor: 'rgba( 204, 40, 149, 0.5)',
    font: 'Verdana',
    fontsize:12,
    bold:false,
    italic:false,
    transparency: 50,
    linewidth: 1.0
},
linetoolcypherpattern: {
    color: '#CC2895',
    textcolor: '#FFFFFF',
    fillBackground: true,
    backgroundColor: '#CC2895',
    font: 'Verdana',
    fontsize:12,
    bold:false,
    italic:false,
    transparency: 50,
    linewidth: 1.0
},
linetooltrianglepattern: {
    color: 'rgba( 149, 40, 255, 1)',
    textcolor: 'rgba( 255, 255, 255, 1)',
    fillBackground: true,
    backgroundColor: 'rgba( 149, 40, 204, 0.5)',
    font: 'Verdana',
    fontsize:12,
    bold:false,
    italic:false,
    transparency: 50,
    linewidth: 1.0
},
linetoolabcd: {
    color: 'rgba( 0, 155, 0, 1)',
    textcolor: 'rgba( 255, 255, 255, 1)',
    font: 'Verdana',
    fontsize:12,
    bold:false,
    italic:false,
    linewidth: 2.0
},
linetoolthreedrivers: {
    color: 'rgba( 149, 40, 255, 1)',
    textcolor: 'rgba( 255, 255, 255, 1)',
    fillBackground: true,
    backgroundColor: 'rgba( 149, 40, 204, 0.5)',
    font: 'Verdana',
    fontsize:12,
    bold:false,
    italic:false,
    transparency: 50,
    linewidth: 2.0
},
linetoolheadandshoulders: {
    color: 'rgba( 69, 104, 47, 1)',
    textcolor: 'rgba( 255, 255, 255, 1)',
    fillBackground: true,
    backgroundColor: 'rgba( 69, 168, 47, 0.5)',
    font: 'Verdana',
    fontsize:12,
    bold:false,
    italic:false,
    transparency: 50,
    linewidth: 2.0
},
linetoolfibwedge: {
    singleChartOnly: true,
    showCoeffs: true,
    font: 'Verdana',
    fillBackground:true,
    transparency:80,
    trendline: {
        visible: true,
        color: 'rgba( 128, 128, 128, 1)',
        linewidth: 1.0,
        linestyle: LINESTYLE_SOLID
    },
    level1-11: LEVELS_TYPE_C
},
linetoolfibcircles: {
    showCoeffs: true,
    font: 'Verdana',
    fillBackground:true,
    transparency:80,
    snapTo45Degrees:true,
    coeffsAsPercents:false,
    trendline: {
        visible: true,
        color: 'rgba( 128, 128, 128, 1)',
        linewidth: 1.0,
        linestyle: LINESTYLE_DASHED
    },
    level1-11: LEVELS_TYPE_C
},
linetoolfibspeedresistancearcs: {
    showCoeffs: true,
    font: 'Verdana',
    fillBackground:true,
    transparency:80,
    fullCircles: false,
    trendline: {
        visible: true,
        color: 'rgba( 128, 128, 128, 1)',
        linewidth: 1.0,
        linestyle: LINESTYLE_DASHED
    },
    level1-11: LEVELS_TYPE_C
},
linetooltrendbasedfibextension: {
    showCoeffs: true,
    showPrices: true,
    font: 'Verdana',
    fillBackground:true,
    transparency:80,
    extendLines:false,
    horzLabelsAlign: 'left',
    vertLabelsAlign: 'middle',
    reverse:false,
    coeffsAsPercents:false,
    trendline: {
        visible: true,
        color: 'rgba( 128, 128, 128, 1)',
        linewidth: 1.0,
        linestyle: LINESTYLE_DASHED
    },
    levelsStyle: {
        linewidth: 1.0,
        linestyle: LINESTYLE_SOLID
    },
    level1-24: LEVELS_TYPE_B
},
linetooltrendbasedfibtime: {
    showCoeffs: true,
    font: 'Verdana',
    fillBackground:true,
    transparency:80,
    horzLabelsAlign: 'right',
    vertLabelsAlign: 'bottom',
    trendline: {
        visible: true,
        color: 'rgba( 128, 128, 128, 1)',
        linewidth: 1.0,
        linestyle: LINESTYLE_DASHED
    },
    level1-11: LEVELS_TYPE_C
},
linetoolschiffpitchfork: {
    fillBackground:true,
    transparency:80,
    style:PITCHFORK_STYLE_SCHIFF,
    median: {
        visible: true,
        color: 'rgba( 165, 0, 0, 1)',
        linewidth: 1.0,
        linestyle: LINESTYLE_SOLID
    },
    level0-8: LEVELS_TYPE_C
},
linetoolschiffpitchfork2: {
    fillBackground:true,
    transparency:80,
    style:PITCHFORK_STYLE_SCHIFF2,
    median: {
        visible: true,
        color: 'rgba( 165, 0, 0, 1)',
        linewidth: 1.0,
        linestyle: LINESTYLE_SOLID
    },
    level0-8: LEVELS_TYPE_C
},
linetoolinsidepitchfork: {
    fillBackground:true,
    transparency:80,
    style:PITCHFORK_STYLE_INSIDE,
    median: {
        visible: true,
        color: 'rgba( 165, 0, 0, 1)',
        linewidth: 1.0,
        linestyle: LINESTYLE_SOLID
    },
    level0-8: LEVELS_TYPE_C
},
linetoolvisibilities: {
    intervalsVisibilities: {
        seconds:true,
        secondsFrom:1,
        secondsTo:59,
        minutes:true,
        minutesFrom:1,
        minutesTo:59,
        hours:true,
        hoursFrom:1,
        hoursTo:24,
        days:true,
        daysFrom:1,
        daysTo:366,
        weeks:true,
        months:true
    }
}

Constants

These constants are used in the drawings defaults. You cannot use their names directly. Use the values instead.

LINESTYLE_SOLID = 0;
LINESTYLE_DOTTED = 1;
LINESTYLE_DASHED = 2;
LINESTYLE_LARGE_DASHED = 3;

LINEEND_NORMAL = 0;
LINEEND_ARROW  = 1;
LINEEND_CIRCLE = 2;

BARS_MODE = 0;
LINE_MODE = 1;
OPENCLOSE_MODE = 2;
LINEOPEN_MODE = 3;
LINEHIGH_MODE = 4;
LINELOW_MODE = 5;
LINEHL2_MODE = 6;

PITCHFORK_STYLE_ORIGINAL = 0;
PITCHFORK_STYLE_SCHIFF = 1;
PITCHFORK_STYLE_SCHIFF2 = 2;
PITCHFORK_STYLE_INSIDE = 3;

LEVELS_TYPE_A = {
    color: color,
    visible: visible
};

LEVELS_TYPE_B = {
    coeff: coeff,
    color: color,
    visible: visible
};

LEVELS_TYPE_C = {
    coeff: coeff,
    color: color,
    visible: visible,
    linestyle: linestyle,
    linewidth: linewidth
};

LEVELS_TYPE_D = {
    color: color,
    width: width,
    visible: visible
};

LEVELS_TYPE_E = {
    color: color,
    visible: visible,
    width: width,
    x: x,
    y: y
};

LEVELS_TYPE_F = {
    coeff1: coeff1,
    coeff2: coeff2,
    color: color,
    visible: visible,
    linestyle: linestyle,
    linewidth: linewidth
};
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 206,214评论 6 481
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 88,307评论 2 382
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 152,543评论 0 341
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 55,221评论 1 279
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 64,224评论 5 371
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 49,007评论 1 284
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 38,313评论 3 399
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 36,956评论 0 259
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 43,441评论 1 300
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 35,925评论 2 323
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 38,018评论 1 333
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 33,685评论 4 322
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 39,234评论 3 307
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 30,240评论 0 19
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 31,464评论 1 261
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 45,467评论 2 352
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 42,762评论 2 345

推荐阅读更多精彩内容