Axes color for graphs

My problem is specifically with the X-Y graphs, but I think it applies to other graph types also.  I know how to change the color of the grid lines (major and minor), but what about the X-axis or Y-axis itself.  I am stuck with thin yellow axes when I would like thick black ones.  I have found no way to change the appearance of the actual axis lines.  Ideally, my graph would have thick lines as a box around the plot area, but I have not found any way to accomplish that.  Any ideas, or must I use cursors or extra data to trick the graph into doing this?
BJ

".... there is no way to modify it either programatically or otherwise."
How about this?
I did a
customize,
blow torch,
copy to clipboard,
paste in paint,
make a thick border,
copy to clipboard,
back to editor,copy from clipboard.
Done!
Ben
Message Edited by Ben on 12-12-2006 03:53 PM
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction
Attachments:
GraphFrame.vi ‏11 KB
graphFrame.JPG ‏54 KB

Similar Messages

  • How to set the 4th Y axis color for a line graph

    Hello experts,
    I have developed a multiple y axis line graph using oracle reports 10g.
    It has got 1 x axis and 4 axes. I am able to set the color of the the first three y axes
    but the reports designer automatically assigns yellow color to the 4th axis.
    I mean there is no option in the graph wizard for changing the 4th color)
    How to change the color of this 4th y axis to a desired color?
    Cheers
    Sri

    Assuming you mean that your graph has 4 series, not 4 Y axes, you might try something like this:
    1. Save a backup copy of your current report in case the changes you are about to make don't work out and you want to revert to the backup copy.
    2. Using the Property Inspector, display the current value of the Graph Settings property for your graph. The value of the property should be something like:
    <rw:graph id...
    </rw:graph>3. Look for a <SeriesItems> tag and a matching </SeriesItems> tag in the property value. If you don't find them, add the following two lines immediately before the </Graph> tag.
    <SeriesItems>
    </SeriesItems>4. Between the <SeriesItems> tag and the matching </SeriesItems> tag, add (or update) a <Series> tag for each series that you want to specify the color for. For example, to specify the color of the fourth series as red, you would use a <Series> tag like this:
    <Series id="3" color="#ff0000"/>Note that the id numbers start at 0 for the first series, 1 for the second, and so on. The color value is a hexadecimal number specifying the RGB value of the color.
    You can also use the <Series> tag to specify other features like the marker shape.
    For more information on what you can do using the Graph Settings property, see this FAQ and Technical Note.
    Hope this helps.

  • How to let the user define the colors for each plots in the graph (I use LabVIEW 7)?

    How to let the user define the colors for each plots in the graph (I
    use LabVIEW 7)?

    Hi,
    Take a look at this example, it uses property nodes to select tha
    active plot and then changes the color of that plot.
    If you want to make the number of plots dynamic you could use a for
    loop and an array of color boxes.
    I hope this helps.
    Regards,
    Juan Carlos
    N.I.
    Attachments:
    Changing_plot_color.vi ‏38 KB

  • Automatic Fill colors for Report Builder pie charts and graphs are too repetitive and hard to differentiate

    I have pie charts or other graphs that show multiple results (7-20).  I set the "fill" colors to Automatic so that the results are dynamic (I don't want to specify a color for each result because I will then be limited that those results--I
    prefer it to be dynamic).
    I noticed that once you get above 4 or 5 results, no matter which palette is used, the "automatic" colors are so closely similar that it is hard to differentiate which color pertains to which result (group).  For example, you could have a
    reports that breaks the results into age groups like 1-18, 19-21, 22-25, 26-30, 31-41, 41-50, 51-65, 66-80, and 81+.  By the time you review the results, there's likely to be 3 pairs of colors (or more) that are so closely similar that you can't
    tell them apart (2 shades of yellow, 3 shades of blue, 2 shades of orange, or green, or teal, or purple or whatever).
    Is there a way to use Automatic for the color scheme (I don't care which color pertains to which category) but also specify to not use colors that seem to bleed together (so that someone viewing the report can actually tell the difference)?  Using SSRS
    2008 Report Builder, if it makes a difference.

    Hi JNehman,
    Reporting Services provides a list of predefined, built-in palettes that you can use to define a color set for series on your chart. All built-in palettes contain between 10 and 16 color values. You cannot extend the built-in palette to include more colors,
    so if you need more than 16 colors, you must define a custom palette.
    A custom palette let you add your own colors in the order you want them to appear on the chart. A custom palette is especially helpful if the number of series in your chart is unknown at design time. For more information, see
    Define Colors on a Chart Using a Palette (Report Builder and SSRS).
    Regards,
    Heidi Duan
    Heidi Duan
    TechNet Community Support

  • How can i do different colors for the category in business graphics

    Hi everybody,
    i have a business graphics and i need different colors for the category. my business graphics is a gantt.
    for example
    category1
    category2
    category2
    and so on.
    Is there a solution for this? How can i do it?
    Best regards,
    Markus

    Sorry.
    In my opinion, this requirement can not be resolved.
    Generally, we use Business Graphic with Category, we just follow:
    DATA:lr_graph TYPE REF TO cl_wd_business_graphics.
    lr_graph = cl_wd_business_graphics=>new_business_graphics(
        bind_series_source = 'NODE_DYN'
        chart_type = cl_wd_business_graphics=>e_chart_type-BARS
        height = 340
        width = 750
    *     BIND_TOOLTIP = 'GRAPH.TT'
        id = 'GRAPH' ).
    DATA: lr_bgr_cs TYPE REF TO cl_wd_category.
    lr_bgr_cs = cl_wd_category=>new_category(
    view = wd_this->mr_view
    bind_description = 'NODE_DYN.CATEGORY').
    lr_graph->set_category( lr_bgr_cs ).
    If we go to SE24, to check  the class "CL_WD_CATEGORY", we cannot find any method  or attribute about how to manipulate  the "Category Font Color"...
    Maybe,any other expert can give you fantastic solution, hope. Best wishes.

  • How do I set default colors for XY chart series (lines and legend)

    I am implementing a line chart and need to override the default (caspian style) colors for the line colors and the legend symbols. I'm not displaying the chart symbols themselves as that would make the chart look bad. I've been able to successfully set the default colors for the lines via the CSS below, but cannot find a way to do the same for the series symbols that appear in the chart legend. How do I do this? Thanks.
    .default-color0.chart-series-line {
      -fx-stroke: rgb(0, 102, 255);
    .default-color1.chart-series-line {
      -fx-stroke: rgb(0, 255, 102);
    ...Update:
    Figured it out. Need to do the following:
    .default-color0.chart-line-symbol {
      -fx-background-color: rgb(R, G, B);
    }Edited by: 998038 on May 16, 2013 4:09 PM

    Here is some css to customize the line and legend colors in a line chart.
    /** file: chart.css
        place in same directory as LineChartWithCustomColors.java */
    .default-color0.chart-series-line {
      -fx-stroke: rgb(0, 102, 255);
    .default-color1.chart-series-line {
      -fx-stroke: rgb(0, 255, 102);
    .default-color0.chart-line-symbol {
      -fx-background-color: rgb(0, 102, 255), white;
    .default-color1.chart-line-symbol {
      -fx-background-color: rgb(0, 255, 102), white;
    }And a test harness to try it:
    import javafx.application.Application;
    import javafx.event.*;
    import javafx.scene.Scene;
    import javafx.scene.chart.*;
    import javafx.scene.control.*;
    import javafx.scene.input.*;
    import javafx.stage.Stage;
    public class LineChartWithCustomColors extends Application {
        @Override public void start(final Stage stage) {
            stage.setTitle("Line Chart Sample");
            //defining the axes
            final NumberAxis xAxis = new NumberAxis();
            xAxis.setLabel("Number of Month");
            final NumberAxis yAxis = new NumberAxis();
            //creating the chart
            final LineChart<Number,Number> lineChart =
                    new LineChart<>(xAxis,yAxis);
            lineChart.setTitle("Stock Monitoring, 2010");
            lineChart.setCreateSymbols(false);
            //defining a series
            XYChart.Series series = new XYChart.Series();
            series.setName("My portfolio");
            //populating the series with data
            series.getData().setAll(
              new XYChart.Data(1, 23),
              new XYChart.Data(2, 14),
              new XYChart.Data(3, 15),
              new XYChart.Data(4, 24),
              new XYChart.Data(5, 34),
              new XYChart.Data(6, 36),
              new XYChart.Data(7, 22),
              new XYChart.Data(8, 45),
              new XYChart.Data(9, 43),
              new XYChart.Data(10, 17),
              new XYChart.Data(11, 29),
              new XYChart.Data(12, 25)
            lineChart.getData().add(series);
            //adding a context menu item to the chart
            final MenuItem resizeItem = new MenuItem("Resize");
            resizeItem.setOnAction(new EventHandler<ActionEvent>() {
              @Override public void handle(ActionEvent event) {
                System.out.println("Resize requested");
            final ContextMenu menu = new ContextMenu(
              resizeItem
            lineChart.setOnMouseClicked(new EventHandler<MouseEvent>() {
              @Override public void handle(MouseEvent event) {
                if (MouseButton.SECONDARY.equals(event.getButton())) {
                  menu.show(stage, event.getScreenX(), event.getScreenY());
            Scene scene =
              new Scene(
                lineChart,800,600
            stage.setScene(
              scene
            stage.show();
            scene.getStylesheets().add(
              getClass().getResource("chart.css").toExternalForm()
        public static void main(String[] args) {
            launch(args);
    }

  • How to Change colors in Graphs

    Hi Friends,
    Please tell me where i can change color options for graph view's.
    Thank You
    Sunil.

    Hi Sunil
    Go to graph properties --> Style table --> click on the icon to edit graph data --> Edit conditional formatting for the column.
    This the colours can be changed.
    Regards,
    Akansh Agarwal

  • Plot different colors for thresholds above, in range, and below

    I am working on a project that reads data from a com port and graphs the data.  For one set of data, I need to check to see if the data is above/below a threshold.  I would like the color for the data that is in between the upper and lower thresholds to be a certain color, and the data that is above or below to be to be a different color than the safe range.  I have figured out how to get either the above or below to work but not at the same time.  Here is an example vi that depicts what I have done so far but is simplified to the extent you do not need to receive any data.  Any help on this would be appreciated.
    Attachments:
    one_line_two_colours.vi ‏53 KB

    I add some code to your solution using the same principle (adding NAN-lines) 
    How many colors you want? Just add thresholds in the array  
    Still room for improvements  
    look, there are gaps between the lines, and the -10 should be -INF
    Greetings from Germany
    Henrik
    LV since v3.1
    “ground” is a convenient fantasy
    '˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'
    Attachments:
    one_line_n_colours.vi ‏140 KB

  • Different custom colors for a WPF line plot

    Dear Sir,
    I am trying to create a WPF graph with different colors for different points of time , example  Black 0-10,red 11-20, green 21-30...
    I saw the nifty video and download the range masking cursor but got stuck. 
    Thank you
    George MAsiello

    Here's a quick mockup of the custom renderer version (sorry I did not have time to translate it to VB myself):
        public class CustomRenderer : PlotRenderer {
            private static readonly DataRequirements _dataRequirements = new DataRequirements(
                DataCulling.PreserveLines, DataDecimation.CoLinear,
                new DataDimension( DataDimensionSource.IndexData, DataDimensionScale.IndependentScale ),
                new DataDimension( DataDimensionSource.SampleData, DataDimensionScale.DependentScale ) );
            // The color ranges we want to show on the plot.
            private readonly Tuple<Color, double>[] _colorRanges = new[] {
                Tuple.Create( Colors.Black, 10.0 ),
                Tuple.Create( Colors.Red, 20.0 ),
                Tuple.Create( Colors.Green, 30.0 ),
            private readonly RenderTargetOptions[] _rangeOptions;
            public CustomRenderer( ) {
                // Create render options for each range color.
                _rangeOptions = _colorRanges.Select( colorRange => new RenderTargetOptions( this,
                    RenderTargetOption.CreateValue( RenderTargetOptionsProperty.Stroke, new SolidColorBrush( colorRange.Item1 ) ),
                    RenderTargetOption.CreateValue( RenderTargetOptionsProperty.StrokeThickness, 1.0 ) ) )
                .ToArray( );
            public override SupportedRenderModes SupportedRenderModes {
                get { return SupportedRenderModes.VectorAndRaster; }
            public override DataRequirements GetDataRequirements( ) {
                return _dataRequirements;
            protected override Freezable CreateInstanceCore( ) {
                return new CustomRenderer( );
            protected override void RenderLegendCore( LegendRenderArgs renderArgs ) { }
            protected override void RenderGraphCore( PlotRenderArgs renderArgs ) {
                // Get the time axis for the renderer.
                Plot plot = (Plot)renderArgs.Plot;
                var timeAxis = plot.GraphParent.GetAxis( plot, Orientation.Horizontal );
                var dataMapper = (IDataMapper<double>)timeAxis.GetDataMapper( plot.GraphParent );
                int startIndex = 0;
                var xData = renderArgs.RelativeData[0];
                var yData = renderArgs.RelativeData[1];
                var renderTarget = renderArgs.RenderTarget;
                for( int i = 0; i < _colorRanges.Length - 1; ++i ) {
                    // Draw all data below the current range with the associated color.
                    int endIndex = startIndex;
                    double range = _colorRanges[i].Item2;
                    double offset = dataMapper.Map( range );
                    while( endIndex < xData.Size && xData[endIndex] <= offset )
                        ++endIndex;
                    RenderSegment( startIndex, endIndex, xData, yData, renderTarget, _rangeOptions[i] );
                    startIndex = endIndex;
                // Draw all remaining data with the last color range.
                RenderSegment( startIndex, xData.Size, xData, yData, renderTarget, _rangeOptions.Last( ) );
            private static void RenderSegment( int startIndex, int endIndex, Buffer<double> xData, Buffer<double> yData, IRenderTarget renderTarget, RenderTargetOptions options ) {
                int length = endIndex - startIndex;
                if( length <= 0 )
                    return;
                // Join current range with previous.
                if( startIndex > 0 ) {
                    --startIndex;
                    ++length;
                using( Buffer<double> xSegment = xData.Slice( startIndex, length ) )
                using( Buffer<double> ySegment = yData.Slice( startIndex, length ) )
                    renderTarget.DrawLines( options, xSegment, ySegment );
    ~ Paul H

  • Storing custom Palette for graph Data

    Post Author: lkane
    CA Forum: WebIntelligence Reporting
    Is there a place to set up and store a custom color Palette for graph data so that it is quickly accessible for all WebBI reports? We use a specific palette for all our charts and with > 60 reports to build that utilize it, it gets pretty old to set this in every report.

    Post Author: lkane
    CA Forum: WebIntelligence Reporting
    Is there a place to set up and store a custom color Palette for graph data so that it is quickly accessible for all WebBI reports? We use a specific palette for all our charts and with > 60 reports to build that utilize it, it gets pretty old to set this in every report.

  • Need a vi or a recipe for graph setup and printing

    Has anyone got a vi that given a xy graph reference will twiddle the right properties to make an xy graph on a front panel look like it ought to in a published paper.  White background, black lines, transparent legends, centered title, good fonts and font size etc. etc...
    Also, if possible a way to print it to a file or printer so that what you see is what you get. 
    Thanks
    LV 8.6 on Windoze XP

    Clueless 1,
    All of these properties can be customized except for creating a transparent legend transparent. 
    The font and font size can be easy changed by selecting the graph so it has the moving dash line around it and setting the font and size in the font menu.  The defaut for this menu is 13pt Application Font.
    The title of the graph can be centered simply by clicking and dragging it the the desired position.   By default the title should snap to the right, center, and left justified position around the graph. 
    The colors of the major and minor grid lines can be access by right clicking on the graph, selecting Properties, and navigating to the Scales tab. 
    Changing to the plot background color is slightly more difficult because the property is not accessable the the Graph Properties dialog window. 
    To access this property right click on the graph and select Create » Property Node » Plot Area » Colors » BG Color
    Place this property node on the block diagram
    Right click on the property node and select Change all to Write
    Right click on the block diagram to bring up the Functions Palette and select Dialog & User Interface » Color Box Constant
    Wire the Color Box Constant to the input of the property node
    Click on the Color Box Constant to bring up the color picker and select whatever color you desire.  This wll be the background color for you graph. 
    The easiest way to export the graph to another program is copy and paste it.  If you want to make an image of the graph so you can access it in a word processor I recommend copy and pasting it into Paint and saving it. 
    Mark
    LabVIEW R&D

  • Define own colors for charts in BW 3.0b, is it possible???

    <u><i><b>Referes to BW 3.0b</b></i></u>
    I have another short question concerning graphs.
    Bex gives a fixed set of optional colors for charts, however I need some other colors in order to fit with the given style guide.
    I know that it is possible to use a picture, however I am looking for a way in order to define my own colors for charts.
    Anybody got an idea?
    Greetings,

    The problem is that I do not have a color column....
    I can choose a color in the chart designer and I also get to the same option when using the wizard. <i>I am not sure if it is the right wizard as I have never used the wizard for chart editing before. How do you open the wizard to edit an already existing chart?</i>.
    In all the menus I can't find any place where I could add RGB. I have my RGB code and everything, I just need to enter it somewhere, so no external tools needed.

  • Define own colors for charts?

    I have another short question concerning graphs.
    Bex gives a fixed set of optional colors for charts, however I need some other colors in order to fit with the given style guide.
    I know that it is possible to use a picture, however I am looking for a way in order to define my own colors for charts.
    Anybody got an idea?
    Greetings,
    Nana

    The problem is that I do not have a color column....
    I can choose a color in the chart designer and I also get to the same option when using the wizard. <i>I am not sure if it is the right wizard as I have never used the wizard for chart editing before. How do you open the wizard to edit an already existing chart?</i>.
    In all the menus I can't find any place where I could add RGB. I have my RGB code and everything, I just need to enter it somewhere, so no external tools needed.

  • How to give Common Background color for all JPanels in My Swing application

    Hi All,
    I am developing a swing application using The Swing Application Framework(SAF)(JSR 296). I this application i have multiple JPanel's embedded in a JTabbedPane. In this way i have three JTabbedPane embedded in a JFrame.
    Now is there any way to set a common background color for the all the JPanel's available in the application??
    I have tried using UIManager.put("Panel.background",new Color.PINK);. But it did not work.
    Also let me know if SAF has some inbuilt method or way to do this.
    Your inputs are valuable.
    Thanks in Advance,
    Nishanth.C

    It is not the fault of NetBeans' GUI builder, JPanels are opaque by default, I mean whether you use Netbeans or not.Thank you!
    I stand corrected (which is short for +"I jumped red-eyed on my feet and rushed to create an SSCCE to demonstrate that JPanels are... mmm... oh well, they are opaque by default... ;-[]"+)
    NetBeans's definitely innocent then, and indeed using it would be an advantage (ctrl-click all JPanels in a form and edit the common opaque property to false) over manually coding
    To handle this it would be better idea to make a subclass of JPanel and override isOpaque() to return false. Then use this 'Trasparent Panel' for all the panels where ever transparency is required.I beg to differ. From a design standpoint, I'd find it terrible (in the pejorative sense of the word) to design a subclass to inconsistently override a getter whereas the standard API already exposes the property (both get and set) for what it's meant: specify whether the panel is opaque.
    Leveraging this subclass would mean changing all lines where a would-be-transparent JPanel is currently instantiated, and instantiate the subclass instead.
    If you're editing all such lines anyway, you might as well change the explicit new JPanel() for a call to a factory method createTransparentJPanel(); this latter could, at the programmer's discretion, implement transparency whichever way makes the programmer's life easier (subclass if he pleases, although that makes me shudder, or simply call thePanel.setOpaque(false) before returning the panel). That way the "transparency" code is centralized in a single easy to maintain location.
    I had to read the code for that latter's UI classes to find out the keys to use (+Panel.background+, Label.foreground, etc.), as I happened to not find this info in an authoritative document - I see that you seem to know thoses keys, may I ask you where you got them from?
    One of best utilities I got from this forum, written by camickr makes getting these keys and their values very easy. You can get it from his blog [(->link)|http://tips4java.wordpress.com/2008/10/09/uimanager-defaults/]
    Definitely. I bit a pair of knucles off when discovered it monthes after cumbersomely traversing the BasicL&F code...
    Still, it is a matter-of-fact approach (and this time I don't mean that to sound pejorative), that works if you can test the result for a given JDK version and L&F, but doesn't guarantee that these keys are there to stand - an observation, but not a specification.
    Thanks TBM for highlighting this blog entry, that's the best keys list device I have found so far, but the questions still holds as to what specifies the keys.
    Edited by: jduprez on Feb 15, 2010 10:07 AM

  • Can you no longer have a background color for the text box in the new version of hp photo creations

    just updated to the new version of HP Photo Creations, used to be able to have a colored background for the text box - is that no longer possible in this new (not better) version????!!!!! Uuuuuuuuuugh

    Hi Lainey.
    Thanks for asking. We're working on bringing back that feature. In the meantime, here's another way to add text backgrounds: Add a placeable graphic and then click the Arrange button to send it to the back, behind the text.
    That approach also gives you more interesting shapes. The new alignment guides make it a snap to align a graphic with a text box. In the example below (it may take a day for the image to show up here), I also used the new Premium Editing Features to change the color of the graphic.
    P.S. — Applying a thick border to an empty text box (also using the Premium Editing Features) is another way to create a background shape. That has the advantage of letting you pick any color for the box. You'll also find several new text styles at the bottom of the new text menu.
    Let us know if we can help further,
    RocketLife 
    RocketLife, developer of HP Photo Creations
    » Visit the HP Photo Creations Facebook page — news, tips, and inspiration
    » See the HP Photo Creations video tours — cool tips in under 2 minutes
    » Contact Customer Support — get answers from the experts

Maybe you are looking for

  • Can't hear just one person through my iPhone 4

    Okay, so lets see if this works. So I've had my iphone 4 for about a year and a half, I've never really had issues beside the normal glitching and having calls drop here and there. Recently I've had an issue with my iphone connecting with just one in

  • SOA managed server and SOA infra not starting

    Hi I have my database and listener up and running. I can also successfully start SOA Administration server. But I am unable to start SOA managed server. I can see SOA managed server getting started with WARNING and SOA infra always fails to start. I

  • Pixel length of text in applet output useing drawString()

    is thier a way to find the pixel length of a string of text when im going to output it useing drawString in a applet to say i am going to "draw hello world" in a applet i wish to use drawRect around it i know were it starts i want to know the length

  • Referencing classes outside package definition

    Hi, I have a strange problem, and I dont know if its a limitation of Java or my IDE (Intellij IDEA using java 1.4.1). Basically I have a package structure /classes/com/foo/MyClass.java now from MyClass, I want to access another class file AnotherClas

  • Long list loading

    i have a long list of values like below : DESPIRITUALISED DESPIRITUALISES DESPIRITUALIZE DESPIRITUALIZED DESPIRITUALIZES DESPISABLE DESPISAL DESPISALS DESPISE DESPISED DESPISEDNESS DESPISEDNESSES DESPISEMENT DESPISEMENTS DESPISER DESPISERS DESPISES D