Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Getting Started / July 2006



Tip: Looking for answers? Try searching our database.

WebChart

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mynewnameforthisforum - 05 Apr 2005 22:37 GMT
I need to know how to get started with intregating WebChart with Coldfusion.
running CF mx on Office machine and CF mX7 on Laptop machine.  I CAN CREATE a
chart withing the bat file..... But how do I get the info needed to chart from
a CFQUERY????? I really need a Basic getting STARTED guide with Database query
functions?  Thanks Trainmom
rmorgan - 05 Apr 2005 22:52 GMT
Without knowing what your ultimate goal is, its hard to point you in the right
direction. For all intents and purposes, you do not need to use webchart. For
simplicity sake, take a look at <cfchart> and <cfchartseries>, that should do
anything you want it to do.
mynewnameforthisforum - 06 Apr 2005 00:12 GMT
Well, No1, I cannot get cfchart to work properly, and webchart is now a part of release 7.0.

I need to know how to get cfquery data into webchart?  Need a tutorial, a guide or SOMETHING.....
Trainmom
mynewnameforthisforum - 06 Apr 2005 00:29 GMT
My Goal: is for the user to click, enter a contract number, query for the
contract number and have the chart appear showing bid amounts and goal amounts.
That's it, seems pretty simple to me, but I can't get it to work with
cfchart..... Can't get the second series in. I have successfully created the
chart in WEBCHART (with static data), I need to  get dynamic data from query.  
Thanks trainmom
soonersak - 06 Apr 2005 04:52 GMT
use style='your chart name' inside of the CFChart tag.  This will use your chart and you can use your query to add the data.
prayank - 06 Apr 2005 16:33 GMT
http://www.macromedia.com/devnet/mx/coldfusion/articles/basic_chart.html

This should help.
trainmom - 08 Apr 2005 18:05 GMT
Ok, I can get a very, very simple chart to show up, but I need to  include a
top Y Axis  and 2nd y Axis Series on the right. I have successfully done this
with WEBCharts 5.0 that came with CF 7.0.  I did look at the Basic Charting and
Graphing with Coldfusion MX... But his Series data is Equal.  Mine is not......
I need to chart:   Dollars   and Goal on same chart  1,000,111.00        5%Goal
5,123.456.00        3%Goal 2,456,644.11        10%Goal  However, Does Anyone
know where I can get a more detail explanation of how to do this  CFCHART?  
Thanks in Advance
trainmom - 30 Apr 2005 00:38 GMT
HOW DO I GET from CFCHART to XML or  XML back to CFCHART?????
HOW DO I populate the Webchart?
HELP!!!!!

this is what I have in  testchart.cfm

<cfquery datasource="bid"  name="bidamount">
select name,amount,goal
from table
where id = #form.id#
</cfquery>

<cfchart style
  style="myxmlstyle.xml"   >

<cfchartseries  type="bar"
query="bid"
itemcolumn="name"
vaulecolumn="amount"
/>

--------
the xml file is:

<?xml version="1.0" encoding="UTF-8"?>
 <frameChart is3D=\"false\">
 <frame xDepth=\"12\" yDepth=\"11\"/>
  <yAxis scaleMin=\"0\" scaleMax=\"450\">
  <labelFormat style=\"Pattern\" pattern=\"\"/>
 
  </yAxis> <yAxis2 scaleMin=\"1\" scaleMax=\"100\">
  <logStyle type=\"ExcludeMinor\"/>
  </yAxis2>
 
   <dataLabels style=\"Pattern\" background=\"yellow\" foreground=\"blue\"
isMultiline=\"true\">
   <decoration foreColor=\"green\"/>
   <![CDATA[ \n ]]>
   </dataLabels>
   
   <legend isVisible=\"false\"/>
    <elements drawShadow=\"true\">
    <morph morph=\"Grow\" stage=\"Cols\"/>
   
    <series index=\"0\" place=\"Default\" shape=\"Line\" isSecondAxis=\"true\">
    <paint color=\"yellow\"/>
    <dataLabel>
    <![CDATA[ \n$(value) ]]>
    </dataLabel>
    </series>
   
     <series index=\"1\">
      <marker type=\"None\" bitmap=\"\"/>
      <paint color=\"red\"/>
     </series>
     
     <series index=\"2\">
       <marker type=\"None\"/>
       <paint color=\"blue\"/>
      </series>
     
       <series index=\"3\" shape=\"Line\">
         <paint color=\"green\"/>
         <dataLabel>
         <![CDATA[ $(value) ]]>
         </dataLabel>
         </series>
         
         </elements>
         <table isVisible=\"true\">
         <format style=\"Pattern\" pattern=\"\"/>
         </table>
         <title>MY New Chart </title>
         <paint isVertical=\"true\" min=\"47\" max=\"83\"/>
          </frameChart>"
 
 
MikerRoo - 01 May 2005 04:33 GMT
First, the easy way...

You seem to have 4 series defined in your XML.  Yet only one <cfchartseries>
tag is shown in tha calling code.

What happens when you add <cfchartseries> for all 4 parts of the plot?

-- MikeR
shpunt - 28 Jul 2006 20:05 GMT
I'm new to webcharts so maybe you could clairfy this for me -

from file - stacked2.xml:

<elements place="Default" shape="Column">
            <morph stage="Cols"/>
            <series index="0" place="Default" shape="Line" isSecondAxis="true">
                <paint color="#90FF0000"/>
                <dataLabel>.
                </dataLabel>
            </series>
            <series index="1" place="Default" shape="Line" isSecondAxis="true">
                <paint color="#90FF0000"/>
            </series>
            <series index="2">
                <paint color="#9966CC"/>
            </series>
            <series index="3">
                <paint color="#9BC8A0"/>
            </series>
        </elements>

CF code:
<cfchart format="flash" style="stacked2.xml">
<cfchartseries type="bar" query="chart" itemcolumn="listid" valuecolumn="good"
paintstyle="light" ></cfchartseries>
</cfchart>

So, I have four series in the XML, but does CF ignore them because of the
query?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.