Class ServerSiderRenderChart
- Namespace
- GOptixLib
- Assembly
- GOptixLib.dll
服务端渲染图表
public class ServerSiderRenderChart
- Inheritance
-
ServerSiderRenderChart
- Inherited Members
Constructors
ServerSiderRenderChart(long, string, string, string, string)
构造函数
public ServerSiderRenderChart(long timeout, string url_root = "http://localhost:18080", string echart_url = null, string qrcode_url = null, string barcode_url = null)
Parameters
timeout
long超时时间
url_root
string服务器url
echart_url
stringechart的url
qrcode_url
stringQRCode的url
barcode_url
stringBarcode的url
Methods
GetBarcodeSvg(string, string, string, int, int, bool, string, string, string, int, int, string, string, int)
获取 barcode svg
public string GetBarcodeSvg(string value, string out_file = null, string format = "auto", int width = 2, int height = 100, bool displayValue = true, string font = "monospace", string textAlign = "center", string textPosition = "bottom", int textMargin = 2, int fontSize = 20, string background = "#ffffff", string lineColor = "#000000", int margin = 10)
Parameters
value
stringout_file
stringformat
stringwidth
intheight
intdisplayValue
boolfont
stringtextAlign
stringtextPosition
stringtextMargin
intfontSize
intbackground
stringlineColor
stringmargin
int
Returns
GetEChartSvg(int, int, string, string)
获取 echart svg
public string GetEChartSvg(int width, int height, string option, string out_file = null)
Parameters
Returns
GetQRcodeSvg(string, int, int, string, string, string)
获取 qrcode svg
public string GetQRcodeSvg(string value, int width = 100, int height = 100, string dark = "#000000ff", string light = "#ffffffff", string out_file = null)