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
timeoutlong超时时间
url_rootstring服务器url
echart_urlstringechart的url
qrcode_urlstringQRCode的url
barcode_urlstringBarcode的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
valuestringout_filestringformatstringwidthintheightintdisplayValueboolfontstringtextAlignstringtextPositionstringtextMarginintfontSizeintbackgroundstringlineColorstringmarginint
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)