Getting dual axis on a graph in SSRS to align at 0

I have a graph that has 2 values that are plotted on dual axes.  Both values can be positive or negative.  Is there a way in SSRS to align the 0 point of both axes?  Preferably, I would like to retain dynamic values for the axes.
I'm using 2008r2
Thanks for any help.

I figured out the issue with incrementing whole numbers, and this is the solution I used.
You will need to manually set the interval value to determine the increments you want the line showing up. In my case I wanted the primary axis to show a value every 5 and the secondary axis to show a value every 5000.
Manually setting the interval will cause the primary and secondary axes to be off again. To fix this, we will need to have the same amount of intervals on both axes. For instance, if we have 6 intervals on the primary axis we will need to have 6 intervals
on the secondary axis to keep them lined up.
I wrote custom code that will be used as expressions in the Maximum setting for both axes. The purpose of the functions will be to determine which axis will have more intervals, then calculate the maximum value needed to have the same amount of intervals.
Primary Axis Maximum Expression
=Code.FindMaxValueForPrimary(max(Fields!PrimaryField.Value), max(Fields!SecondaryField.Value))
Secondary Axis Maximum Expression
=Code.FindMaxValueForSecondary(max(Fields!PrimaryField.Value), max(Fields!SecondaryField.Value))
Custom Code
Public Function FindMaxValueForPrimary(ByVal PrimaryValue as Integer, ByVal SecondaryValue As Integer) As Integer
IF Ceiling(SecondaryValue/5000) >= Ceiling(PrimaryValue/5) Then
Return Ceiling(SecondaryValue/5000) * 5
Else
Return Ceiling(PrimaryValue/5) * 5
End If
End Function
Public Function FindMaxValueForSecondary(ByVal PrimaryValue as Integer, ByVal SecondaryValue As Integer) As Integer
IF Ceiling(SecondaryValue/5000) >= Ceiling(PrimaryValue/5) Then
Return Ceiling(SecondaryValue/5000)*5000
Else
Return Ceiling(PrimaryValue/5) * 5000
End If
End Function

Similar Messages

  • Changing scale on Dual Axis on Illustrator Graph

    Looking for some assistance on changing the scale when you have a dual axis, but only on one side. I can select the entire graph and change the left and right axis. However even when I select only one line (via the legend) I cannot just change one side. Appreciate any assistance....thanks

    Hi Kalyan
    I have seen this happening on a PowerPivot workbook in which the selected option had no value, which triggered the chart to lose its configuration.  This is a bug, though I would argue is a bug in the Pivot Charts and not in PowerPivot itself.
    The solution I used was to remove the slicer option that yields no value (in your case it would be NA), so the user can only select valid combinations that retrieve a numeric output.
    Javier Guillen
    http://javierguillen.wordpress.com/

  • Anyway to implement a dual axis graph in xcelsius?

    anyone know how to implement a dual axis graph in xcelsius?
    i tried faking a dual axis graph by super imposing 2 graphs, one with the axis labels and the other one without, but the legends would never line up especially if i placed the legend at the bottom of the chart.
    any ideas?
    -shawn

    i am not able to get exactly the problem where  you are getting that, if you get it in line chart or any other charts we can fake any chart on the basis of scenario by giving display status key and another options also there for this.
    i hope you get some idea, if u not able to understand pls mail me with your exact scenarion i will send the complete solution to you.
    Thank you,
    Santhosh.

  • How to get y axis value(in a numeric control) by providing x-axis value using wave graph

    Hi,
    I'm new here, Sorry if i have selected wrong Location.
    I want to get Y-axis value (in a numeric Control) by providing X-axis Value using Wave graph.
    i want to do calculations with the obtained value.
    i have attached File and Snapshot.

    Well, you are using the Dynamic Data Type, which I almost never use, but if you convert the data to a WaveForm (using From DDT on the Signal Manipulation Palette, which is a choice when you right-click on the DDT Wire), you should be able to do this.  Do you know about how Waveforms are stored?  They are a Cluster, with t0 being a TimeStamp for the start of the Waveform, dt being the time step, and Y being the samples.  So if you want a point at 0.5 seconds and dt is 0.001, you would pull out the point at Index 499 (offset 0) from the Y array.
    Bob Schor

  • Xcelcius 2008 - Dual Axis Graph Mouse Over Display

    I am working on a dual-axis graph where one value is a percentage and another is numeric. I am having an issue where I cannot format the hovers into multiple formats (i.e. one as numeric, the other as a percentage). In the graph properties I only see one property to modify Mouse-Over Values, but I need to modify it for each axis.
    Thanks ahead of time.

    Hi Diney,
    I Have to show all the projects per client requirement, I want to remove the legends(which I already did), and instead show the project name only when the mouse is rolled over in the graph. Is it possible?
    Thanks for your time and help.

  • Axis in Pie Graph

    Hi,
    Can we show the X-Axis and Y-Axis for a Pie-Graph??
    I am able to display the Pie-Graph for a given combination through VO but in my display i am not able to see the X-Axis and Y-Axis lines.
    only the graph is getting displayed without the lines.
    I have tried by setting in property inspector the following properties to true.
    "Data Axis Scale From Zero" and "Display Data Markers" both to true
    But still i am not able to see the lines in my screen.
    Can i get some help from anyone regarding this???
    Thanks in advance

    No, there is no provision of showing x and y axis in pie graph. I am still not able to understand how do you want to incorporate and map date on x,y axis along with a pie graph in between. All you can do is to plot a bar graph separately to show the data along x, y axis.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Change color of measures - Column Combination Dual Axis

    Hi,
    I have a couple of graphs of the type Column Combination Dual Axis.
    I want to change the colors for these measures but that does not seem to be possible when using this type of chart?
    I can only change the color of the Axis?
    First, I thought it was something wrong with my chart so I tried to create a new application with this chart type and got the same result.
    Does anyone know if it should be like this?
    Br
    Max

    Hi Max,
    how many measures do you want to use for the Chart type "Column Combination Dual Axis"?
    Do you have tried to swap the axis in your chart type setting?
    In my case it works as expected and I´m able to change the color of the measures ( = the axis)
    I think it´s important to add the measures in the rows at the initial view of the data source (or you can change it by swap the axis in the chart).
    Hope it helps!
    Best regards,
    Michael

  • Dual Y stacked bar graph - how to force both y scales to be the same size

    Hi,
    I use dual y stacked bar graph to show values side by side. Since one value is smaller, Y scales have different max values. How can I fore them to be the same?

    Hello,
    OK. This means you need automatic scale for the y axis.
    BTW: Why do you need dual y axis if they should have the same scale?
    The common use case for dual y axis is to show two series with different units and/or scale.
    regards
    Peter

  • Unequal size of X, Y, Z axis for 3D graph

    Hi,
    I have different size of array in X, Y and Z axis. What graph should I use best? I tried using 3D surface graph but it consume all my memory.
    My data is X = 1 X 41 array
    Y = 1 X 32768 array
    Z = 41 X 32768 array/matrix
    Thanks a lot...

    Samuel S wrote:
    That is also correct
    Ben Im not going to lie that is a great song! I have that from the 1996 Rhythm of the Games Olympic Soundtrack 
    My Mother used to play the Sound Track from the Movie (Peter O'Toole and Sophia Loren) and it left a mark on me but that was nothing until I sat up all night with a case of beer and the movie on VHS so I could rewind and memorize the words.
    Don Quiote is what keeps me from pulling a John Galt and the signature is there to remind me.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Is there a way to link the x-axis of multiple graphs in a report? Using DIAdem 12.0

    Is there a way to link the x-axis of multiple graphs in a report?  Using DIAdem 12.0

    What  I am after is this...  If I have multiple 2D axis systems in a report with each y axis showing different channels of a particular data file and with each x axis being the time stamp of that data file, rather than changing the x axis values of each 2D axis system to zoom in on a time slice, I'd like to change only one and have all the others match.  So I suppose yes, I want each of the multiple 2D axis systems to have the same x axis, but I want unique 2D axis systems, not one system with multiple y axis or "n systems".  I'm hesitant to post a sample report as this is a public forum.  Thank you.

  • JFreeChart Dual Axis Problem

    Hi:
    I've developed a Dual Axis Chart (bar and line char) using the JFreeChart library.
    However, when the chart is displayed in the screen the line chart appears always behind the bar chart. How can I solve this? I would like that the bar chart appears behind the line chart.
    Here you can find a little bit of code:
               final DefaultCategoryDataset dataset = new DefaultCategoryDataset();
               final DefaultCategoryDataset dataset2 = new DefaultCategoryDataset();
    // Here I add values to the datasets
                JFreeChart chart;
                if(tres.isSelected()) chart = ChartFactory.createBarChart3D("EVOLUCI� DE LA PRODUCCI� DE RESIDUS MUNICIPALS ("+c+") "+dd1+" --> "+dd2+". QUANTITATS EXPRESADES EN KG. / HAB. * DIA", "MES", "KG. / HAB. * DIA", dataset, PlotOrientation.VERTICAL, true, true, false);
                else chart = ChartFactory.createBarChart("EVOLUCI� DE LA PRODUCCI� DE RESIDUS MUNICIPALS ("+c+") "+dd1+" --> "+dd2+". QUANTITATS EXPRESADES EN KG. / HAB. * DIA", "MES", "KG. / HAB. * DIA", dataset, PlotOrientation.VERTICAL, true, true, false);
                chart.setBackgroundPaint(new Color(204, 204, 255));
                final CategoryPlot plot = chart.getCategoryPlot();
                plot.setBackgroundPaint(Color.white);
                plot.setDomainAxisLocation(AxisLocation.BOTTOM_OR_LEFT);
                plot.setRangeAxisLocation(AxisLocation.TOP_OR_LEFT);
                final CategoryItemRenderer renderer1 = plot.getRenderer();
                renderer1.setSeriesPaint(0, Color.RED);
                final ValueAxis axis2 = new NumberAxis3D("POBLACI�");
                plot.setRangeAxis(1, axis2);
                plot.setDataset(1, dataset2);
                plot.mapDatasetToRangeAxis(1, 1);
                final CategoryItemRenderer renderer2 = new LineAndShapeRenderer();
                renderer2.setSeriesPaint(0, Color.blue);
                plot.setRenderer(1, renderer2);
                plot.setDatasetRenderingOrder(DatasetRenderingOrder.REVERSE);
                plot.setNoDataMessage("NO HI HA DADES");
                ChartFrame frame = new ChartFrame("COMPOSICI� DELS RESIDUS MUNICIPALS", chart);
                frame.setIconImage(new ImageIcon(getClass().getResource("/rsu/Imatges/reciclatge.gif")).getImage());
                frame.pack();
                Dimension dPan = Toolkit.getDefaultToolkit().getScreenSize();
                Dimension dFin = frame.getSize();
                Double x = new Double((dPan.getWidth()-dFin.getWidth())/2);
                Double y = new Double((dPan.height - dFin.height)/2);
                frame.setLocation(x.intValue(), y.intValue());
                frame.setVisible(true);Lots of thanks for your help.

    Hi, I'm new using Java and JFreeChart and I'm facing a problem. I need to draw a XY chart with 2 series and assign each one a choosen color, but I can only have them in the same color! I don't know what I'm doing wrong. Can anybody help me whit this?
    Thanks in advance,
    Freddy
    P.D: This is the code for what I'm trying to do (excuse my english)
    final TickUnits units = new TickUnits();
                   units.add(new NumberTickUnit(337.5, new CompassFormat()));
                   units.add(new NumberTickUnit(315.0, new CompassFormat()));
                   units.add(new NumberTickUnit(292.5, new CompassFormat()));
                   units.add(new NumberTickUnit(270.0, new CompassFormat()));
                   units.add(new NumberTickUnit(247.5, new CompassFormat()));
                   units.add(new NumberTickUnit(225.0, new CompassFormat()));
                   units.add(new NumberTickUnit(202.5, new CompassFormat()));
                   units.add(new NumberTickUnit(180.0, new CompassFormat()));
                   units.add(new NumberTickUnit(157.5, new CompassFormat()));
                   units.add(new NumberTickUnit(135.0, new CompassFormat()));
                   units.add(new NumberTickUnit(112.5, new CompassFormat()));
                   units.add(new NumberTickUnit(90.0, new CompassFormat()));
                   units.add(new NumberTickUnit(67.5, new CompassFormat()));
                   units.add(new NumberTickUnit(45.0, new CompassFormat()));
                   units.add(new NumberTickUnit(22.5, new CompassFormat()));
                   XYDataset dataset7 = createhourDataset(24,50,"Velocidad");
                   JFreeChart chart8 = ChartFactory.createTimeSeriesChart("Diaria", "Hora", "mps", dataset7, true, true, false);
                   XYPlot plot2wd1 = chart8.getXYPlot();
                   final XYItemRenderer r1 = plot2wd1.getRenderer();
                   r1.setSeriesPaint(0, Color.RED);
                   ValueAxis axis2wd1 = new NumberAxis("");
                   axis2wd1.setRange(0.0, 360.0);
                   plot2wd1.setRangeAxis(1, axis2wd1);
                   axis2wd1.setStandardTickUnits(units);
                   axis2wd1.setAxisLinePaint(Color.blue);
                   axis2wd1.setTickLabelPaint(Color.blue);
                   axis2wd1.setTickMarkPaint(Color.blue);
                   plot2wd1.setDataset(1, createhourDataset(24,50,"Direcci�n"));
                   final XYItemRenderer r2 = plot2wd1.getRenderer();
                   r2.setSeriesPaint(0, Color.blue);
                   plot2wd1.setRenderer(1, r2);
                   ChartPanel panel_D1 = new ChartPanel(chart8);

  • Seeking a clear description of getting dual monitors to work

    I've spent a long while researching the issue of getting dual monitors to work on a new mac mini - which I will be purchasing as soon as I figure this one out! But I am bamboozled by references to the various types of connections and ports. If anyone has the patience to explain this really simply and clearly, I'd be very grateful.
    Interestingly, the Apple guy on the phone today told me it isn't possible - it's either/or for the display connections. But clearly it IS possible, because there is so much discussion about it here...
    Here's where I confess my technical limitations, and say that I am confused about what I need (to purchase, presumably) to get my two existing monitors to work with the new mini.
    They are presently connected to my PC (soon to be ceremonially consigned... etc) with cables which have regular D-sub connectors at each end. This means they are vga, right? There is no digital connector on either monitor.
    So I am trying to figure out
    a) is it possible to use these two monitors in a dual display setup with a mac mini? If so:
    b) How?! And then;
    c) what leads and/or connectors do I need to buy in order to connect them up?
    Thanks for being here, I hope for some patient guidance.
    Jeff

    Welcome to the Apple Discussions!
    An '09 Mac mini has two video out pots on the rear; a mini-DVI port and a mini-DisplayPort. The Mac mini comes with a mini-DVI to DVI-D adapter. If you use what came in the box with the mini, you need a DVI-D to VGA cable to connect one of your monitors. Otherwise you need a mini-DVI to VGA adapter and a VGA to VGA cable for one monitor. For the other monitor you need a mini-DisplayPort to VGA adapter and a VGA to VGA cable.
    Dah•veed

  • How do i get a colormap for intens graph using basic imaq

    This is a follow up to
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=506500000008000000B58D0000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0&USEARCHCONTEXT_TIER_0=0&USEARCHCONTEXT_TIER_S=0&USEARCHCONTEXT_QUESTION_0=how+do+i+get+a+colormap+for+intens+graph+using+basic+imaq&USEARCHCONTEXT_QUESTION_S=0
    where I asked for help getting a colormap for saving an image as a jpeg. Now, I have decided that I would like to use an intensity graph for my display of the RGB image that I have captured using my pci-1411 frame grabber board. How do I get the right colormap for the intensity graph display? I do not have vision and do not intend to purchase it. I am using the basic IMAQ package.
    jc
    Mac 10.4
    LV7.1
    CLD

    Dear Sir, usually the intensity graph will help you with monochrome images, since they have a one color intensity. If you want more colors you will be able to get up to 256, and not true color (24 bit). You might want to use the Picture Control instead or a Child Window approach, please look in your Help menu, 'Search IMAQ Examples...' and then browse for IMAQ examples and choose the ones that are for Picture Control. For the Child Window look in our website for an example called 'IMAQ Display Without IMAQ Vision'.
    Good luck!
    Nestor.
    Nestor
    National Instruments

  • Graph Data does not align with the axis label

    Hi,
    The graph data does not align with the axis label when
    datetimeaxis is used.
    http://livedocs.adobe.com/labs/flex3/html/help.html?content=charts_displayingdata_04.html
    (in the using parseFunction property example) when you hover on the
    line graph the values do not align on the labels. Is this a bug?
    Can somebody help me with this.
    Thank you,
    Gautam.

    Hi All
    Thanks for looking into it.
    Actually we have just added a field GJAHR (was missing in the extractor) so that it takes data accoring to fiscal yr. Actually we had a issue that the Business area for a particular vendor 'X' and doc no 'Y' was showing incorrectly (similar to that of yr 2008) but it changed this yr and the extractor was still picking Business Area for yr 2008.
    So we added GJAHR field so that it takes correct Business Area. we have checked in R/3 Extractor checker and it shows correctly.
    But that change has not reflected in BW yet even after replicating datasource.
    I hope i have made you all understand the situation.
    Thanks for your help
    Ishi

  • Problem Axis Image on Graph

    Hi,
    I'm having a problem with displaying an axis on a graph. The graph is composed of layered panes and I need to display a mathematical formula on one of the axis. This was previously done using an image...
    A product evolution requires the modification of the fonts used when printing the graphs, obviously this will not be compatible with a static image. Does anyone have any ideas on how do display the text highlighted in the image shown, in a manner that allows for the changing of fonts in a dynamic manner?
    [ScreenShot001.jpg|http://www.maths.tcd.ie/~moroneyk/ScreenShot001.jpg|ScreenShot001.jpg]
    Thanks in advance,
    Kevin

    That is actually rather simple: you use animation techniques, but rather than using an animation loop to change on a set interval, you change as you are ready to show your new screen. You do this with a repaint() request.
    I usually like to implement this by doing my rendering to a BufferedImage, and then a paint override in my display object.
    public void paintComponent(Graphics g){
      g.super();
      g.drawImage(bi, 0, 0, this); //bi is a instance scoped BufferedImage that I use for rendering.
    }

Maybe you are looking for