Skip to main content
September 8, 2006
Question

cfchart scaleto and fontsize

  • September 8, 2006
  • 2 replies
  • 600 views
Hi, I have the following chart on my website. On my test server, everything works fine. I tried the exact code on our production server and found the following issues:

The scaleTo parameter is set to "70", by the graph shows "700"
The fontSize parameter is not taken into account. It always retuns the default font size "12". Here's the code. Hope anyone has a clue ...

<cfchart
backgroundcolor="##F2F2F2"
format = "flash"
chartHeight = "200"
chartWidth = "400"
dataBackgroundColor = "##F5F5F5"
show3D = "Yes"
seriesPlacement = "stacked"
scaleFrom = "20"
scaleTo = "70"
fontsize = "8"
>
<cfchartseries type="bar" paintstyle="shade" seriescolor="##B2C700" serieslabel="Private labs">
<cfchartdata item = "Belgium" value = "9">
<cfchartdata item = "Holland" value = "0">
<cfchartdata item = "France" value = "4">
<cfchartdata item = "Germany" value = "1">
<cfchartdata item = "Austria" value = "0">
<cfchartdata item = "Spain" value = "0">
<cfchartdata item = "Lux." value = "2">
<cfchartdata item = "Hungary" value = "0">
<cfchartdata item = "UK" value = "1">
<cfchartdata item = "Iceland" value = "0">
</cfchartseries>

<cfchartseries type="bar" paintStyle="shade" seriescolor="##519EB2" seriesLabel="Hospital labs">
<cfchartdata item = "Belgium" value = "58">
<cfchartdata item = "Holland" value = "57">
<cfchartdata item = "France" value = "26">
<cfchartdata item = "Germany" value = "14">
<cfchartdata item = "Austria" value = "8">
<cfchartdata item = "Spain" value = "7">
<cfchartdata item = "Lux." value = "2">
<cfchartdata item = "Hungary" value = "5">
<cfchartdata item = "UK" value = "0">
<cfchartdata item = "Iceland" value = "1">
</cfchartseries>
</cfchart>
    This topic has been closed for replies.

    2 replies

    November 25, 2006
    Was the FONT SIZE issue resolved? (i.e., always being set to 12 for all chart items, regardless of settings). I'm having same problems with not being able to set different font sizes for chart titles, X/Y axis titles, etc. Any way around this? Thanks for any help/advice.

    Gary
    (CF MX 7.0.2, Win2K, IE7, FireFox2, SQL Server).
    November 27, 2006
    Hi, my problems were solved by installing the CF MX 7 updaters as suggested by MikerRoo. I was still running 7.0.0.
    So the code as shown in my first post now works as it should.

    Regards,
    John
    November 27, 2006
    Thanks for the reply, but I've got all the updaters. Running version 7.0.2. (7,0,2,142559). Have the latest versions of the chart software. I'm not sure what other hot fixes are available that are needed to fix the FONT problem, that aren't included in version 7.0.2. Do you know of any?

    Others have said the FONT SIZE in WebCharts doesn't work with CFCHART. As far as I know, you can only set 1 font size for everything. You can't have different font sizes for different chart elements (titles, axis titles, etc.).

    Appreciate any info to get it to work. Thanks.
    Gary.
    September 8, 2006
    There is nothing wrong with that chart code.

    The plots are different because of one or more of the following:
    1. The plotting engines are patched to different levels. Go to http://cfchart.blogspot.com/2005/06/charting-technote-addendum.html and make sure that both servers have the same version of wc50.jar and webcharts3D.xml and that they are the same, or newer, than the versions in the technote.
    2. The servers are patched to different levels. Make sure that both servers are running version 7.02 and have the same hot fixes.
    3. The data plotted is really different between the machines.
    4. Some other, more esoteric, server difference: Linux vs Windows?, Different Java version? etc.