Creating a chart

hi.,
I have to create chart with bars of different colours...
actually i have to generate this after a JSP call...
This portlet is for "openion poll "...as soon as the user selects his openion ...i have to generate a chart with the %(per) for those pericular options...
so can i use the charts which we can generate from portlet release 2...if yes please elobarate this to me...or any other options....
mail me at [email protected]
thanks

Hi,
This is a post similar to
How to create a chart..
You can access the above link to keep track of that post.
Take care,
Manoj

Similar Messages

  • Need help in creating a chart from 3 datasets

    Need help in creating a chart in SSRS from 3 datasets
    Can someone help me in creating a chart from 3 datasets, however datasource is same.

    Thank you Olaf...
    could anyone help me in using union all with the below
     WITH a AS (
    SELECT
    clientid,
    DATEPART(year, row_date) AS 'Year',
    DATEPART(month, row_date) AS 'Month',
        value ,
        CASE metricid WHEN 16 THEN 'FCR' ELSE 'Cases' END AS metric
    FROM XXXXXX AS V
    WHERE metricid IN (16, 11)
    AND row_date BETWEEN '2012-01-01' AND '2014-10-01'
    AND value IS NOT NULL)
    , b AS (
    SELECT     clientid ,
        Year ,
        Month ,
        value AS 'Cases',
        metric 
    FROM a
    WHERE metric = 'cases')
    , c AS (
    SELECT     clientid ,
        Year ,
        Month ,
        value AS 'FCR',
        metric  
    FROM a
    WHERE metric = 'FCR')
    , d AS (
    SELECT b.YEAR, b.MONTH, c.FCR, b.Cases 
    FROM b INNER JOIN c 
    ON c.clientid = b.clientid
    AND c.[YEAR] = b.[year] 
    AND c.[month] = b.[month]
    WHERE c.fcr <> 0 AND b.cases <> 0
    ,E AS (
    SELECT [Year], [Month], SUM(FCR) AS FCR, SUM(Cases) AS Cases
    FROM d
    GROUP BY [Year], [Month])
    select YEAR, MONTH, 
    CASE MONTH 
    WHEN 1 THEN 'Jan'
    WHEN 2 THEN 'Feb'
    WHEN 3 THEN 'Mar'
    WHEN 4 THEN 'Apr'
    WHEN 5 THEN 'May'
    WHEN 6 THEN 'Jun'
    WHEN 7 THEN 'Jul'
    WHEN 8 THEN 'Aug'
    WHEN 9 THEN 'Sep'
    WHEN 10 THEN 'Oct'
    WHEN 11 THEN 'Nov'
    WHEN 12 THEN 'Dec'
    END AS MonthName
    ,e.FCR AS FCRCases
    ,e.Cases AS TotalCases
    ,CASE 
    WHEN [month] IN (11, 12, 1) THEN 1
    WHEN [month] IN (2, 3, 4) THEN 2
    WHEN [month] IN (5, 6, 7) THEN 3
    WHEN [month] IN (8, 9, 10) THEN 4
    END AS 'Quarter'
    --,CONVERT(DECIMAL(18, 2),(e.FCR/e.Cases)*100) AS FCRRaw
    from e
    order by YEAR, MONTH
    **************2nd query*************
    WITH a AS (
    SELECT
    clientid,
    DATEPART(year, row_date) AS 'Year',
    DATEPART(month, row_date) AS 'Month',
        value, 
        CASE metricid WHEN 56 THEN 'numerator' ELSE 'denominator' END AS metric
    FROM XXXXXXX.[Values] AS V
    WHERE metricid IN (56, 10)
    --WHERE metricid IN (11,16)
    AND row_date BETWEEN '2013-10-01' AND '2014-02-01'
    AND value IS NOT NULL)
    , b AS (
    SELECT     clientid ,
        Year ,
        Month ,
        value AS 'numerator',
        metric
    FROM a
    WHERE metric = 'numerator')
    , c AS (
    SELECT     clientid ,
        Year ,
        Month ,
        value AS 'denominator',
        metric
    FROM a
    WHERE metric = 'denominator')
    , d AS (
    SELECT b.YEAR, b.MONTH, c.denominator, b.numerator 
    FROM b INNER JOIN c 
    ON c.clientid = b.clientid
    AND c.[YEAR] = b.[year] 
    AND c.[month] = b.[month]
    WHERE c.denominator <> 0 AND b.numerator <> 0
    , e AS (
    SELECT [Year], [Month], SUM(numerator) AS numerator, SUM(denominator) AS denominator
    FROM d
    GROUP BY [Year], [Month]
    SELECT *, 
    CASE 
    WHEN [month] IN (11, 12, 1) THEN 1
    WHEN [month] IN (2, 3, 4) THEN 2
    WHEN [month] IN (5, 6, 7) THEN 3
    WHEN [month] IN (8, 9, 10) THEN 4
    END AS 'Quarter'
    FROM e
    ORDER BY 1,2
    ******************3rd query**************
    WITH a AS (
    SELECT --L.[LocationGroupId],
    -- T.locationid,
    -- T.AccountId,
    TR.datestamp,
    /*Convert(NVARCHAR, DatePArt(year, TR.datestamp)) + '-' + Convert(NVARCHAR, DatePArt(month, TR.datestamp)) + '-01'*/ 
    TR.Period AS ValueDate,
    CASE WHEN TR.TargetResultState = 0 THEN 0 WHEN TR.TargetResultState = 1 THEN 1 WHEN TR.TargetResultState = 2 THEN 1 ELSE 0 END AS Met,
    CASE WHEN CONVERT(DATE, Convert(NVARCHAR, DatePArt(year, TR.datestamp)) + '-' + Convert(NVARCHAR, DatePArt(month, TR.datestamp)) + '-01') > T.Startdate AND CONVERT(DATE, Convert(NVARCHAR, DatePArt(year, TR.datestamp))
    + '-' + Convert(NVARCHAR, DatePArt(month, TR.datestamp)) + '-01') < T.Enddate THEN 1 ELSE 0 END AS ActiveTarget
    FROM XXXXXX AS TR
    INNER JOIN dbo.Target T ON TR.TargetID = T.ID
    --INNER JOIN dbo.Location L ON T.Locationid = L.Id
    WHERE --locationid <> - 1 AND 
    TR.Period IN ('201306', '201307', '201308', '201309', '201310', '201311', '201312', '201401'))
    select ValueDate, SUM(Met) AS Met, Count(ActiveTarget) AS ActiveTargets,
    right(ValueDate,2) as Month
    ,left(ValueDate,4) as Year
    ,CASE 
    WHEN right(ValueDate,2) IN (11, 12, 1) THEN 1
    WHEN right(ValueDate,2) IN (2, 3, 4) THEN 2
    WHEN right(ValueDate,2) IN (5, 6, 7) THEN 3
    WHEN right(ValueDate,2) IN (8, 9, 10) THEN 4
    END AS 'Quarter'
    from a
    group by ValueDate
    order by ValueDate

  • How to create a chart with dates?

    I've created a table with projects I have to deliver and the date they were delivered. I would like to create a chart from this data - however I can't figure out how to use date in the chart.
    Ideally the chart would work with the date (lets say from jan 01 to april 5) on the x-axis and the project on the y-axis. And a line that goes from time A (which marks the initial part of the project) to the time B (which marks the delivery date) defined on the table.
    Is it possible?
    heres a pic of what i mean:
    /Users/judavies/Desktop/Screen shot 2011-01-14 at 11.36.12 AM.png
    Message was edited by: jujudavies

    Hi Jerry,
    I'm ALMOST there! If you could help me with one last thing it would be amazing. I've uploaded my number project and you can downloaded it on the link bellow, if you prefer.
    I managed to do the same idea chart as you have. However I would like to have two bars for every JOB (y-axis). On my table i've inputed for every job 4 values = START DATE that was scheduled / Duration period scheduled (this happens prior to the job itself // START DATE Delivered / Duration Period Delivered (this is the actual time the JOB took place). This way I can see at the end of a JOB if I worked during the period I planned.
    using your example on the chart above (your reply) Could Proposal have a bar 1.0 / 4.0 - and bellow this bar have another one (with different colours) that went from 2.0 / 5.0 - for example? - the first one representing the "scheduled dates"and the second one representing what actually happened.
    I managed to do the four bars but couldnt manage to have them bellow each other.
    Tks again for your help
    files.me.com/jujudavies/wgugl1.numbers.zip
    x'jul.

  • How to create this chart in Numbers?

    The sample chart such as following web site:
    http://gallery.mac.com/chouwenpo#100008/-E5-9C-96-E7-89-87-203&bgcolor=black
    I want to create this chart by "line+symbol chart".
    The x-axis need to be an "interval".
    Please, help me if you know how to do this.
    Thank you a lot.
    wenpo

    I do appreciate your kindness reply.
    Please let me repost my question and express my concern again
    I look forward from you guys.^^ I do need your help!
    Thanks again.
    <<Question repost>>
    for example:
    Assume we have 10 (x, y) pairs as below:
    (10,10), (12,23), (47,9), (63,24), (88,100), (150,41) ,(155,166), (188,2), (198,58) and (500,200). Each (x,y) pair is a single point in the graph.
    If we use Scatter chart to handle these data, the output graph is fine but not suitable for me to use.
    I wish there will be a trend line between two of each independent points of Scatter graph, and obtain a graph just like the output graph as used in Line chart (line+symbol).
    That is, in Line chart, the values of x-axis(with equal-width intervals) are categorical; however, my data is ordinal value or continuous value (like Time, Concentration...etc.). I wish this software has the ability to show the interaction between each points.
    Message was edited by: wenpo

  • Error while creating  group chart of accounts

    hi
    i am learning sapfico now.while i was practicising to create group chart of accounts ,i got an error"group chart of accounts not created to a/c no 111111.".first i created chart of accounts  code for group chart of accounts.then i have created chart of accounts  per company code.like wise i have created 2 account groups and 2 retained earning a/cs(1 for per company code & 1 per group chart of account purpose)
    while i was creating GL master records in FS00 i got the error like that.any any body please help me.

    Hi,
    Have you entered "111111" in the filed group account number?  If so, this account should be available / created in your group chart of account.
    Hope it helps
    Saravanan.A

  • Error in Creating a Chart Web Part Connected to a List-Column named "" already belongs to this DataTable

    Hi,
    I am trying to create a Chart Web Part that is connected to a list. 
    I inserted a Chart Web Part on the page.
    In Step 1, I chose, Connect to a List.
    In Step 2, I chose the List, "QPAPForm"
    After I connect to the list (QPAPForm), and I get to step 3 to Retrieve and Filter Data, I have the following error message:  "Please correct the following: A column named "Update Policy Tasks" already belongs to this Data Table.
    "Update Policy Tasks" is a Workflow used on this list (QPAPForm), but it is not a column value per se.
    How do I correct this issue?
    Thanks,
    Jan

    Hi,
    I have done a test, and I can’t reproduce your issue.
    I created a custom list and an approval workflow which generated an column in the custom list. Then created a Chart Web Part which was connected to the custom list, I didn’t meet any error.
    Let’s verify the following:
    What template is your List template? what columns does the list has?
    What kind of workflow has generated the “Update Policy Tasks” column?
    I suggest you re-create the list without workflow and do a test, compare the results.
    Best Regards
    Lisa Chen

  • How do I create a chart in Keynote that auto-updates from data in Numbers?

    Hello all!  So, there are lots of answer to this for iWork'09, but I haven't found them for the current version of Work.
    What I'd like to do is take data from Numbers and create a chart in Keynote that would then auto-update if I edited the data in Numbers.  Put another way, the Keynote chart data would 'live' in Numbers - every time I edit the Numbers data, I'd like those changes to reflect in Keynote.  Any thoughts on how to do this outside of always cutting and pasting from Numbers to Keynote?
    Thanks!!

    Thanks Gary.  I thought I was crazy.  I remember that it used to be available - bummer that it's not now.

  • Trouble creating pie-chart

    Post Author: ujain82
    CA Forum: WebIntelligence Reporting
    Hello,      I am having trouble creating pie chart. I am calculating different count values from different data providers. Now I need to create a pie chart showing the proportion for each count as I can find the percentage of count.
    My scenario(task):I need count on persons depending on searching on complaint text. So for each search I have a data providers. Like this I am searching for 8 criteria. So I have different data providers for each search. I get person counts from each criteria.
    Now I want to show it in a pie chart. But I could not make it done.Does anyone faced a similar problem? How do I solve my problem?
    Any comments?

    Post Author: Chris Chen
    CA Forum: WebIntelligence Reporting
    Hi ujain82,
    Because you have some data provider,so some metric may have no conjunction,i suggest that you creat variables to reuse them.

  • How to create business charts in Forms 10g?

    In the old days, before and in 8i, we can still create business charts using Graphics Builder with the following graph types. How can we build business charts in forms 10g?
    Column: Shows discrete values using vertical columns
    Bar: Shows discrete values using horizontal bars
    Gantt: Shows task or project scheduling information using horizontal bars
    High-Low: Shows multiple Y-axis values for each X-axis point
    Line: Shows data values as points connected by lines to show trends
    Mixed: Combines a column and line chart
    Pie: Shows how individual data values contribute to an overall total
    Scatter: Plots 2 sets of potentially related data to identify possible trends
    Table: Shows text data in a table
    Double-Y: Shows a column or line chart with multiple values for the same X-axis value

    On the samples page on OTN there is a piece on how to use BI beans to achieve business charts. Search for "BI bean Graphs in Forms".

  • Creating SVG Chart with multiple lines

    Hi All,
    I want to create a chart with multiple lines.
    Ex: I have one emp table with empno, sal and deptno columns.
    I want to print deptno in x axis and no of employees on y axis.
    I want to print one line for employees with sal > 15000 and one more line for employee with sal =< 15000
    So one line will show no of employees with sal more than 15000 for each dept. Similar case for the other line and these 2 lines should be in different colors.
    For one line the query will go as
    select link, deptno, count(empno)
    from emp where sal > 15000 group by null, deptno
    Is this possible to draw this chart?
    Thanks,
    Manoj

    I wasn't able to do something like what you describe, but I was able to do this:
    I defined column A of the table as a Header Row, selected the cells in the table, and chose this chart type (2D 2 Axis):
    Then I clicked the chart and in the pane at the right checked 'Axis Name' in the Axis tab and added the axis names.
    Maybe this can give you an idea of how you can illustrate the relationships that you want to show.
    SG

  • Need to create a chart in summary page and link it to data

    I need to create a chart in a XL worksheet that contains other summary information. I am able to create a chart in a seperate sheet but i simply cannot find a way to insert a chart into a worksheet already containing some information. To make it clear, my requirement is as follows:
    Inser a chart in cell 'X,Y' with a dimention of 'W,H' and link the chart data to some data in some other page 'sheet1'.

    And that answr is?
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Can you put line break in text in the data box when creating a chart.  i.e. if you have a bar chart

    Can you put line break in text in the data box when creating a chart.
    i.e. if you have a bar chart with text underneath each bar, can you break it when you’re entering it instead of manually afterwards
    Thanks

    http://help.adobe.com/en_US/illustrator/cs/using/WS3f28b00cc50711d9fc86fa8133b3ce158e-8000 .html
    See "Enter labels"

  • Create pie chart in jsp

    how to create pie chart in jsp based on sql server 2000 database
    please give example or code with explanation

    http://sourceforge.net/projects/jfreechart
    - Saish

  • How can I create a chart using data (from formulas) in my header columns?

    Hello,
    I'm wanting to create a chart using formula totals in my header column. When I attempt to click on the chart icon after selecting my header column, the chart button doesn't appear. Any help would be greatly appreciated. Thanks!

    Move your formulas in a non header column.
    In the cell A2 of the table "aux", the formula is :
    =IF(ISBLANK(main :: A2),"",main :: A2)
    then I applied Fill Down.
    Yvan KOENIG (VALLAURIS, France) mardi 2 août 2011 15:07:54
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • How do I create a chart where the lower numbers are at the top?

    I'm charting data that shows a ranking, where the rank can be a number anywhere from 1 to 1000. 1 is the highest. When I create a chart, 1 is at the bottom. How do I flip the chart so 1 is at the top and 1000 at the bottom?

    Philip,
    I think Bad Units suggestion is similar and better.  Rather than simply inverting the sign to that with an offset:
    I suggested
    0  - n
    Bad Unit suggested:
    100 - n
    (assuming there are 100 ranks)  if there are A ranks then I suggest (like Bad Unit):
    A - n
    This can be accomplished by moving the current data to another column, then performing the calculation in the column where the chart takes its' data.
    move the data over to an adjacent column
    Now enter the formula to adjust the rankings:
    B2=100-C2
    select B2 and fill down as needed.  To do this for a large data set select, and copy, B2.  Then select B2 and scroll to the end of the colunm using the scroll bar then shift-click the last cel in the column, then paste.

  • How do I create this chart in Numbers?

    I want to create a chart with one set of values on the x axis and two sets of distinct values on the y axis (not sure if I'm using the right terminology). Furthermore, the two sets of data for the y axis are quite different in terms of value: the first set ranges from 147-1100, and the second set ranges from 4.9-6.4.
    Perhaps the easiest way to describe what I want to do is show you the chart as it exists in Powerpoint. Here's a link to it:
    http://farm3.static.flickr.com/2002/22341463160d59f6f44eo.jpg
    Can it be done in Numbers? How?

    Select data to graph:
    Select Graph Icon to make Line Graph:
    Graph created but both series are plotted on the same Y-Axis:
    Select Series Data on Chart to plot on Secondary Y-Axis: (Control-Select and select "format Data Series"):
    Select Y-Axis min max values:
    Regards,
    Add Y-Axis labels as necessary.
    Message was edited by: WWJD

Maybe you are looking for