Docs
API
  • sparkConfig

    Object

    sparkConfig is used if type of column is one of sparklines.

    All sparkConfig-s on site http://omnipotent.net/jquery.sparkline/


    And also it is used for FancyGrid spark columns: grossloss, hbar, progressbar, progressdonut.

    Example

    
    },{
      type: 'grossloss',
      width: 140,
      title: 'Industrial Production',
      index: 'ip',
      sparkConfig: {
    	grossColor: '#6fb270',
    	lossColor: '#dc6b67',
    	showOnMax: true
      }
    },{
    

    Example

    
    },{
      type: 'progressdonut',
      sparkConfig: {
        size: 28,
        tipTpl: 'Value: {value} %'
      }
    },{
    

    Params

    colorBGPlus

    String

    colorBGPlus property is used only for progressdonut. It is color for background with possitive value.

    colorPlus

    String

    colorPlus property is used only for progressdonut. It is color for possitive value.

    colorBGMinus

    String

    colorBGMinus property is used only for progressdonut. It is color for background with negative value.

    colorMinus

    String

    colorMinus property is used only for progressdonut. It is color for negative value.

    grossColor

    String

    grossColor property is used only for grossloss. It is color for positive value.

    
    },{
      type: 'grossloss',
      width: 140,
      title: 'Industrial Production',
      index: 'ip',
      sparkConfig: {
    	grossColor: '#6fb270',
    	lossColor: '#dc6b67',
    	showOnMax: true
      }
    },{
    

    lossColor

    String

    lossColor property is used only for grossloss. It is color for loss value.

    
    },{
      type: 'grossloss',
      width: 140,
      title: 'Industrial Production',
      index: 'ip',
      sparkConfig: {
    	grossColor: '#6fb270',
    	lossColor: '#dc6b67',
    	tip: true
      }
    },{
    

    percents

    Boolean

    Values will be displayed according to percents not to value and added prefix '%' for tip.

    
    {
      type: 'progressdonut',
      sparkConfig: {
        size: 28,
        tipTpl: 'Value: {value} %'
      }
    }
    

    size

    Number

    size property is used only for progressdonut. It sets size of donut.

    
    {
      type: 'progressdonut',
      sparkConfig: {
        size: 28,
        tipTpl: 'Value: {value} %'
      }
    }
    

    tip

    String|Boolean

    Enable/disable template for spark.

    
    {
      type: 'progressdonut',
      sparkConfig: {
        size: 28,
        tip: false
      }
    }
    

    tipTpl

    String|Boolean

    Template for tooltip.

    
    {
      type: 'progressdonut',
      sparkConfig: {
        size: 28,
        tipTpl: 'Value: {value} %'
      }
    }
    

    Default

    
    undefined