相关疑难解决方法(0)

如何在primefaces 5.2中使用折线图扩展器属性

我正在使用primefaces 5.2最新版本并尝试使用折线图,它的工作正常.

我试图更改折线图轴颜色,背景,边框...等但扩展器属性在最新的primefaces版本中不起作用.

我的XHTML:

 <p:chart type="line" model="#{chartViewLine.lineModel1}" styleClass="legendpos" extender="chartExtender" style="height:300px; width:570px;"/>
Run Code Online (Sandbox Code Playgroud)

JAVASCRIPT:

function chartExtender() {        
    this.cfg.grid = {             
    background: 'transparent',
    gridLineColor: '#303030',
    drawBorder: false,
};
Run Code Online (Sandbox Code Playgroud)

__CODE__

是'extender'属性的替代方案还是我的代码有任何错误的语法?

javascript xhtml jsf jqplot primefaces

3
推荐指数
1
解决办法
7399
查看次数

标签 统计

javascript ×1

jqplot ×1

jsf ×1

primefaces ×1

xhtml ×1