Chart Component Help

Hi all.
I have a client who is needing some dynamic graphs. I have
downloaded and installed the "Charting Components, V1.0" from
http://www.adobe.com/cfusion/exchange/index.cfm?view=sn111&extID=377283
Ive used this tutorial from 4GuysFromRolla
http://www.4guysfromrolla.com/webtech/032603-1.shtml
All is fine and good. Ive got my charts showin, my data XML
asp pages poppin.. its all good.
Part of the project requirements are to recreate a paper
report they mail out online with the colors and general formatting
the same.
I was up till OMG last night pulling my hair out trying to
make the pie chart pieces specific colors.
I will have a set number of data values and pie chart/bar
chart items, so any recursive looping for colors isnt really
necessary if I can if/then something and then just hard set them.
I am a complete n00b when it comes to actionscript, however
am a pretty grissled VBScript veteran. After many hours I found
buried in the layers of the chart this routine which I *believe*
sets the hory clap fugly default colors..
Pie Chart Actions Frame
Begin Code
#initclip 3
FPieChartClass = function()
this.initPalette = function()
this.piePalette = [];
this.paletteIndex = 0;
this.getNextColor = function()
{ var fillColor;
if(this.paletteIndex > this.PieColors.length)
{ var r = (50 + this.paletteIndex * rs + 250);
var g = (50 + this.paletteIndex * gs + 140);
var b = (50 + this.paletteIndex * bs + 130);
r = (r <= 255) ? r : r % 255;
g = (g <= 255) ? g : g % 255;
b = (b <= 255) ? b : b % 255;
fillColor = r << 16 | g << 8 | b;
} else {
fillColor =
parseInt(this.PieColors[this.paletteIndex].substr(2, 6), 16);
this.paletteIndex++;
return fillColor;
End Code
if I put
fillColor = 0x000000
return fillColor;
I get all black pieces.
If I try and do a counter and an if, it fries the chart.
Any help would be incredibly appreciated, and if not, a
direction to a good **cheap** alternative.
Thanks in advance,
Charlie

Looks to be a repeat of http://forums.sun.com/thread.jspa?threadID=5386695&messageID=10711772#10711772

Similar Messages

  • Crystal Reports 2008 Charting Component

    When attempting to create a new report using the bar chart type, I receive the following error from the report wizard:
    Crystal Reports Charting Component sscsdk80.dll could not be found
    Please re-run the installation to fix this problem.
    I have re-run the installation, selecting additional features of custom charting, and mapping and it did not solve the problem. I have tried to manually register sscsdk80.dll with regsvr32 and that fails:
    Load Library Failed. The specified module could not be found. Which must refer to a dependency (?) of that .dll since sscsdk80.dll is obviously present.
    I have tried copying sscsdk80.dll to the windows\system32 directory and manually registering with regsvr32 and that fails as well.
    Any help would be appreciated. Trying to avoid un-installing and re-installing the entire Crystal Reports 2008 application.

    We had 2 users with this error this week, both on CR2008 SP2.
    The file is located here, assuming BO/Crystal is installed to the default location: C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86
    I copied the .dll file to this location: C:\Program Files\Business Objects\common\4.0\bin
    That stopped the error coming up and the graphs are displaying correctly. Had a similar error with the keydecoder.dll which I resolved by doing the above. Re-installing SP2 fixed the keydecoder.dll error for a while but then it started re-occuring and I tried the above fix, and the error hasn't come back.
    We're on XP SP3.

  • Sun Chart component

    Hi,
    My name is Vikrant Abdagire. I am a SUN India employee.
    I am developing an application using JSP.In which i want to draw a pie chart. Is there any char component develpoed by SUN which i can be use to create a pie chart.I dont want to use third party component like jFreeChart. If there is Sun's chart component is available.
    Please help me out to get solution for this problem.
    Thanks in advance...

    Thanks Dan and Patrick  for your reply
    Yah Dan , When I add Month Number to Month attribute then the months are displayed in the order . But we don't want to show up the month number in the chart .
    Is there are any possibility of displaying one attribute in the chart and sorting should be done based on another  attribute  I.e I want to display MonthName attribute in the chart and the sorting should be done based on MonthNumber Attribute. I did not see such kind of feature available in Chart Configuration.
    As you said I configured my Chart for RecordCount VS MonthNumber  attribute and the Chart displays MonthNumber attribute  in order - But our requirement is to display MonthName instead of instead MonthNumber .
    Patrick,
    I was able to understand your reply , But where can i find the Supported Extension Points in Studio inorder to manually set the  order by when the query gets sent to the server.
    Thanks In Advance.

  • In chart component value format mask

    Hi, I wrote chart component. In display options page I want to set value format mask. I want to show the value||%(percent symbol) for example 40% . I set value format mask 999.99% but it doesn't show. How can I do this. thanks.

    I calculated percentage but I want to show axis value with % symbol. For example
    Nevzat -------------------- 40%
    Ali -------------- 20%
    Hasan -------------------------- 60%

  • Module Chart component Error #1009: Cannot access a property or method of a null object reference

    Is there a known bug when displaying a chart component that is defined in a module. When attempting to display a chart component defined in a module it crashes indicating Error #1009: Cannot access a property or method of a null object reference.
    It crashes at the following location in ChartBase.as. Somehow when loading the chart the  styleManager.getStyleDeclaration("mx.charts.chartClasses.ChartBase"); returns null so when using the setStyle methods the exception occurs.
    private function initStyles():Boolean
            HaloDefaults.init(styleManager);
      var chartBaseStyle:CSSStyleDeclaration = styleManager.getStyleDeclaration("mx.charts.chartClasses.ChartBase");
      chartBaseStyle.setStyle("chartSeriesStyles", HaloDefaults.chartBaseChartSeriesStyles);
      chartBaseStyle.setStyle("fill", new SolidColor(0xFFFFFF, 0));
      chartBaseStyle.setStyle("calloutStroke", new SolidColorStroke(0x888888,2));
            return true;
    Added note: There is a chart component in the application that works fine.  The only way I can get  the chart in the module to display is to add the following workaround preinitializer but it severly impacts the loading of the module. Is there a way around this.
    protected function preinitializeHandler(event:FlexEvent):void
       var styleObjects:Array = FlexGlobals.topLevelApplication.styleManager.selectors;
       for each(var styleObj:String in styleObjects)  {
        var style:CSSStyleDeclaration = FlexGlobals.topLevelApplication.styleManager.getStyleDeclaration(styleObj);
        styleManager.setStyleDeclaration(styleObj, style, true);   
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at mx.charts.chartClasses::ChartBase/initStyles()[E:\dev\4.y\frameworks\projects\charts\src\ mx\charts\chartClasses\ChartBase.as:1862]
    at mx.charts.chartClasses::ChartBase/set moduleFactory()[E:\dev\4.y\frameworks\projects\charts\src\mx\charts\chartClasses\ChartBas e.as:1894]
    at mx.charts.chartClasses::PolarChart/set moduleFactory()[E:\dev\4.y\frameworks\projects\charts\src\mx\charts\chartClasses\PolarCha rt.as:223]
    at mx.charts::PieChart/set moduleFactory()[E:\dev\4.y\frameworks\projects\charts\src\mx\charts\PieChart.as:203]
    at spark.components::Group/http://www.adobe.com/2006/flex/mx/internal::elementAdded()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\Group.as:1590]
    at spark.components::Group/addElementAt()[E:\dev\4.y\frameworks\projects\spark\src\spark\com ponents\Group.as:1387]
    at spark.components::SkinnableContainer/addElementAt()[E:\dev\4.y\frameworks\projects\spark\ src\spark\components\SkinnableContainer.as:775]
    at mx.states::AddItems/addItemsToContentHolder()[E:\dev\4.y\frameworks\projects\framework\sr c\mx\states\AddItems.as:782]
    at mx.states::AddItems/apply()[E:\dev\4.y\frameworks\projects\framework\src\mx\states\AddIte ms.as:563]
    at mx.core::UIComponent/applyState()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UI Component.as:10741]
    at mx.core::UIComponent/commitCurrentState()[E:\dev\4.y\frameworks\projects\framework\src\mx \core\UIComponent.as:10487]
    at mx.core::UIComponent/setCurrentState()[E:\dev\4.y\frameworks\projects\framework\src\mx\co re\UIComponent.as:10323]
    at mx.core::UIComponent/set currentState()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:6425]
    at BloodPressure/bloodpressureDg_selectionChangeHandler()[C:\Users\Mark\Adobe Flash Builder 4.7\BiometricsFlexProject\src\BloodPressure.mxml:311]
    at BloodPressure/__bloodpressureDg_selectionChange()[C:\Users\Mark\Adobe Flash Builder 4.7\BiometricsFlexProject\src\BloodPressure.mxml:41]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()[E:\dev\4.y\frameworks\projects\framework\src\mx\core \UIComponent.as:13152]
    at spark.components::DataGrid/commitInteractiveSelection()[E:\dev\4.y\frameworks\projects\sp ark\src\spark\components\DataGrid.as:3634]
    at spark.components::DataGrid/setSelectionAnchorCaret()[E:\dev\4.y\frameworks\projects\spark \src\spark\components\DataGrid.as:4210]
    at spark.components::DataGrid/grid_mouseDownHandler()[E:\dev\4.y\frameworks\projects\spark\s rc\spark\components\DataGrid.as:4679]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()[E:\dev\4.y\frameworks\projects\framework\src\mx\core \UIComponent.as:13152]
    at spark.components::Grid/dispatchGridEvent()[E:\dev\4.y\frameworks\projects\spark\src\spark \components\Grid.as:4038]
    at spark.components::Grid/grid_mouseDownDragUpHandler()[E:\dev\4.y\frameworks\projects\spark \src\spark\components\Grid.as:3883]
    at Function/<anonymous>()[E:\dev\4.y\frameworks\projects\spark\src\spark\utils\MouseEventUti l.as:84]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.managers::SystemManager/mouseEventHandler()[E:\dev\4.y\frameworks\projects\framework\s rc\mx\managers\SystemManager.as:2918]

    It appears as though this error has been going on for a while. See the following link http://forums.adobe.com/thread/941849

  • Chart component Library for JSF.

    HI,
    I've been testing the chart component library for JSF:
    http://jschart.sourceforge.net
    And it's very powerfull, but I think, is necessary more info about to develop appz with this.
    Anyone knows, a blog or a web that contains any example of the use?
    I've been working for days with the HOW TO in this web but it's very simply.
    Thx in advance!!!
    Regards.

    I have successfully used the jfreechart (cewolf) charting library with creator...its simple to use but also allows complex charts if you wish....
    http://cewolf.sourceforge.net/new/index.html

  • Gantt Chart Component demo - download

    Hi,
    Is this possible to download demo application presented in The Gantt Chart Component (http://www.oracle.com/technology/products/jdev/viewlets/11/index.html). In our team we plan to start SCRUM methodology and we would like to write similar application in ADF RC to manage our projects. It would be nice to have any sample.
    Kuba
    Edited by: KUBA2 on Aug 27, 2008 8:40 PM

    Hi Kuba,
    Please send me an e-mail to [email protected] and I will send you the Gantt demo workspace.
    Thanks
    Katia

  • How to use Flex mx.charts component in flash project?

    Can anyone enlighten me on how I can use the Flex mx.charts component in my Flash Project? I am using Flash Professional CS4
    Are there any tutourials on the subject.
    Thanks in advance.

    http://www.designscripting.com/2011/03/filtering-flex-chart-data-by-consuming-xml-data/
    http://www.roseindia.net/tutorial/flex/flex4/components/chartactionscript.html
    Or otherwise you can use the below link to use the fusioncharts components
    http://www.fusioncharts.com/

  • New Flex Charting Component

    Hello everyone,
    We've just released a new charting component for Flex -
    FusionCharts for Flex (beta). It works with both Flex 2 and 3. You
    may download the same from
    http://www.fusioncharts.com/flex
    We would love to have your feedback/suggestions.
    Thanks,
    Pallav
    P.S. I apologize if I've made this sound like an advert - but
    our main aim is to get maximum feedback from Flex developers so
    that we can enhance our product for your benefits.

    Ok, I've got a basic renderer to render a UISelectOne component. I added the xml to the faces-context.xml. Now how to I add my new renderer to the tag? I see there is a setRendereType but how to I get at this to set it? Do I have to create a new tag?
    Graham

  • Custom Chart Component

    Hello all.
    I need to make a new chart component or extend the LineChart
    component thats part of Flex 2.0.
    My problem is that I'm new to flex and don't know where to
    start.
    So my questions to you are:
    Is the codebase for the Chart components available somewhere
    for me to look-at/alter?
    Where can I find some good resources about how to make my own
    components?
    Endre

    Creating a new chart is a fairly complex task, even for
    seasoned Flex developers.
    What doesn't the LineChart do that you need it to do? It may
    be that properties exist to alter its behavior. Or maybe you just
    need to make new type of itemRenderer for the lines.
    Look at the Flex 2.0 documentation on custom components to
    get some ideas; those sections however, are not geared toward the
    charts.
    Finally, if you have a license for the charts, you should
    have the source in the Flex 2 SDK folder somewhere. Look for the
    mx/charts folder structure.

  • Gantt Chart component not showing the duration (Safari and FireFox on OS X

    Hi,
    I created a Gantt Chart component that should show the duration of several project tasks in a graphical way. I did not specify subtasks, only tasks.
    Because this is a rather simple thing to do (see http://docs.oracle.com/cd/E18941_01/tutorials/jdtut_11r2_58/jdtut_11r2_58_3.html), and apparently the graphical part of the Gantt chart is not shown on my Mac, I would like to know whether someone has tried this on a Windows machine and got it working?
    Kind regards,
    Philip

    In Safari, the "sample" page loads and it shows the graphical part of the Gantt. In Firefox the sample page does not load:
    This XML file does not appear to have any style information associated with it. The document tree is shown below.
    <partial-response><noop/></partial-response>
    Thanks Shay!
    Maybe the WLS is causing the problems at my side? I also noted the left-right mouse swipe movements to scroll in a panel does not work when using my local JDev and IntegratedWLS, but it does work on your sample page.
    Kind regards,
    Philip
    Edited by: verscph on Mar 15, 2012 9:52 AM

  • Charting component libraries

    Hello people,
    We are currently looking for a charting component library to replace our need to develop the charts ourselves. We need the charts available for both the normal java-application and a servlet based web-application. Can anyone recommend any products/libraries and give some feedback on using them?
    How was the support for the product?
    Have you encountered any bugs?
    How did you find the performance and pricing?
    What is your general feel of the product?
    etc. etc. whatever comes to mind.
    We have been especially looking at MonarchCharts lately (http://www.singleton-labs.com/mcharts.html) which seems to have the charts we need and the graphics are very good looking. Does anyone have any experience on this?
    We also looked at http://www.visualmining.com/ which was very feature-rich and good looking but seemed a bit expensive.
    http://www.objectplanet.com/EasyCharts/ looked ok except that it seems to be missing some of the charts we need. any experience on these?
    thanks,
    -teka

    Did you try out JFreeChart?
    http://www.object-refinery.com/jfreechart/index.html
    Complete source code is included (subject to the GNU LGPL), so you can extend JFreeChart easily, if you need to.
    Regards,
    Dave Gilbert
    JFreeChart Project Leader

  • Chart Component

    I'm trying to make a bar chart component to use in my movies.
    Iv'e been looking at tutorials on making components and everyone
    seems to have a different method and alot don't explain what they
    are doing just how to do it for their specific example.
    Does anyone know of a good tutorial where it explains what is
    happening / know where i can download a already made (simple) bar
    chart component to study?
    -Using flash mx 2004 pro

    There is a very basic chart component in the Extensions area
    of the Abobe
    Flash website. Search for "Flash Charting Components".
    John G.
    "Tolk" <[email protected]> wrote in message
    news:e7b99s$5l6$[email protected]..
    > I'm trying to make a bar chart component to use in my
    movies. Iv'e been
    > looking
    > at tutorials on making components and everyone seems to
    have a different
    > method
    > and alot don't explain what they are doing just how to
    do it for their
    > specific
    > example.
    > Does anyone know of a good tutorial where it explains
    what is happening /
    > know
    > where i can download a already made (simple) bar chart
    component to study?
    >

  • Mapping between Icon component and Bar chart component

    Hi experts,
    I have added one world map, on which i have added 3 icon component in different area of world. At present i have added 3 different bar chart for each icon component. Now i want to take only one bar chart which sohws data according my selection of icon component.
    can anyone help on this, plz?
    Thanks in Advance,
    Rishit

    Hi
    Try the following:
    Icon1 Source data = Unchecked 0, Checked 1
    Icon1 Destination Cell $D$2
    Icon2 Source data = Unchecked 0, Checked 2
    Icon2 Destination Cell $D$3
    Icon3 Source data = Unchecked 0, Checked 3
    Icon3 Destination Cell $D$4
    Have all the icons set to be unselected.
    In cell $D$5 have the formula =max($D$2:$D$4).  This cell now controls the Dynamic Visibility of the Bar Charts.
    Barchart1, Dynamic Visibility Status = $D$5, Key = 1
    Barchart2, Dynamic Visibility Status = $D$5, Key = 2
    Barchart3, Dynamic Visibility Status = $D$5, Key = 3
    I think that's what you are asking! Please keep in mind that you have to click the icons on and off to show/hide the charts.
    Regards
    Charles

  • Saving in Excel formatting the charts. please help...

    Post Author: ranjan.sahoo
    CA Forum: Deployment
    Hi,
         while i am trying to save the charts in Excel,its showing a deviation from .rep to .xls.
    Description about Chart:- Chart is like in Y axis we have percentage like 60%,80%,100%, in X-axis we Received Week.
    The Issue- Excel is automatically making an increment of unit length like its taking upto 120% as max.
    Also Excel is automatically formatting the legend making it TOP-BOTTOM rather LINERAR as in >rep file
    I have tried with all kinds of formatting in charts but its not reflecting. If you can help, I will be very helpfull.
    Please help me.
    Thanks,
    Ranjan

    Post your question on the MS Mac forums as it's their software you're having issues with:  http://answers.microsoft.com/en-us/mac?auth=1

Maybe you are looking for

  • Hard Disk replacement?

    Hi guys, I'm out of warranty by around 8 months. I believe my Hard drive is faulty in my MacBook pro: -initially developed issue of slowing down / becoming non responsive -developed to point where it won't boot at all -Running disk utility when I boo

  • HT5714 Can I download a pre-ordered album from my iPhone?

    I pre-ordered an album and now it is available, but I can't access it from my iPhone.  I don't want to download it onto my computer.  Can anyone help?

  • How to create ZPS Report showing specific Project details?

    Hi, How do I create a custom  ZPS report which shows Project details and progress The requirements are to see 20 fields in one single report . The fields which  to be seen in the report are Labor Cost, Material Cost,Labor hrs,finish dates, billing pl

  • Attempting to Launch Data Control windows using reentrant execution using LV7.1

    Need to get several devices connected to one Data collection System. Each Window will poll its assigned device and get a data packet which needs to go into a histograph. All the devices then need to pass their data back into the main window to be cal

  • Process orders and inbound deliveries

    Hi All, Is there an standard report to list process orders and inbound deliveries ?? (MB56 not a solution). Regards,