[xwiki-users] Chart macro problem
Hi all, Hopefully somebody has come across this before. I am trying to create a line chart that can have repeated data in each column e.g {table} id | number 22 | 23 | 22 | 23 | 25 | 24 | {table} My problem is the graph will only get rendered if one column has unique data. Charting exception: Error number 0 in 5: X-value already exists. Wrapped Exception: X-value already exists. com.xpn.xwiki.XWikiException: Error number 0 in 5: X-value already exists. Wrapped Exception: X-value already exists. at com.xpn.xwiki.plugin.charts.ChartingMacro.exception(ChartingMacro.java:143) at com.xpn.xwiki.plugin.charts.ChartingMacro.execute(ChartingMacro.java:80) at com.xpn.xwiki.render.filter.MacroFilter.handleMatch(MacroFilter.java:90) at org.radeox.filter.regex.RegexTokenFilter$1.handleMatch(RegexTokenFilter.java:91) at org.radeox.regex.JdkMatcher.substitute(JdkMatcher.java:48) at org.radeox.filter.regex.RegexTokenFilter.filter(RegexTokenFilter.java:89) at org.radeox.filter.FilterPipe.filter(FilterPipe.java:169) at com.xpn.xwiki.render.XWikiRadeoxRenderEngine.render(XWikiRadeoxRenderEngine.java:92) at com.xpn.xwiki.render.XWikiRadeoxRenderer.render(XWikiRadeoxRenderer.java:118) If i make all the data unique in one column above then the chart renders ok. Is there a parameter that i can use to allow repeated data or is the charting macro designed to have one column with unique data? Regards, John Carroll -- View this message in context: http://www.nabble.com/Chart-macro-problem-tp18191025p18191025.html Sent from the XWiki- Users mailing list archive at Nabble.com.
Sorry for bumping. I still have not found a solution to this problem. John Carroll wrote:
Hi all, Hopefully somebody has come across this before.
I am trying to create a line chart that can have repeated data in each column e.g {table} id | number 22 | 23 | 22 | 23 | 25 | 24 | {table}
My problem is the graph will only get rendered if one column has unique data.
Charting exception: Error number 0 in 5: X-value already exists. Wrapped Exception: X-value already exists. com.xpn.xwiki.XWikiException: Error number 0 in 5: X-value already exists. Wrapped Exception: X-value already exists. at com.xpn.xwiki.plugin.charts.ChartingMacro.exception(ChartingMacro.java:143) at com.xpn.xwiki.plugin.charts.ChartingMacro.execute(ChartingMacro.java:80) at com.xpn.xwiki.render.filter.MacroFilter.handleMatch(MacroFilter.java:90) at org.radeox.filter.regex.RegexTokenFilter$1.handleMatch(RegexTokenFilter.java:91) at org.radeox.regex.JdkMatcher.substitute(JdkMatcher.java:48) at org.radeox.filter.regex.RegexTokenFilter.filter(RegexTokenFilter.java:89) at org.radeox.filter.FilterPipe.filter(FilterPipe.java:169) at com.xpn.xwiki.render.XWikiRadeoxRenderEngine.render(XWikiRadeoxRenderEngine.java:92) at com.xpn.xwiki.render.XWikiRadeoxRenderer.render(XWikiRadeoxRenderer.java:118)
If i make all the data unique in one column above then the chart renders ok. Is there a parameter that i can use to allow repeated data or is the charting macro designed to have one column with unique data?
Regards, John Carroll
-- View this message in context: http://n2.nabble.com/Chart-macro-problem-tp509542p578173.html Sent from the XWiki- Users mailing list archive at Nabble.com.
We are having the same problem. John Carroll wrote:
Sorry for bumping. I still have not found a solution to this problem.
John Carroll wrote:
Hi all, Hopefully somebody has come across this before.
I am trying to create a line chart that can have repeated data in each column e.g {table} id | number 22 | 23 | 22 | 23 | 25 | 24 | {table}
My problem is the graph will only get rendered if one column has unique data.
Charting exception: Error number 0 in 5: X-value already exists. Wrapped Exception: X-value already exists. com.xpn.xwiki.XWikiException: Error number 0 in 5: X-value already exists. Wrapped Exception: X-value already exists. at com.xpn.xwiki.plugin.charts.ChartingMacro.exception(ChartingMacro.java:143) at com.xpn.xwiki.plugin.charts.ChartingMacro.execute(ChartingMacro.java:80) at com.xpn.xwiki.render.filter.MacroFilter.handleMatch(MacroFilter.java:90) at org.radeox.filter.regex.RegexTokenFilter$1.handleMatch(RegexTokenFilter.java:91) at org.radeox.regex.JdkMatcher.substitute(JdkMatcher.java:48) at org.radeox.filter.regex.RegexTokenFilter.filter(RegexTokenFilter.java:89) at org.radeox.filter.FilterPipe.filter(FilterPipe.java:169) at com.xpn.xwiki.render.XWikiRadeoxRenderEngine.render(XWikiRadeoxRenderEngine.java:92) at com.xpn.xwiki.render.XWikiRadeoxRenderer.render(XWikiRadeoxRenderer.java:118)
If i make all the data unique in one column above then the chart renders ok. Is there a parameter that i can use to allow repeated data or is the charting macro designed to have one column with unique data?
Regards, John Carroll
-- View this message in context: http://n2.nabble.com/Chart-macro-problem-tp509542p1368527.html Sent from the XWiki- Users mailing list archive at Nabble.com.
I need to draw a line chart for my manager *today*, and I cannot figure out how to use the chart macro parameters correctly. Could someone please post the chart macro syntax that was used to generate the line charts displayed on the XWiki.org chart macro sample page? http://code.xwiki.org/xwiki/bin/view/Macros/ChartingSamples Thank you very much!! ** Mary Ellen Coleman :-) -- View this message in context: http://n2.nabble.com/Chart-macro-problem-tp509542p1368621.html Sent from the XWiki- Users mailing list archive at Nabble.com.
meacoleman wrote:
I need to draw a line chart for my manager *today*, and I cannot figure out how to use the chart macro parameters correctly.
Could someone please post the chart macro syntax that was used to generate the line charts displayed on the XWiki.org chart macro sample page? http://code.xwiki.org/xwiki/bin/view/Macros/ChartingSamples
Thank you very much!!
You can see the source of the page on http://code.xwiki.org/xwiki/bin/view/Macros/ChartingSamples?viewer=code&show... Also be sure to read http://code.xwiki.org/xwiki/bin/view/Macros/ChartMacro too. -- Sergiu Dumitriu http://purl.org/net/sergiu/
participants (4)
-
CarrollJ -
John Carroll -
meacoleman -
Sergiu Dumitriu