Support Board
Date/Time: Tue, 21 Jan 2025 12:29:53 +0000
Post From: How to draw different text on chart by Subgraph function?
[2018-08-08 10:57:52] |
User517260 - Posts: 97 |
Thanks, it works ok. Could you tell me how I can set background color for text? I used: CustomText_Sub.Name = "Custom Text"; CustomText_Sub.DrawStyle = DRAWSTYLE_CUSTOM_VALUE_AT_Y; CustomText_Sub.TextDrawStyleText = "1"; CustomText_Sub.PrimaryColor = RGB(200,0,100); CustomText_Sub.SecondaryColor = RGB(100,255,200); CustomText_Sub.SecondaryColorUsed = 1; CustomText_Sub.LineWidth = 5; CustomText_Sub.DrawZeros = false; CustomText_Sub[1] = 1; // Text to draw on chart CustomText_Sub[3] = 2; // Text to draw on chart CustomText_Sub[5] = 3; // Text to draw on chart CustomText_Sub[7] = 4; // Text to draw on chart CustomText_Sub[9] = 5; // Text to draw on chart CustomText_Sub[11] = 1; // Text to draw on chart CustomText_Sub[13] = 2; // Text to draw on chart CustomText_Sub[15] = 3; // Text to draw on chart CustomText_Sub[17] = 4; // Text to draw on chart CustomText_Sub[19] = 5; // Text to draw on chart CustomText_Sub.Arrays[0][1] = 0.5; // Y position of text CustomText_Sub.Arrays[0][3] = 0.3; // Y position of text CustomText_Sub.Arrays[0][5] = 0.9; // Y position of text CustomText_Sub.Arrays[0][7] = 0.6; // Y position of text CustomText_Sub.Arrays[0][9] = 1.5; // Y position of text CustomText_Sub.Arrays[0][11] = -0.5; // Y position of text CustomText_Sub.Arrays[0][13] = -0.3; // Y position of text CustomText_Sub.Arrays[0][15] = -0.9; // Y position of text CustomText_Sub.Arrays[0][17] = -0.6; // Y position of text CustomText_Sub.Arrays[0][19] = -1.5; // Y position of text Text color is ok, but background color is black. |