Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/385.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript PrimeFaces 5.2及更高版本中的图表扩展程序属性的替代方案是什么_Javascript_Jsf_Primefaces_Xhtml_Jqplot - Fatal编程技术网

Javascript PrimeFaces 5.2及更高版本中的图表扩展程序属性的替代方案是什么

Javascript PrimeFaces 5.2及更高版本中的图表扩展程序属性的替代方案是什么,javascript,jsf,primefaces,xhtml,jqplot,Javascript,Jsf,Primefaces,Xhtml,Jqplot,我正在使用primefaces 5.2的最新版本,并尝试使用折线图,它运行良好 我正在尝试更改折线图轴的颜色、背景、边框等,但extender属性在最新的primefaces版本中不起作用 我的XHTML: <p:chart type="line" model="#{chartViewLine.lineModel1}" styleClass="legendpos" extender="chartExtender" style="height:300px; width:570px;"/&g

我正在使用primefaces 5.2的最新版本,并尝试使用折线图,它运行良好

我正在尝试更改折线图轴的颜色、背景、边框等,但extender属性在最新的primefaces版本中不起作用

我的XHTML:

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

“extender”属性或“my code”是否有任何替代语法错误?

现在,您应该在
图表视图线
bean中从您的模型设置扩展器

LineChartModel model = new LineChartModel();
model.setExtender("chartExtender");


属性
extender
已在PrimeFaces 5.0中删除(另请参见
p:chart
属性列表)

请在PrimeFaces问题列表中提交问题。我个人仍然认为这是一个遗漏。您应该能够从视图中设置扩展器部分。版本6.1如何?没有扩展器。
LineChartModel model = new LineChartModel();
model.setExtender("chartExtender");