Hello senior members,
I am using this below formula which plots rectangle ,
I need your kind help to divide this into 10 equal parts. or give scaling from
0 to 10 [ bottom 0 and top 10 ]
//Formula
// THE LOW_LEVEL GRAPHICS FOR THE CHART:
MainChartWidth = Status("pxchartwidth");
MainChartHeight = Status("pxchartheight");
Font= ParamList("Font:","Arial|Calibri|Futura|Tahoma|Times New Roman", 0);
ChartColor= ParamColor("Background Color", colorWhite);
ChartColor= ParamColor("Background Color", colorWhite);
X_Location= Param("X Location", 700, 1, MainChartWidth, 1);
Y_Location= Param("Y Location", 10, 1, MainChartHeight, 1);
ChartWidth= Param("Chart Width", 15, 1, MainChartWidth, 1);
ChartHeight= Param("Chart height", 60, 1, MainChartHeight, 1);
// GfxSetOverlayMode(Transparent);
x1Chart = X_Location;
y1Chart = Y_Location;
x2Chart = X_Location + ChartWidth;
y2Chart = Y_Location + ChartHeight;
// THE PLOT AREA:
HeightPercent = 0.05;
CellHeight = (HeightPercent * ChartHeight/2);
RightMargin = 0.05;
UpperLimit= y1Chart + ((HeightPercent + 0.01) * ChartHeight);
LowerLimit= y1Chart + ((1 - HeightPercent - 0.01) * ChartHeight);
LeftLimit = x1Chart + 1;
RightLimit= X_Location + (ChartWidth * (1 - RightMargin));
// Draw the Chart Area:
GfxSelectPen(colorBlack);
GfxSelectSolidBrush(ChartColor);
GfxRectangle(x1Chart, y1Chart, x2Chart, y2Chart);
Thank you and sorry for giving you trouble