Jump to content

Recommended Posts

Posted

Having an issue changing the interval scale for the x-axis for a scatter chart. I can change the interval scale for the y-axis just fine My code is below. If anyone has any suggestions, please let me know.

indent preformatted text by 4 spaces

 

GRAPH FILE HOLDCLUST

-* Created by Info Assist for Graph

SUM MED_ALWD_AMT AS Total Med Allowed

BY CNCRT_RISK_SCR AS Patient Complexity

ON GRAPH PCHOLD FORMAT JSCHART

ON GRAPH SET VZERO OFF

ON GRAPH SET GRWIDTH 1

ON GRAPH SET UNITS &WF_STYLE_UNITS

ON GRAPH SET HAXIS &WF_STYLE_WIDTH

ON GRAPH SET VAXIS &WF_STYLE_HEIGHT

ON GRAPH SET LOOKGRAPH SCATTER

ON GRAPH SET AUTOFIT ON

-*ON GRAPH SET GRID ON

ON GRAPH SET STYLE *

*GRAPH_SCRIPT

setPieDepth(0);

setPieTilt(0);

setDepthRadius(0);

setPlace(true);

setUseSeriesShapes(true);

setScaleMustIncludeZero(getX1Axis(), false);

setScaleMustIncludeZero(getY1Axis(), false);

setScaleMustIncludeZero(getY2Axis(), false);

setCurveFitEquationDisplay(false);

-* To manage steps in Y-axis

-*setGridStepAuto(getX1MajorGrid(),false);

-*setGridStep(getX1MajorGrid(),0.5);

-*setX1MajorGridStepAuto(false);

-*setDepthAngle(0);

-*setX1LabelFormat(1);

-*setLegendDisplay(false);

-*setX1MajorGridStep(0.5);

-*setDepthRadius(0);

*END

INCLUDE=IBFS:/FILE/IBI_HTML_DIR/ibi_themes/Warm.sty,$

TYPE=REPORT, TITLETEXT=&WF_TITLE.QUOTEDSTRING, ORIENTATION=LANDSCAPE, $

TYPE=DATA, COLUMN=N1, BUCKET=x-axis, $

TYPE=DATA, COLUMN=N2, BUCKET=y-axis, $

*GRAPH_SCRIPT

setReportParsingErrors(false);

setSelectionEnableMove(false);

-*To set steps on X-axis

setScaleMin ( getX1Axis(), 0.5);

setScaleMax ( getX1Axis(), 17.8)

setGridStepAuto(getX1MajorGrid(),false);

setGridStep(getX1MajorGrid(),0.5);

*GRAPH_JS_FINAL

pieProperties: {

holeSize: 0%

},

agnosticSettings: {

chartTypeFullName: X_Y_Plots_Scatter

}

*END

ENDSTYLE

END

-RUN

indent preformatted text by 4 spaces

Posted

Example below that you can run on your environment. It shows setting intervalMode:interval on one axis and intervalMode:count on another axis. There is also internalmode:skip

Documentation: wfjschart8207.pdf (informationbuilders.com)

GRAPH FILE ggsales

SUM UNITS AS 'Total Med Allowed'

BY DOLLARS AS 'Patient Complexity'

WHERE RECORDLIMIT IS 299

ON GRAPH PCHOLD FORMAT JSCHART

ON GRAPH SET LOOKGRAPH SCATTER

ON GRAPH SET AUTOFIT ON

ON GRAPH SET STYLE *

*GRAPH_JS_FINAL

"agnosticSettings": {

"chartTypeFullName": "X_Y_Plots_Scatter"

},

"xaxis": {

"intervalMode": "interval",

"intervalValue": 2000},

"yaxis": {

"intervalMode": "count",

"intervalValue": 5}

*END

ENDSTYLE

END

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...