This content has been marked as final. Show 8 replies
Webcharts, as shipped with CF, can meet all 4 issues you list -- but with many conditions and caveats.
Webcharts and cfchart are marketing toys that work poorly in the real world. I recommend you using something decent instead.
Also, as you find cfchart bugs, please inform Adobe loudly and often -- maybe they'll finally fix some of them.
Use marker shape in the legend: This is possible for line
and curve charts (but not scatter!!!
Add <legend useMarkers="true"/> to your xml style just after the axis sections.
Y axis shows negative range for no good reason: This is a
bug that was fixed in 7.01 and regressed in 7.02! Please let Adobe
know how yo feel about it.
Anyway, you can usually get your manual scale to stick if you add autoAdjust="false" to your frameChart tag (in the xml style file).
Vertical grids are not supported: Again, switch to a decent
chart engine. For your workaround, see item 2.
Display years like "03/04": Use a label format like
Make sure your parseFormat matches your data exactly. Search this forum for parseFormat for more info.
- Use marker shape in the legend: This is possible for line and curve charts (but not scatter!!! ).
Thanks for your great response - no 1 and 2 were a great help. Much appreciated.
Can you please advise other charting tools that you would recommend we take a look at?
Thanks very much for the link to ChartDirector.
Do you think you could possibly post a sample piece of code on how to call it just so I can get started?
e.g. how do I "createObject" to get going and some code to draw a simple chart. I should be able to figure it out from there.
Thanks very much. You have been a great help :)
Thank you - got the example chart working :)
Just one last question - I promise. Sorry to keep bugging you.
One initial problem I've encountered when I converted the simpleline.jsp file is that in this example all the labels are numbers (1-5). This generates the following error: "The selected method setLabels was not found".
However, if I change just one label value to have a character at the start it will now work.
Obviously it is something like the Java class is expecting a string - it doesn't appear to like all numbers.
I've tried using javacast to set to a string type when setting the array, but no matter whan I do when all lables are numbers it returns the above error.
This is why I said you needed java or C++ skills.
The function you are calling is overloaded and CF is extremely poor at interfacing to overloaded functions.
If you can resolve it by forcing string, that is great. Sometimes adding an empty html tag, like <> will work and will be ignored by ChartDirector.
We call ChartDirector from C++ CFX tags -- which we also use to do insanely involved math on the data, before it is plotted.
You can create Java CFX(s) if that is easier for you.
Or just create a Java "Wrapper" class for the functions you want. This allows you to specify un-overloaded names that CF can use.