Line Charts - X-axis Labels as function of X-axis value

Hi,
1) Is there a way to put X-Axis labels in line chart as function of X-axis values ?
For instance, X-axis values are in minutes and I need to show those as Hours.
I'm having Hours as separate column as well, but when its selected as X-axis value column, the line graph is disturbed.
2) Also, how to specify the length/range of X-axis ?
For instance, in dataset if I've x-axis values from 0 to 5 hours but still want to show on graph the X-axis till 8 hours.
Thanks for your help in advance.
Regards,
Sumit

Hi Sumit,
I have tried following things with proper datetime format may be help you.
1> in your applet code you can add below param
<PARAM NAME="XAxisDateFormat" VALUE="H">
it will display your levels in hours for more details please refer Date and Time Format under query template in MII help.
2>In your Query template under date range you can select duration and duration unit.
for 8 hour span you can select Duration = 8 and in duration unit = H
I have tested it for a tag query, may be i did not understand your issue properly but hope it helps you!!!
Regards,
Manoj Bilthare

Similar Messages

  • JavaFX line chart with data labels onMouseOver

    Hello
    Is it possible to show the value of a data point in a line chart?
    Here is an example but in flash: [Example of Data labels|http://www.fusioncharts.com/Demos/Blueprint/Default.asp]

    Hi
    I don't use the scene.chart routines but have implemented my own chart with the feature you want - see www.eco-wand.com demonstration which has the feature you wand in the History scene.
    To achieve this, I use the onMouseMoved function to give me the x position within the chart rectangle. I use this to look up my data sequence to get the values which I then display as text.
    abg

  • How to Axis labels for Line charts in Business Graphics

    Hi
    I am planning to do the Business Graphic example using Line chart.As part of this
    i didn't clearly understand what is the perpose of Series,Points,categorys?
    if i want to set the Labels at X-axis and y axis ,then how to do that?Baiscally i want to put time related data as X-axis label(20min,30min,60 min etc).Please help.
    is there any good example to understand the concept?
    Thanks
    Prasad

    Hi Bachier
    Thanks for your repsonce.I had seen the example you suggested.but there is no answer for my question.How to set the x-Axis,Y-axis Labels.I had done example for "line chart".But i have same problem:
    Hi
    I am trying to do example on "line chart" using Business graphics in my webdynpro application.
    In the Context i created Node "A" under which i created "B".then it has  value attributes xValue,yValue.Then in View i created BG UI element >Series>point-->NumericValue(for xValue) ,NumericaValue(yValue).Now in view init() method i had initialized values to x and y. some output is coming.but i want to know how to set the X-Axis Label,y-Axis Labels.in X-Aix Label i want to mention time in hrs i.e 8.00,8.30AM,9.00AM,9.30AM etc.as part of y-axis labels i want to mention numeric values( .2,.4,.8,2.0 etc). Please tell me how to set this X-Axis,y-Axis labels.at every 30min(8.00Am,8.30AM etc) user enter quality data(i.e .2 etc) then i want to generate chart.Please help in this regard.i will give very good points
    Thanks
    Prasad

  • Show Timestamp on Y axis in a SSRS line chart.

     I have a column with datatype as timestamp. And i want to show that column on Y axis in a line chart. two sample values from that column are 03/01/2014 11:30 PM and 03/02/2014 12:10 AM. In this case the data point for first value should be less compare
    to the second one, i.e. the series should consider the complete timestamp. Is there a way in SSRS to achieve it.
    If I only take the time value from timestamp on Y axis and plot the chart then the data point for 12:10 AM is less than the 11:30 PM, which is not true in this case.
    ApoorvaW

    Hi ApoorvaW,
    In Reporting Services, if we directly add the Timestamp field to Y Axis, it displays the count values in the line chart. When we modify the expression of the value to [Timestamp], it displays the date value in the Y Axis. Though it displays date type as
    the axis label, it represent the complete timestamp.
    So in my environment, the timestamp display very well in the line chart. If there are any misunderstanding, please elaborate the issue for further investigation.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Line Chart Problem, multiple point in X axis

    I need to create a line chart , with many data points between two points in the X-Axis.
    For example,
    for month january my reading is 4,3,5,2,8
    for month feb my reading is 1,5,3,5,2
    I need only two points in X axis, which are january and feb and all the reading should come in gaph.
    I am attaching a picture of the graph i required. Can any one help me how should i fill the arraycollection or XML in order to get the graph.

    Here is a script which will illustrate how to conditionally display the X-axis label on a line chart:
    DROP TABLE tmp_test_data;
    CREATE TABLE tmp_test_data
    (date_stamp DATE,
      value      NUMBER);
    BEGIN
      dbms_random.seed(1234535678);
      FOR i IN 1 .. 233 LOOP
        -- get a random integer between 1 and 100
        INSERT INTO tmp_test_data
         (date_stamp, value)
        VALUES (TRUNC(SYSDATE)-i, dbms_random.VALUE(1,100));
      END LOOP;
    END;
    SELECT NULL link, CASE WHEN MOD(day,7) = 0 THEN day ELSE NULL END label, value
      FROM (SELECT date_stamp, value, ROW_NUMBER() OVER (ORDER BY date_stamp) day
             FROM tmp_test_data a
             WHERE date_stamp >= TRUNC(SYSDATE)-90
             ORDER BY date_stamp) b
    ;There may be a better way to do this. I know this will work.
    Mike

  • Help! extremely small labels in Line Chart

    Hi all,
    I met a problem that i've been working on for a long time.
    If the SQL returned too many rows (e.g. 200+) to generate the Line Chart, the X/Y axis Labels would be too small to be recognised.
    I tried whatever i can imagine, like generating much fewer labels in the PL/SQL and using a font-size 30+...
    So far, so bad.
    Any suggestion???
    Thanks you so much!!!!

    Hi,
    Actually, there are many possible causes for this issue. Could you please tell me how the category labels come from? In other words, why are they all
    the same? I would like to suggest you post some sample data and your chart settings here. I have created a report with chart which has duplicate horizontal axis labels. To achieve your purpose, I hide all horizontal axis labels, and then use horizontal axis
    title instead of horizontal axis labels. I have uploaded my report as an example:
    With duplicate horizontal axis labels:
    http://cid-854fa6d2b7d88cc7.office.live.com/self.aspx/Work/Old.rdl
    No duplicate horizontal axis labels:
    http://cid-854fa6d2b7d88cc7.office.live.com/self.aspx/Work/New.rdl
    If there is anything unclear, please feel free to ask.
    Thanks,
    Albert Ye

  • Webi Line Chart to Start from Axis Origin

    Hi,
    Need a quick help in BI4.0 webi line chart formatting.
    I have datetime on x-axis and cash flow on Y-axis.
    Say my cash flow starts at 9am on a day with $100 , my line chart starts the plot from 9am i.e. (9am,$100)
    instead I want the line plot to always start from (0,0)
    This is probably a chart option, but i dont find it.

    Hi Thangaraj,
    I have a similar requirement for a line chart to start from 0,0. while its min value is greater than 0.
    We are on BO 4.1 SP4  and there is no direct chart option for this.
    I would like to know whether you were able to achieve this in web intelligence.
    I really appreciate your reply.
    Thanks,
    Sri

  • Line Chart report issue in BAM

    Hi,
    I have a view from my database on Daily Sales.
    I tried to make a line chart report.I had the data object & plan created and run.
    I am facing some issues while making out:
    1)In Line chart it looks like "Summary Function" in chart is must.
    2)All the data values are overlapping on axis lines as well as chart area.
    Dont know how to get rid of this Summary function etc, i want lines to be drawn s per the records in the view.

    Use count as summery function, count the unique value in your record

  • Covered Line Chart in Apex

    Hi,
    In Apex there are several types of charts but I dont find the covered Line chart. Is there any function to create a covered line chart with the lite Version? For example: I have a blue line and I want to have a blue covered area up to this line. I am using Oracle Apex 4.0 and i dont find this kind of chart in the chart types. Am I able to change the custom XML to this type of chart?
    Thanks Thorsten

    Hi Thorsten,
    I believe the chart type you are referring to is an Area Chart, where the region from the chart axis to the line on the chart is coloured in. This chart type is not one of our licensed AnyChart chart types. You are only licensed to generate AnyChart chart types that are exposed via our wizards. For the generation of any other AnyChart chart types, you will need to obtain a separate license from AnyChart.
    Regards,
    Hilary

  • X Axis Labels - show every X label (WAD 3.5)

    Hello Experts
    I've got a line chart with 24 labels (months) , but the text is being spelt
    v
    e
    r
    t
    i
    c
    a
    l
    as there are too many labels to show.
    Is it possible to show a label evey third month?
    (In Excel, the option is "Number of Categories between tick-mark labels)
    Thanks In advance
    Warwick

    Hi Warwick,
    Have you checked on the 'Direction' setting under Edit Chart -> Category Axis -> Line -> Text Properties -> Direction. Does it show 'Below' by any chance? You may set it to 'Diagonal Up'/'Diagonal Down' such that the labels consume less space & all are made visible.
    OR
    If you wish to hide consecutive labels, plz. set the 'Category Gap' setting to the required interval under Edit Chart -> Category Axis -> Line properties.
    --Priya

  • Finding x and y values of a Line Chart

    Hi,
    For instance, I had a line chart with x and y axis. When I move mouse to the line chart how can I determine x and y axis values? With mouseMoved metod i can find the coordinates but coordinates doesn't help me to find x and y values of the line chart.
    How can I find x and y values of a Line Chart?
    Thanks in advance

    Translate from model to view and back. Another way to do this is to create an
    AffineTransform for the modelToView and use it to transform the points. Create an inverse
    transform to use in the viewToModel method. Add a ComponentListener and reset the transforms
    in the componentResized method to keep them updated.
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.font.*;
    import java.awt.geom.*;
    import java.text.NumberFormat;
    import javax.swing.*;
    public class Translation extends JPanel {
        JLabel xLabel;
        JLabel yLabel;
        NumberFormat nf;
        double[] data = { 16.0, 32.9, 7.4, 18.9, 12.3 };
        final int Y_GRADS = 5;
        final int PAD = 35;
        final int SPAD = 3;
        final int TICK = 2;
        double maxVal;
        public Translation() {
            nf = NumberFormat.getInstance();
            nf.setMinimumFractionDigits(1);
            nf.setMaximumFractionDigits(1);
            maxVal = getMaxValue();
            addMouseMotionListener(sweep);
        protected void paintComponent(Graphics g) {
            super.paintComponent(g);
            Graphics2D g2 = (Graphics2D)g;
            g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                                RenderingHints.VALUE_ANTIALIAS_ON);
            drawAxes(g2);
            plotData(g2);
        private void plotData(Graphics2D g2) {
            for(int j = 0; j < data.length; j++) {
                Point2D.Double p = modelToView(j, data[j]);
                if(j < data.length-1) {
                    Point2D.Double next = modelToView(j+1, data[j+1]);
                    g2.setPaint(Color.blue);
                    g2.draw(new Line2D.Double(p, next));
                g2.setPaint(Color.red);
                g2.fill(new Ellipse2D.Double(p.x-2, p.y-2, 4, 4));
        private Point2D.Double modelToView(double x, double y) {
            double h = getHeight();
            Point2D.Double p = new Point2D.Double();
            p.x = PAD + x*(getWidth() - 2*PAD)/(data.length-1);
            p.y = h-PAD - y*(h - 2*PAD)/maxVal;
            return p;
        public Point2D.Double viewToModel(double x, double y) {
            double h = getHeight();
            Point2D.Double p = new Point2D.Double();
            p.x = (x - PAD) * (data.length-1) / (getWidth() - 2*PAD);
            p.y = (h - PAD - y) * maxVal / (h - 2*PAD);
            return p;
        private void drawAxes(Graphics2D g2) {
            int w = getWidth();
            int h = getHeight();
            double xInc = (double)(w - 2*PAD)/(data.length-1);
            double yInc = (double)(h - 2*PAD)/Y_GRADS;
            // Abcissa
            g2.draw(new Line2D.Double(PAD, h-PAD, w-PAD, h-PAD));
            // Tick marks
            double y1 = h-PAD, y2 = y1+TICK;
            for(int j = 0; j <= data.length; j++) {
                double x = PAD + j*xInc;
                g2.draw(new Line2D.Double(x, y1, x, y2));
            // Labels
            Font font = g2.getFont().deriveFont(14f);
            g2.setFont(font);
            FontRenderContext frc = g2.getFontRenderContext();
            LineMetrics lm = font.getLineMetrics("0", frc);
            float sx, sy = h - PAD + SPAD + lm.getAscent();
            for(int j = 0; j < data.length; j++) {
                String s = String.valueOf(j);
                float width = (float)font.getStringBounds(s, frc).getWidth();
                sx = (float)(PAD + j*xInc - width/2);
                g2.drawString(s, sx, sy);
            // Ordinate
            g2.draw(new Line2D.Double(PAD, PAD, PAD, h-PAD));
            // Tick marks
            double x1 = PAD, x2 = PAD-TICK;
            for(int j = 0; j <= Y_GRADS; j++) {
                double y = PAD + j*yInc;
                g2.draw(new Line2D.Double(x1, y, x2, y));
            // Labels
            for(int j = 0; j <= data.length; j++) {
                String s = nf.format(maxVal*(1.0 - (double)j/data.length));
                float width = (float)font.getStringBounds(s, frc).getWidth();
                sx = (float)(PAD - SPAD - width);
                sy = (float)(PAD + j*yInc + lm.getAscent()/3);
                g2.drawString(s, sx, sy);
        private double getMaxValue() {
            double max = -Double.MAX_VALUE;
            for(int j = 0; j < data.length; j++) {
                if(data[j] > max) {
                    max = data[j];
            return max;
        MouseMotionListener sweep = new MouseMotionAdapter() {
            public void mouseMoved(MouseEvent e) {
                Point2D.Double p = viewToModel(e.getX(), e.getY());
                xLabel.setText(nf.format(p.x));
                yLabel.setText(nf.format(p.y));
        private JPanel getLast() {
            xLabel = new JLabel();
            yLabel = new JLabel();
            Dimension d = new Dimension(45, 25);
            JPanel panel = new JPanel(new GridBagLayout());
            GridBagConstraints gbc = new GridBagConstraints();
            gbc.insets = new Insets(2,2,2,2);
            addComponents(new JLabel("x ="), xLabel, panel, gbc, d, true);
            addComponents(new JLabel("y ="), yLabel, panel, gbc, d, false);
            return panel;
        private void addComponents(JComponent c1, JComponent c2, Container c,
                                   GridBagConstraints gbc, Dimension d, boolean b) {
            gbc.weightx = b ? 1.0 : 0;
            gbc.anchor = GridBagConstraints.EAST;
            c.add(c1, gbc);
            c2.setPreferredSize(d);
            gbc.weightx = b ? 0 : 1.0;
            gbc.anchor = GridBagConstraints.WEST;
            c.add(c2, gbc);
        public static void main(String[] args) {
            Translation test = new Translation();
            JFrame f = new JFrame();
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(test);
            f.getContentPane().add(test.getLast(), "Last");
            f.setSize(500,400);
            f.setLocation(200,200);
            f.setVisible(true);
    }

  • Crystal Reports - Charts - Restricting the data points on the X-axis

    Hi,
    Is there a way to restrict the number of points to display on the x-axis of a crystal chart keeping the number of data points the same.
    For example, if the chart plots date vs value points and the data for the chart is from 1980 to 2009. This means the data points on the x-axis appear very close to each other.
    I need a way to show the chart with all data from 1980 to 2009 but limited x-axis labels. Is there a way to configure the number of labels to show on the x-axis.
    Thanks!

    Thanks for the answer.
    "Right click on one of the x axis labels and select Group (X) Axis Options...
    On the Layout tab there is an option to Skip Group Labels, check this and enter in the number of labels you want to skip". Is there a way to do this from a .NET client or via a formula field in Crystal itself. The data points is going to be dynamic, hence the requirement is to dynamically configure the "number of labels" to be skipped.
    Thanks.

  • Drawing a Line Chart

    Hello ,
    i'm using line type "  line chart with markers at data points " to draw 2 values
    - the start date on "X" axis
    - Original Value on "Y" axis
    my problem is when i put the "Start date " on the (on change of )area in data section , and put" original value "in the (show values )section , the original value got counted , and i don't wanna to count the values i want to use the values as it's , also Don't summarize check box is dimmed and i  dont wanna how to solve this trivial issue 
    can anyone help please ,

    "LittleMuscle" <[email protected]> wrote in
    message
    news:g7i93j$dqk$[email protected]..
    > Is there a way to draw a horizontal line straight across
    a chart, say a
    > column chart. I want the line to extend all the way from
    the y-axis to
    > the far right of the chart.
    http://www.quietlyscheming.com/blog/charts/easy-custom-charts/

  • Line Chart

    Hi There, I relatively new to Flex. Can anyone please help me
    out in this Flex problem. Here is the problem.
    I have 2 graphs which needs to be plotted on one Flex line
    chart layout. I have date as x-Axis for these graphs. both the
    graph starts with different date, example, graph 1 starts from
    Nov7th and ends on Nov 22nd and second graph starts from Nov 27th
    and ends on Dec 5th. when I plot these two graphs, the second graph
    is overlapping onto first graph which is wrong, both shud be
    plotted at different dates. How do i display both the graph
    accurately?
    Graph always starts from x axis base. Is it possible to make
    the graph start from middle instead of start of x-Axis?
    Pl advice. Thanks

    I gave the outputs to know wheather the data is compatible for the chart. Because I have not done anything but just followed the wizard .
    Navigation is..
    Create Page-->Chart-->Line
    and the rest are default except the query.
    I even tried vertical bar which is also not working.
    Note: I even tried after removing the ORDER BY clause.
    This is the query which is working fine
    select distinct sd_cnt_module_type, sd_metric_id, sd_weighted_violation
    from cau_tr_si_detail t
    union all
    select distinct sd_cnt_module_type, sd_metric_id+2, sd_weighted_violation
    from cau_tr_si_detail t
    Problematic Query
    select
    prj.cau_ma_pr_name name,to_char(t.qi_date,'mon-yyyy') month,
    round(sum(t.qi_finalindex)/count(1),2) as metrics
    from cau_tr_qualityindex t,cau_ma_project prj
    where
    to_char(qi_date,'YYYY') = '2004'
    and t.qi_project_id = 21
    and
    prj.cau_ma_pr_id = t.qi_project_id
    group by t.qi_project_id,to_char(t.qi_date,'mon-yyyy'),prj.cau_ma_pr_name
    order by t.qi_project_id,to_char(t.qi_date,'mon-yyyy')
    Thanks In advance.
    Jaggy

  • Can any1 provide me the script file which will genrate the X-axis label and Y-axis label ?

    I have two channels and I want to create a report with 2D axis system. I do not want to drag and drop those two channels into 2D axis system. Can any1 provide me the script by which I can automate the script in such a manner that while running the script only I will get label of X-axis and Y-axis.
    I tried with enabling the script but it was not able to generate X-axis label (Ex.-Time) and Y-axis label (Ex. - Speed)?
    Solved!
    Go to Solution.

    Hi Etn,
    The best way to create a script which manipulates an existing layout via script is using the Ctrl-A function within the parameterization dialogs.
    The following example creates a 2D axis system with one curve and sets the axis labelling explicitly:
    Call PicLoad("Template")                    'New layout
    Call GraphObjNew("2D-Axis","New_2DAxis1")   'Creates a new 2D axis system
    Call GraphObjOpen("New_2DAxis1")            'Opens the axis object
      D2AxisBackColor  ="grey"                  'Sets the background color
      D2AxisTop        =10                      'Sets the position
      D2AxisBottom     =10
      D2AxisLeft       =10
      D2AxisRight      =10
      Call  GraphObjNew("2D-Curve","New_Curve") 'Creates a new curve
      Call GraphObjOpen("New_Curve")            'Opens the curve object
        D2CChnXName      =ChnNameExt(1)         'Defines the x-channel
        D2CChnYName      =ChnNameExt(2)         'Defines the y-channel
        D2CurveColor     ="red"                 'Defines the curve color
      Call GraphObjClose("New_Curve")           'Closes the curve object
      Call GraphObjOpen("2DXAxis1_1")
        D2AxisXTxt       = "@@ChnName(CurrChnNo)@@ [@@ChnDim(CurrChnNo)@@] (My Speed)" ' Defines the x-label
      Call GraphObjClose("2DXAxis1_1")
      Call GraphObjOpen("2DYAxis1_1")
        D2AxisYTxt       = "@@ChnName(CurrChnNo)@@ [@@ChnDim(CurrChnNo)@@] (My Time)" ' Defines the y-label
      Call GraphObjClose("2DYAxis1_1")
    Call GraphObjClose("New_2DAxis1")           'Closes the axis object
    Call PicUpdate()                            'Updates the report
    Christian

Maybe you are looking for