Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Y1MajorGrid vs Y1MinorGrid style

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Y1MajorGrid vs Y1MinorGrid style
 Login/Join
 
Platinum Member
posted
With the following code:
  
-* File newfex39.fex
GRAPH FILE CAR
SUM CAR.SPECS.WEIGHT
ACROSS CAR.BODY.SALES
ON GRAPH SET LOOKGRAPH VLINE
ON GRAPH SET GRAPHEDIT SERVER
ON GRAPH SET BARNUMB OFF
ON GRAPH SET 3D OFF
ON GRAPH SET VZERO ON
ON GRAPH SET GRID ON
ON GRAPH PCHOLD FORMAT PNG
ON GRAPH SET GRAPHSTYLE *
-* Series color Generic
setFillColor(getSeries(0),new Color(223,88,131)); -* Red
setFillColor(getSeries(1),new Color(192,192,192)); -* Gray
setFillColor(getSeries(2),new Color(0,153,171)); -* Blue

setFillColor(getSeries(3),new Color(0,73,114));
setFillColor(getSeries(4),new Color(201,0,97));
setFillColor(getSeries(5),new Color(69,146,137));
setFillColor(getSeries(6),new Color(54,181,200));
setFillColor(getSeries(7),new Color(0,93,142));
setFillColor(getSeries(8),new Color(0,43,68));
setFillColor(getSeries(9),new Color(75,75,78));
setFillColor(getSeries(10),new Color(151,98,7));
setFillColor(getSeries(11),new Color(142,153,4));
setFillColor(getSeries(12),new Color(0,0,64));
setFillColor(getSeries(13),new Color(78,15,95));
setFillColor(getSeries(14),new Color(108,0,55));

setFillColor(getSeries(15),new Color(153,0,51));
setFillColor(getSeries(16),new Color(0,153,102));
setFillColor(getSeries(17),new Color(26,0,153));
setFillColor(getSeries(18),new Color(128,153,0));
setFillColor(getSeries(19),new Color(214,0,71));
setFillColor(getSeries(20),new Color(0,214,143));
setFillColor(getSeries(21),new Color(0,128,153));
setFillColor(getSeries(22),new Color(153,102,0));
setFillColor(getSeries(23),new Color(255,177,20));
setFillColor(getSeries(24),new Color(255,20,99));
setFillColor(getSeries(25),new Color(255,82,139));



-* Remove pontos
setMarkerDisplay(false);

-* Remove border
setTransparentBorderColor(getChartBackground(),true);

-* Full size
setPlace(true);

-* Ao colocar a 0 remove a profundidade (efeito 2,5D)
setDepthRadius(0);

-* Grid Style
-* Y1 Axis Color grid
setGridStyle(getY1MajorGrid(),0);
-*setDisplay(getY1MajorGrid(),true);
setLineBasicStrokeType(getY1MajorGrid(),12);
setBorderColor(getY1MajorGrid(),new Color(192,192,192));

-* X Ordinal Axis Color grid
setBorderColor(getO1MajorGrid(),new Color(150,150,150));

-* X (Ordinal Axis) Label
setFontName(getO1Label(),"Verdana");
setFontSizeAbsolute(getO1Label(), true);
setFontSizeInPoints(getO1Label(), 11);
setPlaceResize(getO1Label(), 0);
setTextRotation(getO1Label(),3);
setAutoSkip(getO1Label(),1);

-* X (Ordinal Axis) Title
setFontSizeAbsolute(getO1Title(), true);
setFontSizeInPoints(getO1Title(), 11);
setPlaceResize(getO1Title(), 0);
setFontName(getO1Title(),"Verdana");
setFontStyle(getO1Title(),0);

-* Y1 Axis Label
setFontName(getY1Label(),"Verdana");
setFontSizeAbsolute(getY1Label(), true);
setFontSizeInPoints(getY1Label(), 11);
setPlaceResize(getY1Label(), 0);
setExcludeMinLabel(getY1Label(),true);

-* Y1 Axis Title
setFontSizeAbsolute(getY1Title(), true);
setFontSizeInPoints(getY1Title(), 11);
setPlaceResize(getY1Title(), 0);
setFontName(getY1Title(),"Verdana");
setFontStyle(getY1Title(),0);
setDisplay(getY1Title(),true);

-* Y2 Axis Label
setFontName(getY2Label(),"Verdana");
setFontSizeAbsolute(getY2Label(), true);
setFontSizeInPoints(getY2Label(), 11);
setPlaceResize(getY2Label(), 0);
setExcludeMinLabel(getY2Label(),true);

-* Y2 Axis Title
setFontSizeAbsolute(getY2Title(), true);
setFontSizeInPoints(getY2Title(), 11);
setPlaceResize(getY2Title(), 0);
setFontName(getY2Title(),"Verdana");
setFontStyle(getY2Title(),0);
setDisplay(getY2Title(),true);

-* Legend
setLegendDisplay(false);

-* Legend Size
setFontSizeAbsolute(getLegendText(), true);
setFontSizeInPoints(getLegendText(), 11);
setPlaceResize(getLegendText(), 0);

-* TransparentBorderColor to all series
setUseSeriesBorderDefaults(true);
setSeriesDefaultTransparentBorderColor(true);

-* Set data text size and position (when applicable) - data in graph points
setFontSizeAbsolute(getDataText(), true);
setFontSizeInPoints(getDataText(), 8);
setPlaceResize(getDataText(), 0);
setDataTextPosition(3);

-* Assigns equal line widths for all series in a graph
setLineWidthAllSeries(2);
ENDSTYLE
ON GRAPH SET STYLE *
$
ENDSTYLE
END



I get:


As you can see in the top I have a dotted line.

As an alternative I can use the Y1MinorGrid, changing the grid area to this:
-* Grid Style
-* Y1 Axis Color grid
setDisplay(getY1MajorGrid(),false);
setDisplay(getY1MinorGrid(),true);
setLineBasicStrokeType(getY1MinorGrid(),12);
setBorderColor(getY1MinorGrid(),new Color(192,192,192));

And I get this:


Don't like this solution. Because the YY value are between the grid, and not in line with grid. So the best solution for me is the first one, but without the dotted line in the top.

Any help on this?

Thanks,
Carlos Dias

This message has been edited. Last edited by: Kerry,


WebFOCUS version: 7.6
Linux/Windows
HTML, Excel
 
Posts: 127 | Location: Aveiro, Portugal | Registered: February 04, 2011Report This Post
<JG>
posted
Carlos the issue is that the grid is placed on top of the frametop line and because it is a light colour
you see the effect that are getting and do not want.

To overcome this you need to overlay a line over the overlay.

Try this


setReferenceLine(getY1Axis(),0,getY1ScaleMaxAutoValue());
 
Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Y1MajorGrid vs Y1MinorGrid style

Copyright © 1996-2020 Information Builders