Gantt Chart - #DATA# value

Hi All,
I am using Oracle Apex version 4.2.2.00.11.
I do have a gantt chart in one of my application and that is working fine, in this gantt chart we are not using any custom XML generation logic.
Now we got another requirement from client, in this we are going for custom XML generation logic because of the nature of data.
They do expect the similar chart which we have already, now my requirement is, how can i look at the XML generated in my first Gantt Chart? because the XML part contains the parameter as, #DATA# and this contains the answer am searching for.
Can anyone please help me to pull out the XML generated(#DATA#) by Apex in my first chart?
Thanks in advance.
With Regards,
Sakthi.

Run you page in debug mode. Then automagically a link appears below your chart "Show XML". Click that one 'et voila' ....

Similar Messages

  • Gantt Chart Data not getting pouplated

    Hello,
    I am using Gantt charts in apex for showing up large data.
    I am following this method to store huge data which is in xml(more than 32k) into a page item. (http://apex.oracle.com/pls/otn/f?p=35254:5:877211585824396::NO).
    I set my session state like APEX_UTIL.set_session_state (p_name => 'P10_DATA', p_value => APEX_APPLICATION.g_x01) and pass this item into gantt chart
    The problem i am facing is that even though i see that the value of P10_DATA is populated with all the data during debugging, upon opening session and checking the item's value, it displays null !!!
    Note:For data with less than 32k, Gantt chart loads correctly and the item's value gets saved.
    Anyine please help me with this..
    Regards,
    Uday

    Hello,
    I am using Gantt charts in apex for showing up large data.
    I am following this method to store huge data which is in xml(more than 32k) into a page item. (http://apex.oracle.com/pls/otn/f?p=35254:5:877211585824396::NO).
    I set my session state like APEX_UTIL.set_session_state (p_name => 'P10_DATA', p_value => APEX_APPLICATION.g_x01) and pass this item into gantt chart
    The problem i am facing is that even though i see that the value of P10_DATA is populated with all the data during debugging, upon opening session and checking the item's value, it displays null !!!
    Note:For data with less than 32k, Gantt chart loads correctly and the item's value gets saved.
    Anyine please help me with this..
    Regards,
    Uday

  • Gantt chart date format?

    Hi,
    If i define format string on a view object's date attribute and use this attribute on a gantt chart, I get an error:
    avax.el.ELException: java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Date
         at javax.el.BeanELResolver.getValue(BeanELResolver.java:266)
         at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:143)
         at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72)
         at oracle.adfinternal.view.faces.bi.renderkit.gantt.ProjectTaskbarsRenderer.encodeAll(ProjectTaskbarsRenderer.java:281)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1187)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:751)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:415)
         at oracle.adfinternal.view.faces.renderkit.rich.table.BaseColumnRenderer.renderDataCell(BaseColumnRenderer.java:1133)
         at oracle.adfinternal.view.faces.renderkit.rich.table.BaseColumnRenderer.encodeAll(BaseColumnRenderer.java:104)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1187)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:751)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:415)
         at oracle.adfinternal.view.faces.renderkit.rich.TreeTableRenderer.encodeChild(TreeTableRenderer.java:744)
         at oracle.adfinternal.view.faces.renderkit.rich.TableRenderer.renderDataBlockRows(TableRenderer.java:1852)
         at oracle.adfinternal.view.faces.renderkit.rich.TableRenderer._renderSingleDataBlock(TableRenderer.java:1552)
         at oracle.adfinternal.view.faces.renderkit.rich.TableRenderer._handleDataFetch(TableRenderer.java:964)
         at oracle.adfinternal.view.faces.renderkit.rich.TableRenderer.encodeAll(TableRenderer.java:494)
         at oracle.adfinternal.view.faces.renderkit.rich.TreeTableRenderer.encodeAll(TreeTableRenderer.java:597)
         at oracle.adfinternal.view.faces.bi.renderkit.gantt.GanttChartTreeTableRenderer.encodeAll(GanttChartTreeTableRenderer.java:105)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1187)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:751)
         at org.apache.myfaces.trinidad.component.UIXCollection.encodeEnd(UIXCollection.java:527)
         at oracle.adfinternal.view.faces.bi.renderkit.gantt.GanttChartTreeTable.encodeEnd(GanttChartTreeTable.java:89)
         at org.apache.myfaces.trinidad.render.RenderUtils.encodeRecursive(RenderUtils.java:70)
         at oracle.adfinternal.view.faces.util.rich.InvokeOnComponentUtils$RenderCallback.invokeContextCallback(InvokeOnComponentUtils.java:97)
         at org.apache.myfaces.trinidad.component.UIXCollection.invokeOnComponent(UIXCollection.java:1024)
         at oracle.adf.view.faces.bi.component.gantt.UIGantt.invokeOnComponent(UIGantt.java:1718)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1312)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1406)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1312)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1406)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1312)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.invokeOnComponent(ContextSwitchingComponent.java:188)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1312)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1406)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1312)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1406)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1312)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1406)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1312)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1406)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1312)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1406)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1312)
         at oracle.adf.view.rich.component.fragment.UIXInclude.invokeOnComponent(UIXInclude.java:123)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1312)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1406)
         at oracle.adf.view.rich.component.rich.RichDocument.invokeOnComponent(RichDocument.java:159)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:731)
         at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:675)
         at oracle.adfinternal.view.faces.util.rich.InvokeOnComponentUtils.renderChild(InvokeOnComponentUtils.java:29)
         at oracle.adfinternal.view.faces.streaming.StreamingDataManager._pprComponent(StreamingDataManager.java:616)
         at oracle.adfinternal.view.faces.streaming.StreamingDataManager.execute(StreamingDataManager.java:465)
         at oracle.adfinternal.view.faces.renderkit.rich.DocumentRenderer._encodeStreamingResponse(DocumentRenderer.java:2608)
         at oracle.adfinternal.view.faces.renderkit.rich.DocumentRenderer.encodeAll(DocumentRenderer.java:969)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1187)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:751)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.__encodeRecursive(UIXComponentBase.java:1494)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeAll(UIXComponentBase.java:771)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:942)
         at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:271)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:202)
         at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:189)
         at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:193)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:685)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:261)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:193)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at net.kinvent.javax.RequestAgentFilter.doFilter(RequestAgentFilter.java:28)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56Any workarounds?

    Just found another issue. Gantt chart seems to take into account users timezone from trinidad config when rendering tasks on timeline.
    However, when you rollover a task, start and end date are displayed in system time. ProjectGantt has no "timeZone" property to override this behavior.

  • Problem with Gantt chart data (not a newbie)

    Post Author: wbvczar
    CA Forum: Charts and Graphs
    I am pulling data from an SQL 2000 database that stores the date as UNIX time in a string field.  Once I pull the data into Crystal via a Command, I then create a formula to convert to DateTime  format.  The problem is that when I enter this formula into the Chart Expert, it wants to count it instead of seeing it as a Date field. Is the problem because the original field format is not a DateTime field in the database?

    Post Author: wbvczar
    CA Forum: Charts and Graphs
    The formula (actually a function) is quite detailed (and lengthy) to compensate for daylight saving time changes.  I have posted it below, but I can verify that it is not splitting out the date and time separately.//Function  (numberVar v1)//date(1970,01,01)//Truncate((v1/(606024))-(5/24))Function (numbervar v1)//formula to adjust for UNIX time//HD stores dates as number of seconds since 1/1/1970 in Universal or GMT time. //convert from seconds to a date, //then convert to EST //finally, validate date for daylight savings time  // convert ARS date from # of seconds since 1/1/1970 in Universal (or GMT) timedatetimevar GMTdate := datetime(1970,01,01)(v1/(606024));//this equation tells the system when daylight savings time starts: datevar DaylightStarts :=                                                   if DayOfWeek ( Date (Year (Today),3 ,8 ) ) = 1 then Date (Year (Today),3 ,8)  else if DayOfWeek ( Date (Year (Today),3 ,9 ) ) = 1 then Date (Year (Today),3 ,9)  else if DayOfWeek ( Date (Year (Today),3 ,10) ) = 1 then Date (Year (Today),3 ,10) elseif DayOfWeek ( Date (Year (Today),3 ,11) ) = 1 then Date (Year (Today),3 ,11) elseif DayOfWeek ( Date (Year (Today),3 ,12) ) = 1 then Date (Year (Today),3 ,12) else if DayOfWeek ( Date (Year (Today),3 ,13) ) = 1 then Date (Year (Today),3 ,13) elseDate (Year (Today),3 ,14 );    //this is when it ends: datevar DaylightEnds :=                                                            if DayOfWeek ( Date (Year (Today),11 ,1 ) ) = 1 then Date (Year (Today),11,1 ) else if DayOfWeek ( Date (Year (Today),11 ,2 ) ) = 1 then Date (Year (Today),11,2 ) else if DayOfWeek ( Date (Year (Today),11 ,3 ) ) = 1 then Date (Year (Today),11,3 ) else if DayOfWeek ( Date (Year (Today),11 ,4 ) ) = 1 then Date (Year (Today),11,4 ) else if DayOfWeek ( Date (Year (Today),11 ,5 ) ) = 1 then Date (Year (Today),11,5 ) else if DayOfWeek ( Date (Year (Today),11 ,6 ) ) = 1 then Date (Year (Today),11,6 ) else Date (Year (Today),11 ,7 );//The timeadj equation adjusts things for daylight savings & time zone // if today is less than the 1st Sunday in April, or greater than or //equal to last Sunday in October then adjust 5 hours, else if DST then 4numbervar timeadj :=if (GMTdate < DaylightStarts) or (DaylightEnds <= GMTdate) then 5 else 4;//put it all together and we have datedate(GMTdate-(timeadj/24))

  • Dsiplay data values and data lables in a stacked column chart

    Hi All
    Is there a way to display data values and data labels in a stacked column chart. Mouse over or display of labels in legends wont help. It has to be in the chart .
    Regards,
    anshul

    Hi Anshul,
    You can display either data value or data label in a stacked column chart by checking the Data Label Displaying Mode option under Format Chart->Data Values.
    You can also do the same by checking the same option under Format chart->Area Display->Data Values.
    I dont think you would be able to display both in a column chart whereas you would be able to do it in a pie chart.
    Hope this helps.
    Regards
    Sri Harsha

  • Gantt chart is not showing the topmost task properly

    Hi,
    I have tried to create a gantt chart similar to [http://www.anychart.com/products/anygantt/gallery/sample_02.html]
    , except the connectors are not necessary. I could do this by dropping some parts out from the custom XML, but the parent tasks are always displayed with the same style as the child tasks. I want to make the parent periods display so that they are different from the child periods like in the chart example, where they are gray and thinner. How is that possible ?
    Tiina

    Hi Tiina,
    Firstly, just to explain the current behaviour, the timeline bars in Gantt charts generated in APEX have a default style called defaultStyle applied to them. This style controls the appearance of the various components of the timeline region, such as the actual bar colour, the progress bar colour, etc. The default style needs to be applied to the <task> tags within the chart XML i.e. the tags containing the data for your Gantt chart. In order to allow our users to control the appearance of the timeline items via attributes on the Chart Attributes page, we update the default Style with values selected on the Chart Attributes page and then we reference that style in the <task> tag, as follows:
    <project_chart>
      <tasks>
        <task id="7782" parent="" name="Charts Integration" actual_start="2009.03.21 12.03.00" actual_end="2009.09.21 12.09.00" baseline_start="2009.03.18 12.03.00" baseline_end="2009.09.26 12.09.00" progress="60" style="defaultStyle"/>
      </tasks>
    </project_chart>....where style=&quot;defaultStyle&quot; is the reference to the style. If you look in the XML you'll see where the default Style has been defined. The <tasks> tags are generated at runtime, and populated with the resultset for the chart series query. If we didn't apply a default style to these tags, then users would be required to manually generate the <tasks> tags themselves in order to apply a style to their Gantt chart data.
    In AnyChart, no style has been applied to the example you selected - http://www.anychart.com/products/anygantt/gallery/sample_02.html - only default AnyChart settings are being used here. Due to the existence of style=&quot;defaultStyle&quot; in your Gantt data, you'll have to make the necessary changes within the </styles> tags of your XML. These changes can be made via the options exposed on the Chart Attributes page or by customizing the XML. I know this isn't exactly the same as the AnyChart example, but you can achieve something similar by just updating the Chart Attribute settings, as done on this example: http://apex.oracle.com/pls/apex/f?p=36648:50. I hope this helps.
    Regards,
    Hilary

  • Gantt chart view

    Hello 
    Im new to project coming from a Primavera background, still trying to get used to the features. So this isnt really a problem just annoying really. When i open projects the gantt chart date always shows 2013 so i have to drag it along i thought maybe i could
    reset the date so the status date always shows instead. Is this possible?
    Thanks in advance :)

    Kathhee,
    The view will open as you left it.  As an alternative you can press Scroll to Task (CTRL-SHIFT-F5) and it will display the Gantt chart as per the focused task.
    Ben Howard [MVP] | web |
    blog |
    book | P2O

  • While Loop in Gantt Chart Value

    the problem is in the "createDataset" method whereby i want to do a while loop where i can check the data inside the database that i just inserted. after that i want to pass in all the data that is needed to generate the Gantt Chart. can anyone help me on this?
    thanks
    package ericTest;
    import java.io.BufferedReader;
    import java.io.DataInputStream;
    import java.io.File;
    import java.io.FileReader;
    import java.io.IOException;
    import java.text.ParseException;
    import java.util.StringTokenizer;
    import java.util.ArrayList;
    import java.util.Iterator;
    import java.util.Calendar;
    import java.util.Date;
    import org.jfree.chart.ChartFactory;
    import org.jfree.chart.ChartPanel;
    import org.jfree.chart.JFreeChart;
    import org.jfree.data.category.IntervalCategoryDataset;
    import org.jfree.data.gantt.Task;
    import org.jfree.data.gantt.TaskSeries;
    import org.jfree.data.gantt.TaskSeriesCollection;
    import org.jfree.data.time.SimpleTimePeriod;
    import org.jfree.ui.ApplicationFrame;
    import org.jfree.ui.RefineryUtilities;
    import com.db4o.Db4o;
    import com.db4o.ObjectContainer;
    import com.db4o.ObjectSet;
    public class GanttDemo3 extends ApplicationFrame {
       public GanttDemo3(final String title) {
            super(title);
            final IntervalCategoryDataset dataset = createDataset();
            final JFreeChart chart = createChart(dataset);
            // add the chart to a panel...
            final ChartPanel chartPanel = new ChartPanel(chart);
            chartPanel.setPreferredSize(new java.awt.Dimension(500, 270));
            setContentPane(chartPanel);
             public final static String filename = "C:\\KLGCC Mock Up.yap";
             private static ObjectContainer db;
             private static String day;
             private static String month;
             private static String year;
             private static String task;
             private static String startDate;
             private static String endDate;
             private static String startDay;
             private static String startMonth;
             private static String startYear;
             public static int startDay1;
             public static int startMonth1;
             public static int startYear1;
             public static String endDay;
             public static String endMonth;
             public static String endYear;
             public static int endDay1;
             public static int endMonth1;
             public static int endYear1;
             DataInputStream dis = null;
             String fileRecord = null;
             public void storeData() throws IOException{
                  new File(filename).delete();
                  db = Db4o.openFile(filename);
                       File f = new File("C:\\KLGCC Mock Up.txt");
                       FileReader fis = new FileReader(f);
                       BufferedReader bis = new BufferedReader(fis);
                       while((fileRecord = bis.readLine()) != null){
                                 StringTokenizer st = new StringTokenizer(fileRecord,",");
                                 task = st.nextToken();
                                 startDate = st.nextToken();
                                 endDate = st.nextToken();
                                 System.out.println(task+ " - " +startDate+ " - " +endDate);
                                 Country c = new Country(task, startDate, endDate);
                                 db.set(c);               
                       db.close();
             public void storeStartDate() throws ParseException{
                  db = Db4o.openFile(filename);
                  Country c = new Country();
                  ObjectSet result = db.get(c);
                  while(result.hasNext()){
                       Country obj = (Country)result.next();
                       String sDate = obj.getStartDate();
                       StringTokenizer str = new StringTokenizer(sDate, "/");
                       startMonth = str.nextToken();
                       startDay = str.nextToken();
                       startYear = str.nextToken();
                       System.out.println(startYear);
                       int startMonth1 = Integer.parseInt(startMonth);
                       int startDay1 = Integer.parseInt(startDay);
                       int startYear1 = Integer.parseInt(startYear);
                       //startMonth1 = startMonth1 + 1;
                       ArrayList<Integer> startDay2 = new ArrayList<Integer>();
                       startDay2.add(startDay1);
                       ArrayList<Integer> startMonth2 = new ArrayList<Integer>();
                       startMonth2.add(startMonth1);
                       ArrayList<Integer> startYear2 = new ArrayList<Integer>();
                       startYear2.add(startYear1);
                       System.out.println("Heloo" +startDay2+ "/" +startMonth2+ "/" +startYear2);
                  db.close();          
        public void storeEndDate() throws ParseException{
                  db = Db4o.openFile(filename);
                  Country c = new Country();
                  ObjectSet result = db.get(c);
                  while(result.hasNext()){
                       Country obj = (Country)result.next();
                       String sEndDate = obj.getEndDate();
                       StringTokenizer str1 = new StringTokenizer(sEndDate, "/");
                       endMonth = str1.nextToken();
                       endDay = str1.nextToken();
                       endYear = str1.nextToken();
                       int endMonth1 = Integer.parseInt(endMonth);
                       int endDay1 = Integer.parseInt(endDay);
                       int endYear1 = Integer.parseInt(endYear);
                       ArrayList<Integer> endDay2 = new ArrayList<Integer>();
                       endDay2.add(startDay1);
                       ArrayList<Integer> endMonth2 = new ArrayList<Integer>();
                       endMonth2.add(endMonth1);
                       ArrayList<Integer> endYear2 = new ArrayList<Integer>();
                       endYear2.add(endYear1);
                       System.out.println("END" +endDay2+ "/" +endMonth2+ "/" +endYear2);
                  db.close();
        public static IntervalCategoryDataset createDataset() {
             final TaskSeries s1 = new TaskSeries("Scheduled");
             //Country chart = new Country();
             ArrayList ar = new Arraylist;
             Iterator it = ar.iterator();
             while it.hasNext();{
             s1.add(new Task("abc",
                   new SimpleTimePeriod(date(startDay1, startMonth1, startYear1),
                                        date(endDay1, endMonth1, endYear1))));
                    final TaskSeriesCollection collection = new TaskSeriesCollection();
            collection.add(s1);
            return collection;
         * Utility method for creating <code>Date</code> objects.
         * @param day  the date.
         * @param month  the month.
         * @param year  the year.
         * @return a date.
        private static Date date(final int day, final int month, final int year) {
            final Calendar calendar = Calendar.getInstance();
            calendar.set(year, month, day);
            final Date result = calendar.getTime();
            return result;
         * Creates a chart.
         * @param dataset  the dataset.
         * @return The chart.
        private JFreeChart createChart(final IntervalCategoryDataset dataset) {
            final JFreeChart chart = ChartFactory.createGanttChart(
                "Gantt Chart Demo",  // chart title
                "Task",              // domain axis label
                "Date",              // range axis label
                dataset,             // data
                true,                // include legend
                true,                // tooltips
                false                // urls
    //        chart.getCategoryPlot().getDomainAxis().setMaxCategoryLabelWidthRatio(10.0f);
            return chart;   
        public static void main(final String[] args) throws IOException, ParseException
            final GanttDemo3 demo = new GanttDemo3("Gantt Chart Demo 1");
            demo.storeData();
            demo.storeStartDate();
            demo.storeEndDate();
            demo.pack();
            RefineryUtilities.centerFrameOnScreen(demo);
            demo.setVisible(true);
    }

    sorry. i know it's kinda blurr.
    i did some modification on this part of the code
    public static IntervalCategoryDataset createDataset() {
             final TaskSeries s1 = new TaskSeries("Scheduled");
             //Country chart = new Country();
             ArrayList ar = new ArrayList();
             for (Iterator it = ar.iterator(); it.hasNext();)
             s1.add(new Task(task,
                   new SimpleTimePeriod(date(startDay1, startMonth1, startYear1),
                                        date(endDay1, endMonth1, endYear1))));
             System.out.println(task);
            final TaskSeriesCollection collection = new TaskSeriesCollection();
            collection.add(s1);
            return collection;
             }the problem is the gantt chart after i have generated couldn't come out any value. is it because i never executed some methods?
    thanks

  • Setting Custom XML = Yes in resource gantt chart removes start & end dates

    I'm having a strange issue with a Resource Gantt chart in Apex 4.0.2.
    I built the chart using the Wizard and changed nothing from the defaults. Everything looks/acts fine on the chart when Use Custom XML = No. But I wanted to change a couple things like cell alignment and width, so I set this to Yes and modified the column attributes in the XML code. After doing so, when running the report, the values for Start Date and End Date are not showing. This is happening in both the datagrid and the tooltips, but the timeline is still showing the right information (ie a bar from start to end), so I know it still knows what the correct start and end dates are.
    Thinking I accidentally messed something up, I deleted the chart and recreated it (again, from the wizard). This time, I went back and only set Use Custom XML = Yes but did not change anything within the XML code itself. To my surprise, the dates were still missing. If I set it back to No then they reappear.
    Has anyone seen this before and/or know a way to fix it?
    Thanks,
    ~ John

    Hej John,
    APEX itself is using a field substitution "&DATE_FORMAT." to insert the date format into the XML file. This field substituion is used in may location in the default XML. APEX standard action is to substitute it with the value specified in the Gantt Setting "Date Format". This substitution takes place many places in the default XML file.
    Enabling custum XLM also means disabling APEX XML handling, the substitution does not take place, the "&DATE_FORMAT." contains in this case a null value.
    The default XML file, which can be viewed in apex developer mode, looks like:
    Start Date: {%ActualStart}{dateTimeFormat:&DATE_FORMAT.}
    The runtime XML, which can be viewed in debug mode, contains something like:
    Start Date: {2011.07.21 00:00:00}{dateTimeFormat:}
    ...a null value is not a valid AnaGantt date format.
    Two solutions:
    a) insert a correct AnyGannt date formatter in the custom XML like
    Start Date: {%ActualStart}{dateTimeFormat%YYYY.%MM.%dd %HH:%mm:%SS}
    or
    b) create a field DATE_FORMAT on page containg the chart and intialize it with the AnyGantt date formatter like %YYYY.%MM.%dd %HH:%mm:%SS".
    When running the page the substitution will take place usually.
    Regards,
    Benny

  • How can I show a 0% range in the data value label on a bar chart thanks?

    How can I show a 0% range in the data value label on a bar chart thanks?

    I'm not sure what the question is. 
    I know that if you have a bar chart and one of the categories (X-axis) has bar (Y value) equal to 0%, no bar is plotted for that category. Even the addition of a stroke (line) around the bars doesn't make one appear for 0%.  The only automatic way I know of to make it look like there is data in that category is to add the value labels to the bars. Inspector/Chart/Series, select one of the bars on the chart, click on "value labels". Another method that is a workaround is to fudge the number a little in your table so that instead of 0% it is a very small %.  This will get you a thin line on the chart.
    But if your question is about the value labels (the numbers that display on or in the bars) and you are not getting one for a bar that is supposed to be 0%, it probably means your table doesn't actually have a 0% in the corresponding cell. A blank cell in the table will not get a value label.

  • Data values on Bar Chart in a BI Publisher report (11g)

    I have a bar chart that I created via the layout editor in BI Publisher 11g, and I'm displaying the data values on the chart. That part works great. However, we're noticing that the chart adds zeros to the end of the data values depending on the length of the number being passed to the chart. My data item is a number that is 5 bytes in total, with 2 decimals. If the data value is *10.10*, the data displayed on the bar chart shows *10.10*. But when my data value is *1.10*, the data displayed on the bar chart is *1.100*. And if my data value is *.10*, the bar chart displays *0.1000*. The bar chart adds zeros to the end as the number of characters to the left of the decimal decreases.
    I don't see a way to make it not do that. Has anyone else run into this, and been able to change it?

    Basically what are you trying to do :
    Attaching Mutiple Data Definition to a XML Program and deciding which one to call ased on parameter.Sorry you can not do that one Data DEfinition per Report.
    ut there is one way of doing that.
    Create multiple data defintion( mutiple programs) and then a master program something like
    IF Master Program Param1 = 'X'
    call BI Program 1
    ELSIF Master Program Param1 = 'Y'
    call I Program 2....
    End IF;

  • How to show data value labels in the charts without moving my mouse on the data point?

    Sometimes I need to show a chart with data value labels which is not necessary to move my mouse on the data points. However, it seems Xcelsius does not support this simple feature. Any alternative ways?
    Many thanks!

    Currently, Xcelsius does not support display of labels at data points. It would be difficult to move and update labels on a chart with dynamically updated data. However, a work around for a static chart would be to add a Label component in the desired location. This can be done for multiple static charts by using dynamic visibility.

  • Duplicate y-axis labels on charts for small data values -- is this a bug?

    Hi,
    I have several charts where the data values are small (1,2,3). The y-axis labels are duplicated for these charts. For example, if the data value was 2 the y-axis labels display as 0 1 1 1 2 2 2. I know that I can manually set the maximum y-axis value and also set the segments on the chart to eliminate the duplicate values. My issue is that I have over 100 charts in my dashboard and I have to manually set the values each month, and then in the next month when the data values are larger I have to remove the maximum y-axis value so the y-axis value is dynamically created. Is this a known bug within the software? Is there any fix for this besides what I'm already doing?
    Please let me know if anyone else has seen this issue and if this is a bug, or if this has been corrected in any fix packs.
    Thanks!!

    Hi Jim,
    I have data for three months in the data range A1 to B3 as given below -
    Jan - 1
    Feb - 2
    Mar - 3
    In Cell D1 write a formula =MAX(B1:B3)+1 (This will give you value 4)
    Go to Chart property -> Behavior -> Scale -> Manual (Y) Axis ->  Minimum 0 and Maximum will be pointing to cell D1.
    Go to Chart property -> Behavior -> Scale -> Division -> Size of Division 1 and Minor Divisions 1
    This will give you Y Axis values as 0,1,2,3,4
    Now change value of any month to 5.  Now value in D1 would become 6 and Y-Axis would change to 0,2,4,6.
    Hope this helps.
    Rashmi
    Edited by: RashmiG on Jan 8, 2010 4:45 PM

  • Gantt chart with null dates

    Hi,
    Kylie discovered here that you couldn't have null dates in the project gantt query
    APEX 4.0.2 Project Gantt Chart - Error Code: 2002 Message: Empty input
    As Valentina suggested, I found the actual dates are mandatory, while the chart tolerates missing planned dates - which is a complete reversal of what actual project data would have.
    baseline project gantt with parent-child relationship
    What I found though is if some planned dates are missing, the generated XML seems to default with data from previous rows.
    As detailed in this screenshot, my red lines indicate missing from/to dates (actual data also shown underneath chart)
    https://docs.google.com/file/d/0B_eVXQ_oe4tsRUFXUzA0NmNMUE0/edit?usp=sharing
    NAME    TASK_ID   ACTUAL_START  ACTUAL_END  PROGRESS  DUE_START     DUE_END
    line 1  1810794   07/MAR/2013   11/MAR/2013   100     26/MAR/2013   27/MAR/2013 00:00:00
    line 2  1810780   12/MAR/2013   16/MAR/2013   100     23/MAR/2013   27/MAR/2013 00:00:00
    line 3  1810779   17/MAR/2013   20/MAR/2013          
    line 4  1810773   21/MAR/2013   21/MAR/2013   50      24/MAR/2013  
    line 5  1810774   22/MAR/2013   10/APR/2013   93      16/MAR/2013  
    line 6  1810791   11/APR/2013   20/APR/2013          
    line 7  1810793   21/APR/2013   22/APR/2013   45      21/MAR/2013   The accompanying XML backs up the story, yet my query doesn't feed this data.
    <task id="1810794" parent="" name="line 1" actual_start="2013.03.07 00.00.00" actual_end="2013.03.11 00.00.00" baseline_start="2013.03.26 00.00.00" baseline_end="2013.03.27 00.00.00" progress="100" style="defaultStyle"/>
    <task id="1810780" parent="" name="line 2" actual_start="2013.03.12 00.00.00" actual_end="2013.03.16 00.00.00" baseline_start="2013.03.23 00.00.00" baseline_end="2013.03.27 00.00.00" progress="100" style="defaultStyle"/>
    <task id="1810779" parent="" name="line 3" actual_start="2013.03.17 00.00.00" actual_end="2013.03.20 00.00.00" baseline_start="2013.03.23 00.00.00" baseline_end="2013.03.27 00.00.00" style="defaultStyle"/>
    <task id="1810773" parent="" name="line 4" actual_start="2013.03.21 00.00.00" actual_end="2013.03.21 00.00.00" baseline_start="2013.03.24 00.00.00" baseline_end="2013.03.27 00.00.00" progress="50" style="defaultStyle"/>
    <task id="1810774" parent="" name="line 5" actual_start="2013.03.22 00.00.00" actual_end="2013.04.10 00.00.00" baseline_start="2013.03.16 00.00.00" baseline_end="2013.03.27 00.00.00" progress="93" style="defaultStyle"/>
    <task id="1810791" parent="" name="line 6" actual_start="2013.04.11 00.00.00" actual_end="2013.04.20 00.00.00" baseline_start="2013.03.16 00.00.00" baseline_end="2013.03.27 00.00.00" style="defaultStyle"/>
    <task id="1810793" parent="" name="line 7" actual_start="2013.04.21 00.00.00" actual_end="2013.04.22 00.00.00" baseline_start="2013.03.21 00.00.00" baseline_end="2013.03.27 00.00.00" progress="45" style="defaultStyle"/>Is this expected behaviour?
    Is this a bug?
    Is there a workaround - can I supply my own XML to hopefully override what is being generated?
    Scott

    Hi Ahmed
    Thank you for your reply.
    The time scales in Gantt chart specifically shows the year, month and weeks from the start date of project definition or basic start of WBS.
    Since it is not a decided project, the Gantt chart need to show 0, 1st week, 2nd week, 3rd week etc.
    The actual schedule from PD start date can be produced on actual initiation of project.
    It means, i am looking for having Gantt chart for duration and not for specific start and finish dates.
    warm regards
    ramSiva

  • Gantt Chart Shows Months With Nothing in it Requiring User to Scroll to Dates

    I have a task list with a filtered list of dates that all fall in October yet the Gantt chart starts in April. Thus a user has to scroll all the way over to the far right to see any of the active tasks in the list. Is there a solution for this? Am I missing
    some basic setting? I also don't see the "You are here" date line. I am on SharePoint 2013 0365.
    Thanks!
    e

    Hi ,
    You can click the ribbon button "Zoom Out" under list tab to show a larger time increment on the time scale, then it should show the whole task bar and status without scrolling to the right.
    Thanks,
    Daniel Yang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you havefeedback for TechNet Subscriber Support, contact
    [email protected]
    Daniel Yang
    TechNet Community Support

Maybe you are looking for

  • How to add a new field in predefined report output

    HI,   how  to and where to  search for the filling of "fieldcat table" in the  predefined ALV report. So that i can add a new field in the output of a predefined report

  • HTTP Error 403.1

    I am following a flash from to database via asp tutorial. When I try to test the asp code in the browser I get this message. "You have attempted to execute a CGI, ISAPI, or other executable program from a directory that does not allow programs to be

  • How do I make my hard drive case insensitive?

    I have recently tried to purchase Adobe Acrobat XI, an upgrade from Acrobat Pro 9, which ran just fine on my MacBook Pro. When I try to install XI, I get the following message: "The installation cannot proceed, because the operating system is running

  • Visual Administrator: Logon Failure

    Hi All, when i am trying to open go.bat file  its giving the error message "The system cannot find the path specified.Program terminated abnormally" in tolllanucher. please help me how can i resolve this? Regards Suresh

  • MIGO creating New Smartform for BARCODE label

    Hi , Creating a new smartforms form MIGO Tcode --- i.e. BARCODE LABEL. - From scrach Input is P.O No. but while writing program from where I have to take input for this ....? After writing logic where to attach driver program in NACE. ? Tks: Maddy