This question about Using an extension: Asked

Maximum Columns Possible In ChartPlugin?

A user has a 36 cell chart. The labels on the X axis were being skipped. I experimented with the plugin and discovered that, when I make a chart with 22 columns, the chart displayed properly. When I made a chart with 23 columns, it skipped every other X axis label. So on the 22 column chart, I was getting "C1", "C2", "C3"... and on the 23 column chart, I was getting "C1","C3","C5"... The things that look like they are not working involve the X-axis labels and the vertical dash/slash lines indicating columns. The colorful bars for the data itself show up. In the case that causes the error, the bars for C1 and C2 both show up in a column labeled C1, for example. (The original request with 36 columns had X-axis labels like C1, C4, C7.., so the consistent skipping suggested a pattern.)

My request is to either document this limitation on the ChartPlugin page, have it throw an error message, or fix it so that it does not skip X-axis labels and column dividers. Your call. smile

Unfortunately, ChartPlugin does not appear to be installed and active on the Foswiki site so I can't confirm if it works or not on the most current installation of Foswiki. (I doubt that the version of Foswiki is the problem but I figured I'd throw that in.) I did read the change notes for the plugin and ours is the most current version of the plugin V1.6.0

I put an include to my sandbox page here on the Foswiki site. No permission to view ElaineRichardsSandbox

If that does not work (like you're not reading it on the foswiki site), visit the page at http://foswiki.org/Sandbox/ElaineRichardsSandbox or look at the cut and paste below.

Steps to replicate

Cut and paste the source below and put it on a page on a foswiki installation that has ChartPlugin installed.

%CHART{ type="bar" name="maximum" table="maximum" data="R2:C2..R5:C22" xaxis="R1:C2..R1:C22" legend="R2:C1..R5:C1" width="1000" height="200" xlabel = "X-Label" ylabel="Y-Label" title="22 Columns" yaxis="on" ymin="0", ymax="113" ytics="1"}%
<br>

(Note that I inserted a space after the percent sign - this is deliberate to show how I called the plugin. The same occurs for the next chart.)


% CHART{ type="bar" name="maximum" table="maximum" data="R2:C2..R5:C22" xaxis="R1:C2..R1:C22" legend="R2:C1..R5:C1" width="1000" height="200" xlabel = "X-Label" ylabel="Y-Label" title="22 Columns" yaxis="on" ymin="0", ymax="113" ytics="1"} %



| Year |c1 | c2 | c3 | c4 | c5 | c6 | c7 | c8 | c9 | c10 | c11 |c12 | c13 | c14 | c15 | c16 | c17 | c18 | c19 |c20|c21|c22|
| 2010 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22|
| 2011 |11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 |32|
|2012 | |51| 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 |33|



%CHART{ type="bar" name="larger" table="twentythree" data="R2:C2..R5:C23" xaxis="R1:C2..R1:C23" legend="R2:C1..R5:C1" width="1000" height="200" xlabel = "X-Label" ylabel="Y-Label" title="23 Columns" yaxis="on" ymin="0", ymax="113" ytics="1"}%
<br>
% CHART{ type="bar" name="larger" table="twentythree" data="R2:C2..R5:C23" xaxis="R1:C2..R1:C23" legend="R2:C1..R5:C1" width="1000" height="200" xlabel = "X-Label" ylabel="Y-Label" title="23 Columns" yaxis="on" ymin="0", ymax="113" ytics="1"} %

%TABLE{ name="twentythree"}%
| Year| c1 | c2 | c3 | c4 | c5 | c6 | c7 | c8 | c9 | c10 | c11 |c12 | c13 | c14 | c15 | c16 | c17 | c18 | c19 |c20|c21|c22 |
| 2010 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 |
| 2011| 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 |
| 2012 |51| 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 |


-- ElaineRichards - 14 Jan 2013

 

QuestionForm edit

Subject Using an extension
Extension ChartPlugin
Version
Status Asked
Related Topics
Topic revision: r1 - 14 Jan 2013, ElaineRichards - This page was cached on 15 Nov 2017 - 06:13.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License