jqplot 和 primefaces

发布于 2025-01-04 15:12:42 字数 139 浏览 2 评论 0原文

因此,我从 2.2 升级到 Primefaces 3.0,以便使用新图表。但是,格式化轴和工具提示的功能不再存在。有没有办法可以访问 jqplot 的图表并更改这些?老2.2版本有dataTipFunction。感谢您能给我的任何帮助。看来很多人和我有同样的问题。

So I upgrade to Primefaces 3.0 from 2.2 in order to use the new charts. However, the ability to format the axes and tooltip is no longer there. Is there a way that I can get to the jqplot's chart and change these ? The old 2.2 version has dataTipFunction. Thanks for any help you can give me. It seems a lot of people are having the same problem as me.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

握住你手 2025-01-11 15:12:42

扩展属性对我有用。这是我的做法

<script type="text/javascript" >
            function open() {
                this.cfg.axes = {
                    xaxis: {
                        showTicks: false
                    }
                };
</script>

我的折线图看起来像这样 -

<pf:lineChart id="TraceJobChart"
       value="#{tracejobsController.getChartForDialog()}"
       legendPosition=""
       yaxisLabel="Traffic"
       xaxisLabel="Time"
       zoom="true" 
       extender="open"
       showMarkers="true"
       shadow="true"
       seriesColors="ff0000" 
       style="height:200px; width: 100%" />

本网站给出了我可以用于折线图的其他选项。

折线图的 Jqplot

希望这有帮助。

The extender property worked for me. Here is how I did it

<script type="text/javascript" >
            function open() {
                this.cfg.axes = {
                    xaxis: {
                        showTicks: false
                    }
                };
</script>

My linechart looked like this -

<pf:lineChart id="TraceJobChart"
       value="#{tracejobsController.getChartForDialog()}"
       legendPosition=""
       yaxisLabel="Traffic"
       xaxisLabel="Time"
       zoom="true" 
       extender="open"
       showMarkers="true"
       shadow="true"
       seriesColors="ff0000" 
       style="height:200px; width: 100%" />

The other options that I could have used for linechart are given in this website.

Jqplot for Linechart

Hope this helps.

兔姬 2025-01-11 15:12:42

我认为您可以使用添加到 primefaces 最新快照(3.4-Snapshot)中的扩展器属性
我自己没有尝试过,但我认为你可以使用扩展器属性来做到这一点。

I think you can use the extender property added to latest snapshot of primefaces (3.4-Snapshot)
I have not tried it myself but I think you can do it using extender property.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文